import os
import requests
payload = {
"animation_prompts": [
{
"frame": 0,
"prompt": "a highly detailed pencil sketch of a luxury watch, 4k, 8k, UHD",
},
{
"frame": 100,
"prompt": "a highly detailed pencil sketch of a luxury watch turning into a real luxury watch with each movement of the hands of the watch, 4k, 8k, UHD",
},
{
"frame": 200,
"prompt": "A beautiful, highly detailed luxury watch, 4k, 8k, UHD",
},
]
}
response = requests.post(
"https://api.gooey.ai/v2/DeforumSD?example_id=czvtn7du",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)