Skip to main content
Video generation is an asynchronous task:
  1. POST /v1/videos submits the task and returns its id.
  2. GET /v1/videos/{id} reports progress until status is completed or failed.
  3. GET /v1/videos/{id}/content downloads the MP4.
All requests use Authorization: Bearer YOUR_API_KEY. The request shape follows the OpenAI Videos API; model-specific options go in metadata or in the fields listed on each model page.

1. Submit

2. Poll

A video takes from about a minute to half an hour depending on the model, length and load. Poll every 15–30 seconds; faster polling does not make it finish sooner.
A 200 from the poll endpoint only means the lookup worked — always check status. On failed, stop polling and show error.message. Do not resubmit automatically: the same input usually fails the same way.

3. Download

Download the video soon after the task completes and keep your own copy. Output links expire — plan on 24 hours. After that the download endpoint returns an error and the video cannot be recovered.

Input files

First frames, last frames and reference media must be public http(s) URLs. Base64 and file uploads are not accepted, except where a model page says otherwise. Make sure the URL is reachable without cookies or sign-in.

Billing

Video is billed by the second. When you submit, the cost of the requested length is held from your balance; when the task finishes, it is settled against the actual length, and a failed task is refunded in full. Prices per second are on Models & pricing.

Common errors

See also Errors.