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
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.