Skip to main content
Creates a video generation task from a text prompt. Video generation is asynchronous - this endpoint returns a video ID that can be used to check the status and download the result.
Video generation can take several minutes depending on the model and parameters. Use the Get Video endpoint to check the status.

Request Body

This endpoint accepts multipart/form-data.
string
required
The video generation model to use (e.g., sora-2).
string
required
A text description of the video to generate.
string
The dimensions of the output video (e.g., 1920x1080, 1080x1920, 1280x720).
string
The duration of the video in seconds.
file
An optional reference image or video to guide generation.

Response

string
Unique identifier for the video generation task.
string
The current status of the video generation. Possible values: pending, processing, completed, failed.
integer
Unix timestamp of when the task was created.

Examples

Basic Video Generation

With Reference Image

Response Example

Workflow

  1. Create Video - Submit your prompt and receive a video ID
  2. Poll Status - Use Get Video to check when processing completes
  3. Download - Use Download Video to retrieve the final video