Video generation is asynchronous. Create a task, save its ID, poll the status, and download the result after completion.

Task endpoints

The general video task endpoint is:
OpenAI-style video requests use:
Both endpoints return a task object rather than the final video file.

Text-to-video

Image-to-video

Polling

Poll every few seconds while the task is queued or running. Stop only at a terminal state such as succeeded or failed.
Save the task ID in your application so the user can resume after refreshing the page. Do not create a second task just because one polling request temporarily failed.

Downloading results

When the task succeeds, read the returned video URL or file reference and download it to storage you control. Result URLs may be temporary; do not treat them as permanent asset storage.