Skip to main content
POST /image/generate and POST /video/generate return 202 with a pending generation. Poll GET /generations/{id}/status until it ends.

Request body

Status

The top-level status is about your HTTP request; data.status is the generation’s progress.

Polling

Poll every 3 seconds for images and 5 for video, and stop after about 10 minutes. Polls count toward the rate limit; on 429, wait Retry-After seconds.

History

GET /generations lists past generations, newest first. Filter by model or status; page with limit and cursor. Output URLs are signed and valid for 166 hours, so download the outputs you want to keep. A generation that fails upstream is retried up to 3 times under the same id and charged once.