Sora 2 Pro

sora-2-pro-image-to-video

post

Image-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-image-to-video
promptstringRequired

The text prompt describing the video you want to generate

Example: A cute baby sea otter.
resolutionstring · enumOptional

The resolution of the generated video Default value: "auto"

Possible enum values: auto, 720p, 1080p

Default: autoExample: autoPossible values:
aspect_ratiostring · enumOptional

The aspect ratio of the generated video Default value: "auto"

Possible enum values: auto, 9:16, 16:9

Default: autoExample: autoPossible values:
durationstring · enumOptional

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

Possible enum values: 4, 8, 12

Default: 4Example: 4Possible values:
image_urlstringRequired

The URL of the image to use as the first frame

Example: https://resource.onerouter.pro/image/generated%2Fonerouter_fe4771ae-d67c-41bb-a366-b07f1411ae06.png
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: 264

{
  "model": "sora-2-pro-image-to-video",
  "prompt": "A cute baby sea otter.",
  "resolution": "auto",
  "aspect_ratio": "auto",
  "duration": "4",
  "image_url": "https://resource.onerouter.pro/image/generated%2Fonerouter_fe4771ae-d67c-41bb-a366-b07f1411ae06.png",
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/video/generated%2Fonerouter_3bde5366-81ec-4625-ba18-d4df678d589e.mp4",
      "revised_prompt": "",
      "video_id": "video_68fc8c1a362481988ad9551ce2393a810750888f71db29fb"
    }
  ],
  "created": 1761381533
}

Last updated