Wan 2.7 Reference-to-Video
curl --request POST \
--url https://api.novita.ai/v3/async/wan2.7-r2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"size": "<string>",
"audio": true,
"media": [
{
"url": "<string>",
"type": "<string>",
"reference_voice": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"shot_type": "<string>",
"watermark": true,
"negative_prompt": "<string>"
}
'import requests
url = "https://api.novita.ai/v3/async/wan2.7-r2v"
payload = {
"seed": 123,
"size": "<string>",
"audio": True,
"media": [
{
"url": "<string>",
"type": "<string>",
"reference_voice": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"shot_type": "<string>",
"watermark": True,
"negative_prompt": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
seed: 123,
size: '<string>',
audio: true,
media: [{url: '<string>', type: '<string>', reference_voice: '<string>'}],
prompt: '<string>',
duration: 123,
shot_type: '<string>',
watermark: true,
negative_prompt: '<string>'
})
};
fetch('https://api.novita.ai/v3/async/wan2.7-r2v', 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.novita.ai/v3/async/wan2.7-r2v",
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([
'seed' => 123,
'size' => '<string>',
'audio' => true,
'media' => [
[
'url' => '<string>',
'type' => '<string>',
'reference_voice' => '<string>'
]
],
'prompt' => '<string>',
'duration' => 123,
'shot_type' => '<string>',
'watermark' => true,
'negative_prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.novita.ai/v3/async/wan2.7-r2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.novita.ai/v3/async/wan2.7-r2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/v3/async/wan2.7-r2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Video Generator
Wan 2.7 Reference-to-Video
POST
/
v3
/
async
/
wan2.7-r2v
Wan 2.7 Reference-to-Video
curl --request POST \
--url https://api.novita.ai/v3/async/wan2.7-r2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"size": "<string>",
"audio": true,
"media": [
{
"url": "<string>",
"type": "<string>",
"reference_voice": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"shot_type": "<string>",
"watermark": true,
"negative_prompt": "<string>"
}
'import requests
url = "https://api.novita.ai/v3/async/wan2.7-r2v"
payload = {
"seed": 123,
"size": "<string>",
"audio": True,
"media": [
{
"url": "<string>",
"type": "<string>",
"reference_voice": "<string>"
}
],
"prompt": "<string>",
"duration": 123,
"shot_type": "<string>",
"watermark": True,
"negative_prompt": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
seed: 123,
size: '<string>',
audio: true,
media: [{url: '<string>', type: '<string>', reference_voice: '<string>'}],
prompt: '<string>',
duration: 123,
shot_type: '<string>',
watermark: true,
negative_prompt: '<string>'
})
};
fetch('https://api.novita.ai/v3/async/wan2.7-r2v', 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.novita.ai/v3/async/wan2.7-r2v",
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([
'seed' => 123,
'size' => '<string>',
'audio' => true,
'media' => [
[
'url' => '<string>',
'type' => '<string>',
'reference_voice' => '<string>'
]
],
'prompt' => '<string>',
'duration' => 123,
'shot_type' => '<string>',
'watermark' => true,
'negative_prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.novita.ai/v3/async/wan2.7-r2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.novita.ai/v3/async/wan2.7-r2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/v3/async/wan2.7-r2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"seed\": 123,\n \"size\": \"<string>\",\n \"audio\": true,\n \"media\": [\n {\n \"url\": \"<string>\",\n \"type\": \"<string>\",\n \"reference_voice\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"shot_type\": \"<string>\",\n \"watermark\": true,\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Wan 2.7 Reference-to-Video model with multimodal input support (text/image/video). Can generate single-character performance or multi-character interaction videos using reference characters. Supports intelligent multi-shot generation. 720P and 1080P resolutions, duration 2~10 seconds, billed per second. Output includes audio by default.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
Request Headers
string
requis
Supports:
application/jsonstring
requis
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
integer
Random seed for improving reproducibility. Range: [0, 2147483647].Value range: [0, 2147483647]
string
défaut:"1920*1080"
Output video resolution (widthheight), affects pricing. 720P: 1280720 (16:9), 7201280 (9:16), 960960 (1:1), 1088832 (4:3), 8321088 (3:4). 1080P: 19201080 (16:9), 10801920 (9:16), 14401440 (1:1), 16321248 (4:3), 1248*1632 (3:4).Optional values:
1280*720, 720*1280, 960*960, 1088*832, 832*1088, 1920*1080, 1080*1920, 1440*1440, 1632*1248, 1248*1632boolean
défaut:true
Whether to generate audio in the video, affects pricing. Default true (with audio).
object[]
requis
Reference media array for character appearance, motion and voice extraction. Items map to character1, character2 etc. in order. Images: 0-5, Videos: 0-3, Total <= 5. Image formats: JPEG, JPG, PNG, BMP, WEBP, resolution [240,8000]px, max 10MB. Video formats: MP4, MOV, duration 1-30s, max 100MB. Audio formats: MP3, WAV, FLAC, duration 3-30s.Array length: 1 - 5
Masquer properties
Masquer properties
string
requis
Media file URL.
string
requis
Media type. reference_image: reference image for character appearance; reference_video: reference video for character motion and appearance; first_frame: first frame image to control video starting frame.Optional values:
reference_image, reference_video, first_framestring
Character reference audio URL for voice cloning. Formats: MP3, WAV, FLAC, duration 3~30s.
string
requis
Text prompt describing desired video content. Use character1, character2 etc. to reference characters from media array in order. Each reference (video or image) contains a single character. Supports Chinese and English, max 1500 characters.Length limit: 0 - 1500
integer
défaut:5
Video duration in seconds, billed per second. Range: [2, 10] integer.Value range: [2, 10]
string
défaut:"single"
Shot type. single = one continuous shot (default), multi = multiple shots with transitions. Takes priority over prompt.Optional values:
single, multiboolean
défaut:false
Add watermark to the output video (bottom-right corner).
string
Negative prompt describing undesired content in the video. Supports Chinese and English, max 500 characters.Length limit: 0 - 500
Response
string
Use the task_id to request the Task Result API to retrieve the generated outputs.
Dernière modification le 10 août 2026