import os
import requests
payload = {
"animation_prompts": [
{
"frame": 0,
"prompt": "a wide angle street level photo of a busy street in Versova, Mumbai, 4k, 8k, UHD",
},
{
"frame": 50,
"prompt": "a wide angle photo birds flying in the sky, 4k, 8k, UHD",
},
{
"frame": 100,
"prompt": "a wide angle street level photo of a busy street in New York, 4k, 8k, UHD",
},
]
}
response = requests.post(
"https://api.gooey.ai/v2/DeforumSD?example_id=9jvnbyg3",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)