OpenAI Sora 2 Text-to-Video
Video
OpenAI Sora 2 Text-to-Video
POST
OpenAI Sora 2 Text-to-Video
OpenAI Sora 2 is a state-of-the-art video + audio generator. It improves on the original Sora with more accurate physics, sharper realism, synchronized audio, greater controllability, and a broader range of styles.
Request Headers
string
required
Enum value:
application/jsonstring
required
Bearer authentication format: Bearer {{API Key}}.
Request Body
string
required
The positive text prompt for video generation.
string
The pixel size of the generated video (width*height).Enum values:
- When professional is true (Pro version):
720*1280,1280*720,1024*1792,1792*1024. - When professional is false:
720*1280,1280*720.
720*1280.integer
The duration of the generated video (seconds).Enum values:
4, 8, 12.Default: 4.bool
default:false
This parameter specifies whether to use the Pro version. If it is not provided, the default value is false.
Response Information
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result.