Generate videos using OpenAI Sora 2 models from text prompts or with image references.
sora-2 is designed for speed and flexibility. It’s ideal for the exploration phase when you’re experimenting with tone, structure, or visual style and need quick feedback rather than perfect fidelity.
It generates good quality results quickly, making it well-suited for rapid iteration, concepting, and rough cuts. sora-2 is often more than sufficient for social media content, prototypes, and scenarios where turnaround time matters more than ultra-high fidelity.
| Size | Aspect Ratio | Use Case |
|---|---|---|
| 720x1280 | 9:16 | Vertical/Portrait (mobile, social media) |
| 1280x720 | 16:9 | Horizontal/Landscape (standard video) |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Text description for the video. For best results, describe:
Example: "Wide shot of a child flying a red kite in a grassy park, golden hour sunlight, camera slowly pans upward."
2000Model name to use for generation.
sora-2: Faster, good quality, ideal for rapid iteration and social media contentsora-2 Initial image to use as the first frame of the video. Can be a URL or Base64 encoded data.
Format for Base64: data:image/jpeg;base64,{base64_data}
Supported formats: image/jpeg, image/png, image/webp Image resolution must match the target video's size parameter Max file size: 10MB
Length of the generated video in seconds.
4, 8, 12 Video resolution (width x height).
720x1280, 1280x720 Accepted - Task created successfully