import os
import requests
payload = {
"animation_prompts": [
{
"frame": "0",
"prompt": " Aerial view of a green, clean Earth. Overlay text: “The year is 2050. Humanity has awakened, Quick flashes of climate disasters, pollution, deforestation, waste,Calm visuals of Acharya Prashant giving spiritual talks, and Bubun engaging with diverse Indian communities—youth, faith leaders, villagers,Footage of people repairing things, buying sustainable products, using digital tools to check product impact,Smart screens showing eco-ratings, AI recommending low-impact goods, ancient Indian texts and farmers working together,Close-up of Bubun speaking to youth in a village. Overlay text:\n“To live truthfully is to live gently—with each other and with the Earth.” – Bubun Samanta: “We—the consumers—became protectors. And the Earth responded with love.”\n\n",
},
{
"frame": "116",
"prompt": "🎨 Visual style: Futuristic yet grounded in Indian culture — scenes of nature, community gatherings, technology, clean cities, spiritual practices, and rural-urban harmony, 4k, 8k, uhd",
},
]
}
response = requests.post(
"https://api.gooey.ai/v2/animation-generator?example_id=dqh89sxdpzsc",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)