import os
import requests
payload = {
"animation_prompts": [
{
"frame": "9",
"prompt": "a wide angle of a serene forest, under the canopy of a banyan tree, a 50-year-old Indian slightly older woman, holding up a glowing honeycomb, She is teaching a group of curious village children seated in a semi-circle around her. ",
},
{
"frame": "9",
"prompt": "a wide angle of a serene forest, under the canopy of a banyan tree, a 50-year-old Indian slightly older woman, holding up a glowing honeycomb, She is teaching a group of curious village children seated in a semi-circle around her. ",
},
{
"frame": "13",
"prompt": "Next to her is a small boy, five-year-old Aarav, sits slightly apart, listening intently, with a quiet, thoughtful gaze. Sunlight filters through the leaves above, and a few bees hover peacefully around the group, evoking harmony with nature",
},
]
}
response = requests.post(
"https://api.gooey.ai/v2/animation-generator?example_id=6baz9ttfjg7l",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)