import os
import requests
payload = {
"animation_prompts": [
{
"frame": 0,
"prompt": "A street level photo of a street in a small town in the country side of England in the 17th century, heavy rainy weather, People with umbrellas waking in the distance, detailed, realistic, 4k, 8k, UHD",
},
{
"frame": 40,
"prompt": "A street level photo of a street in modern London showing a Red phone booth and red buses and the Big Ben detailed, realistic, 4k, 8k, UHD",
},
{
"frame": 80,
"prompt": "a scene of Greek mythology, showcasing greek scholars. the acropolis in the background. The camera moves through this mythical realm, capturing the essence of Greek folklore",
},
{
"frame": 120,
"prompt": "a vibrant Greek island, bathed in golden sunlight. Capture the picturesque white houses with blue rooftops lining the cliffside, overlooking the azure Mediterranean Sea, highly detailed, realistic, 4k, 8k, UHD",
},
{
"frame": 160,
"prompt": "A wide angle frozen lake in Alaska with Dog sledding with a fishing inuit next to an Iglu. realistic, 4k, 8k, UHD",
},
{
"frame": 200,
"prompt": "A polar bear on a floating iceberg meets an Inuit family. In the sky we can see the northern light in Greenland. realistic, 4k, 8k, UHD",
},
{
"frame": 240,
"prompt": "close-up shot of a traditional Japanese tea ceremony. Show a skilled tea master gracefully preparing matcha tea while wearing a kimono. The camera focuses on the intricate tea utensils and the calm atmosphere. highly detailed, realistic, 4k, 8k, UHD",
},
{
"frame": 280,
"prompt": "A wide angle rural landscape serene Japanese garden with vibrant cherry blossoms in full bloom and Sensoji Temple in ancient japan, people in the background, highly detailed, realistic, 4k, 8k, UHD",
},
],
"max_frames": 320,
"animation_mode": "3D",
"fps": 10,
"seed": 277312547,
}
response = requests.post(
"https://api.gooey.ai/v2/animation-generator?example_id=2wud2xad",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)