Submit a task
UsePOST /v1/videos with Authorization: Bearer YOUR_API_KEY.
| Parameter | Required | Meaning |
|---|---|---|
model | Yes | Exact available video model ID. |
prompt | Yes | Description of the video. |
input_reference | No | Reference image for models supporting image-to-video. |
seconds | No | Duration supported by the selected model. |
size | No | Dimensions supported by the selected model. |
Poll the existing task
SendGET /v1/videos/{task_id} with the same authorization header, for example every 5–10 seconds while the job is pending.
| Status | Meaning | Next action |
|---|---|---|
queued | Accepted and waiting. | Wait, then query this task again. |
in_progress | Generation is running. | Wait, then query this task again. |
completed | Generation finished. | Read the returned result or download the content. |
failed | Generation failed. | Inspect the returned error before deciding whether to retry. |
GET; do not repeat the creation POST, which can create and charge for a second job.
Retrieve or remix the result
- Download a completed result with
GET /v1/videos/{task_id}/contentand the authorization header. - Where the completed response provides
metadata.url, that URL can be used to view the result. - Use
POST /v1/videos/{video_id}/remixonly when the original job and route support remixing.