Sora Video Generation
OpenAI Format
Sora Video Generation
Use POST /v1/videos to call the Sora model and submit asynchronous video tasks.
POST
Sora Video Generation
Sora Video Generation
OpenAI-format entry point. If you need to use the unified videoPOST /v1/video/create, please see Create Video.
Sora currently uses POST /v1/videos to submit tasks, with JSON submission as the primary method.
- The route entry point is
POST /v1/videos. - JSON submission is currently used.
- Reference images are first placed into
input_reference, and the gateway continues processing according to upstream requirements. - In
router/video-router.go,/v1/videosis still received uniformly bycontroller.RelayTask.
Current Models
sora-2
Method and Path
Request Example
Response Example
Authentication
Body
Model name. Currently only
sora-2 is included.Prompt.
Size string. Common values are currently
720x1280 and 1280x720; in the gateway, sora-2 currently also explicitly validates only these two sizes.Target duration in seconds. Currently submitted via
seconds; the gateway supports both strings and integers.Reference image input. In current JSON requests, URL, base64, and data URI can be used; multipart file uploads are also supported by the gateway.
Extended configuration. A common pattern is
metadata.output_config, which can contain fields such as aspect_ratio, audio_generation, and resolution.The video link required for Sora character creation. This field exists in the generic DTO, but from the current route design, it is more suitable for use with
/sora/v1/characters rather than as a mainline field for POST /v1/videos.Time range for the character clip, in a format such as
1,3. This is likewise more suitable for the character creation flow.Current Rules
| Item | Rule |
|---|---|
| Default size | When not explicitly provided, the landscape or portrait size is inferred from aspect_ratio |
sora-2 size validation | The gateway currently explicitly accepts only 720x1280 and 1280x720 |
| Reference image format | Under JSON, URL, base64, and data URI can be used; multipart is also still supported by the gateway |