Sora 2

sora-2-video-to-video

post

Video-to-video remix endpoint for Sora 2, OpenAI’s advanced model that transforms existing videos based on new text or image prompts allowing rich edits, style changes, and creative reinterpretations while preserving motion and structure...

Header parameters
AuthorizationstringRequiredExample: sk-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmu
Body
modelstringRequired

model is the model name

Example: sora-2-video-to-video
video_idstringRequired

The video_id from a previous Sora 2 generation. Note: You can only remix videos that were generated by Sora (via text-to-video or image-to-video endpoints), not arbitrary uploaded videos.

Example: video_68fc872dba248190875ba0c177c7b0cf0974c02d85a9c020
promptstringRequired

Updated text prompt that directs the remix generation.

Example: A cute baby sea otter.
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

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

{
  "model": "sora-2-video-to-video",
  "video_id": "video_68fc872dba248190875ba0c177c7b0cf0974c02d85a9c020",
  "prompt": "Change the fur color to purple.",
  "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