Reference Video to Video Generation
curl --request POST \
--url https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform the video into an animated painting style with vibrant colors",
"video": "https://example.com/source-video.mp4",
"keep_audio": true,
"mode": "pro"
}
'import requests
url = "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation"
payload = {
"prompt": "Transform the video into an animated painting style with vibrant colors",
"video": "https://example.com/source-video.mp4",
"keep_audio": True,
"mode": "pro"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Transform the video into an animated painting style with vibrant colors',
video: 'https://example.com/source-video.mp4',
keep_audio: true,
mode: 'pro'
})
};
fetch('https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'Transform the video into an animated painting style with vibrant colors',
'video' => 'https://example.com/source-video.mp4',
'keep_audio' => true,
'mode' => 'pro'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation"
payload := strings.NewReader("{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}"
response = http.request(request)
puts response.read_body{
"task_info": {
"id": "8e1e315e-b50d-4334-a231-be7d19a372f4",
"status": "pending",
"created_at": "2026-03-03T00:00:00Z",
"updated_at": "2026-03-03T00:00:00Z"
}
}{
"task_info": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "failed",
"error": {
"code": 3001,
"title": "Task Execution Error",
"detail": "Task execution failed"
}
}
}Kling V3 Omni Reference Video-To-Video
Kling V3 Omni Reference Video to Video
Generate a new video based on a reference video using the Kling V3 Omni model.
POST
/
vendors
/
klingai
/
v1
/
kling-v3-omni
/
reference-video-to-video
/
generation
Reference Video to Video Generation
curl --request POST \
--url https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform the video into an animated painting style with vibrant colors",
"video": "https://example.com/source-video.mp4",
"keep_audio": true,
"mode": "pro"
}
'import requests
url = "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation"
payload = {
"prompt": "Transform the video into an animated painting style with vibrant colors",
"video": "https://example.com/source-video.mp4",
"keep_audio": True,
"mode": "pro"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Transform the video into an animated painting style with vibrant colors',
video: 'https://example.com/source-video.mp4',
keep_audio: true,
mode: 'pro'
})
};
fetch('https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'Transform the video into an animated painting style with vibrant colors',
'video' => 'https://example.com/source-video.mp4',
'keep_audio' => true,
'mode' => 'pro'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation"
payload := strings.NewReader("{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mulerouter.ai/vendors/klingai/v1/kling-v3-omni/reference-video-to-video/generation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Transform the video into an animated painting style with vibrant colors\",\n \"video\": \"https://example.com/source-video.mp4\",\n \"keep_audio\": true,\n \"mode\": \"pro\"\n}"
response = http.request(request)
puts response.read_body{
"task_info": {
"id": "8e1e315e-b50d-4334-a231-be7d19a372f4",
"status": "pending",
"created_at": "2026-03-03T00:00:00Z",
"updated_at": "2026-03-03T00:00:00Z"
}
}{
"task_info": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "failed",
"error": {
"code": 3001,
"title": "Task Execution Error",
"detail": "Task execution failed"
}
}
}Overview
Generate new videos from a reference video using the Kling V3 Omni model:- Video reference — provide a source video URL via
video - Keep audio — preserve audio from the source video with
keep_audio: true - Element references — reference up to 4 elements when using reference video
- Standard / Professional modes — 720P (std) or 1080P (pro) output
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Text prompt describing the desired transformation.
Maximum string length:
2500Reference video URL.
Negative prompt to exclude unwanted content.
Whether to keep the audio from the source video.
Element list. Combined count of images and elements must not exceed 4 when using reference video.
Maximum array length:
4Show child attributes
Show child attributes
Generation mode. std for standard quality, pro for higher quality.
Available options:
std, pro Aspect ratio of the generated video.
Available options:
16:9, 9:16, 1:1 Duration of the generated video in seconds (3-15).
Response
Accepted - Task created successfully
Show child attributes
Show child attributes

