Get Generation Status
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The generation ID returned from the generate endpoint |
Request
Response (generating)
Response (completed)
Response (failed)
Response fields
| Field | Type | Description |
|---|---|---|
id | string | The generation ID |
status | string | "generating", "completed", or "failed" |
template_id | string or null | The template ID (if generated from a template) |
video_url | string or null | Presigned URL to download the video (1 hour expiry). Only present when status is "completed". |
created_at | string or null | ISO 8601 timestamp when generation was submitted |
completed_at | string or null | ISO 8601 timestamp when generation finished. Only present when status is "completed". |
error | string or null | Error message. Only present when status is "failed". |
Polling strategy
Video generation typically takes 30 seconds to 3 minutes depending on the model and duration. A recommended polling approach:- Wait 5 seconds after submitting.
- Poll every 5 seconds.
- Stop after
statusis"completed"or"failed". - Alternatively, use
webhook_urlin the generate request to receive a callback instead of polling.
Errors
| Status | Error | When |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks templates:read scope |
| 404 | not_found | Generation not found or not owned by this API key’s user |

