POST/v1/videos/generationsGET/v1/tasks/{id}Auth: Bearer API key
This model runs asynchronously: the request returns a task id right away. Poll GET /v1/tasks/{id} (or /v1/records/{id}), or pass callback_url to receive a signed webhook when the job finishes.
Zoe currently supports text-to-video and image-to-video. Send an integer duration from 4 to 30 seconds, or omit it for the 5-second default. You may send seconds as an alias of duration. Billing uses that requested length at the chosen resolution and is not adjusted to the finished clip.
Reference videos, automatic duration (-1), video editing, and draft or final generation are not available. Those requests are rejected before a reserve is taken.
# 1. Submit the job
curl https://apimany.com/v1/videos/generations \
-H "Authorization: Bearer $APIMANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "zoe",
"prompt": "A paper boat drifting down a rainy street at dusk",
"size": "21:9",
"aspect_ratio": "adaptive",
"resolution": "720p",
"duration": 5
}'
# 2. Poll until status is "completed"
curl https://apimany.com/v1/tasks/TASK_ID \
-H "Authorization: Bearer $APIMANY_API_KEY"
Parameters
| Name | Type | Default | Allowed values |
|---|
| model * | string | zoe | |
| prompt | string | — | |
| resolution | string | 720p | 480p, 720p, 1080p, 2k, 4k |
| aspect_ratio | string | adaptive | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| size | string | — | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| duration | integer | 5 | 4 – 30 |
| audio | boolean | — | |
| generate_audio | boolean | — | |
| seed | integer | — | |
| omni_reference_task_type | string | auto | auto, reference |
| return_last_frame | boolean | false | |
| output_format | string | mp4 | mp4, mov |
| response_format | string | — | mp4, mov |
| enhance_prompt | boolean | false | |
| image_with_roles | array | — | |
| image_urls | array | — | |
| first_frame_image | string | — | |
| last_frame_image | string | — | |
| audio_urls | array | — | |
| callback_url | string | — | HTTPS URL for the completion webhook |
Response
{
"code": 200,
"data": {
"id": "6f1c2a7e-…",
"model": "zoe",
"status": "completed",
"progress": 100,
"cost_usd": 0.27,
"result": {
"videos": [{ "url": ["https://apimany.com/files/…"], "expires_at": 1760000000 }]
}
}
}