Create video generation tasks using OpenAI Sora models with text prompts and optional image references
videos is OpenAI Sora’s video generation interface that creates video generation tasks through text prompts or optional reference image inputs.
After creation, you need to use the query interface to get the generation status. Once the task is completed, you can proceed with subsequent operations such as remixing and downloading.
For more information about the Sora generation interface, please refer to OpenAI Official Documentation.
sora-2 (default)sora-2-proveo-3.1openapi.json. Scroll down to see the interactive API reference.720x1280 (default): Vertical format, good for mobile/social media1280x720: Horizontal format, standard widescreen1024x1792: High vertical resolution1792x1024: High horizontal resolutionShot N: (N is the shot number)duration: Xsec to specify shot durationScene: to describe the shot content720x1280. Supported resolutions:
720x1280 (default) - Vertical1280x720 - Horizontal1024x1792 - High vertical1792x1024 - High horizontalsora-2: Supports 10, 15 secondssora-2-pro: Supports 10, 15, 25 secondsveo-3.1: Supports 4, 8, 12 secondsid to query status:
completed, use the content endpoint:
Bearer token authentication. Include your API key in the Authorization header as 'Bearer YOUR_API_KEY'
Request body for video generation using OpenAI Sora models. Uses multipart/form-data format.
Text prompt that describes the video to generate. For Storyboard mode, use the specific format with Shot N:, duration: Xsec, and Scene: descriptions.
"A cat walking on the street"
The video generation model to use. Defaults to sora-2.
sora-2, sora-2-pro, veo-3.1 "sora-2"
Clip duration in seconds. Defaults to 15 seconds.
4, 8, 10, 12, 15, 25 "15"
Output resolution formatted as width x height. Defaults to 720x1280.
720x1280, 1280x720, 1024x1792, 1792x1024 "720x1280"
Optional image reference that guides generation. Upload as a file in multipart/form-data format.
Video generation request accepted
Response from video generation request. Returns immediately with task ID for asynchronous processing.
Unique identifier for the video generation request. Use this ID to query status and retrieve the video.
"video_68e688d4950481918ec389280c2f78140fcb904657674466"
Object type, always 'video'
"video"
Unix timestamp (in seconds) when the request was created
1759938772
Current status of the video generation. Use the query interface to check status updates.
queued, processing, completed, failed "queued"
Unix timestamp (in seconds) when the video generation completed. Null if not yet completed.
null
Error information if generation failed. Null if no error.
null
Unix timestamp (in seconds) when the video will expire. Download promptly to avoid expiration.
null
Model used for generation
"sora-2"
Generation progress percentage (0-100)
0 <= x <= 1000
ID of the video this was remixed from, if applicable
null
Video duration in seconds
"4"
Video resolution (width x height)
"720x1280"