Sora 2 Pro

sora-2-pro-text-to-video

post

Text-to-video endpoint for Sora 2 Pro, OpenAI's state-of-the-art video model capable of creating richly detailed, dynamic clips with audio from natural language or images.

Header parameters
AuthorizationstringRequiredExample: sk-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmu
Body
modelstringRequired

model is the model name

Example: sora-2-pro-text-to-video
promptstringRequired

prompt is the prompt.

Example: A cute baby sea otter.
resolutionstring · enumOptional

The resolution of the generated video Default value: "1080p"

Possible enum values: 720p, 1080p

Default: 1080pExample: 1080pPossible values:
aspect_ratiostring · enumOptional

The aspect ratio of the generated video Default value: "16:9"

Possible enum values: 9:16, 16:9

Default: 16:9Example: 16:9Possible values:
durationstring · enumOptional

Duration of the generated video in seconds Default value: "4"

Possible enum values: 4, 8, 12

Default: 4Example: 4Possible values:
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/videos/generations
POST /v1/videos/generations HTTP/1.1
Host: video.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "model": "sora-2-pro-text-to-video",
  "prompt": "A cute baby sea otter.",
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "duration": "4",
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/video/generated%2Fonerouter_0688d9c3-4e7f-45c5-a30d-7923dfd056a6.mp4",
      "revised_prompt": "",
      "video_id": "video_68fc872dba248190875ba0c177c7b0cf0974c02d85a9c020"
    }
  ],
  "created": 1761380356
}

Last updated