Videos
Submit async video generation tasks and use polling plus webhook for reliable delivery.
Video generation follows the same async task model as images, but usually runs longer.
Typical flow
- Call
/v1/generationsand choose a video model throughmodel - Get a
task_id - Poll
/v1/tasks/{task_id} - Optionally receive terminal-state webhook notifications
Best practice
- Expect longer runtimes than image jobs
- Use webhook earlier for production workloads
- Keep polling as a fallback even after webhook is enabled