Skip to content

Video to Video (Remix)

Edit or remix existing videos using Siraya AI's unified Video to Video API. This endpoint allows for sophisticated video manipulation using advanced AI models.

How to Edit Videos

To edit a video, you must provide a video_id from a previous generation along with a prompt for the remix.

API Specification

curl https://video.siraya.pro/v1/videos/edits \
  -H "Content-Type: application/json" \
  -H "Authorization: <API_KEY>" \
  -d '{
    "model": "sora-2-video-to-video",
    "video_id": "video_68fc872dba248190875ba0c177c7b0cf0974c02d85a",
    "prompt": "Change the fur color to purple.",
    "output_format": "url"
  }'
import requests

url = "https://video.siraya.pro/v1/videos/edits"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_KEY>"
}
data = {
    "model": "sora-2-video-to-video",
    "video_id": "video-id-from-previous-gen",
    "prompt": "Change the fur color to purple.",
    "output_format": "url"
}

response = requests.post(url, headers=headers, json=data)
print(response.json())

Request Parameters

Parameter Type Default Description
model string - The ID of the model (e.g., sora-2-video-to-video).
video_id string - The ID from a previous generation (text-to-video or image-to-video).
prompt string - Instructions for the remix/edit.
output_format string url The output format (defaults to url).

[!NOTE] You can only remix videos that were generated by the same video model (via text-to-video or image-to-video endpoints), not arbitrary uploaded videos.

Example Response

{
    "data": [
        {
            "url": "https://resource.siraya.pro/video/generated%2Fsiraya_remix.mp4",
            "revised_prompt": "",
            "video_id": "video_xyz789"
        }
    ],
    "created": 1761381533
}