Create a Sora 2 video
Use POST /v1/videos to create Sora 2 video generation tasks from text prompts or reference images, then poll status by task ID for results.
Start with the smallest useful job
- Use
sora-2for faster iteration orsora-2-prowhen output quality matters more than speed - Keep
secondsat4for your first request - Start with
size: 1280x720unless you specifically need portrait output - Upload at most one reference image
Duration and size
| Setting | Supported values | Default starting point | Boundary behavior |
|---|---|---|---|
seconds | 4, 8, 12, 16, 20 | 4 | Other values are not part of the Sora video request shape. |
size for sora-2 | 1280x720, 720x1280 | 1280x720 | Use landscape or portrait orientation. |
size for sora-2-pro | 1792x1024, 1024x1792, plus the standard Sora sizes | 1792x1024 for landscape Pro output | Use the larger Pro sizes only with a Pro model. |
size field in exact WxH form. Resolution tokens such as 720p and ratio labels such as 16:9 are not valid Sora size values on this endpoint.
End-to-end flow
Poll until the job finishes
completed or failed.Download or remix the result
Sora behavior that still applies
OpenAI documents the same create -> retrieve -> download flow in the Videos API. On CometAPI you keep the Sora request shape, but use the CometAPI base URL and key. Finished download URLs are temporary, so copy completed assets into your own storage if you need long retention.Authorizations
Bearer token authentication. Use your CometAPI key.
Body
Text prompt that describes the video you want to create.
"A paper airplane glides across a desk."
Sora model ID. Choose an available model from the Models page.
"sora-2"
Clip duration in seconds. Use 4, 8, 12, 16, or 20.
4, 8, 12, 16, 20 "4"
Output resolution formatted as width x height. Use 1280x720 or 720x1280 for standard Sora output. Use 1792x1024 or 1024x1792 with a Pro model when you need larger Pro output.
720x1280, 1280x720, 1024x1792, 1792x1024 "1280x720"
Optional reference image uploaded as a file. The image should match the target size you request.