API Guides
Async Tasks
Submit, poll, and receive webhooks for image and video tasks.
Media generation uses a unified asynchronous task lifecycle:
queued → processing → succeeded
↘ failedAfter creating a task, use its id to poll the task endpoint or configure a signed Webhook. Poll with exponential backoff and stop after a terminal status.
The final response includes the output asset URLs and a pricing snapshot for the request.