Sora 2 Pro
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-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmuBody
modelstringRequiredExample:
model is the model name
sora-2-pro-image-to-videopromptstringRequiredExample:
The text prompt describing the video you want to generate
A cute baby sea otter.resolutionstring · enumOptionalDefault:
The resolution of the generated video Default value: "auto"
Possible enum values: auto, 720p, 1080p
autoExample: autoPossible values: aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated video Default value: "auto"
Possible enum values: auto, 9:16, 16:9
autoExample: autoPossible values: durationstring · enumOptionalDefault:
Duration of the generated video in seconds Default value: "4"
Possible enum values: 4, 8, 12
4Example: 4Possible values: image_urlstringRequiredExample:
The URL of the image to use as the first frame
https://resource.onerouter.pro/image/generated%2Fonerouter_fe4771ae-d67c-41bb-a366-b07f1411ae06.pngoutput_formatstring · enumOptionalDefault:
output_format indicate the output format, default value is url.
urlExample: urlPossible values: Responses
200Success
application/json
post
/v1/videos/generationsPOST /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