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": 100,
"prompt": "aerial view of a busy street in Versova, Mumbai, 4k, 8k, UHD neon lighting signs, pub lighting, smoke, 4k, 8k, uhd: 1 people:-1",
},
{
"frame": 200,
"prompt": "a wide angle street level photo of a busy street in Warsaw, Poland, 4k, 8k, UHD",
},
]
}
response = requests.post(
"https://api.gooey.ai/v2/DeforumSD?example_id=yylp92qs",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)