curl --request POST \
--url https://api.modellix.ai/api/v1/skywork/skyreels-r2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": [
"https://example.com/subject_a.png",
"https://example.com/subject_b.png"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'The two characters walk together through a neon-lit city',
ref_images: ['https://example.com/subject_a.png', 'https://example.com/subject_b.png']
})
};
fetch('https://api.modellix.ai/api/v1/skywork/skyreels-r2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/skywork/skyreels-r2v"
payload = {
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": ["https://example.com/subject_a.png", "https://example.com/subject_b.png"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/skywork/skyreels-r2v"
payload := strings.NewReader("{\n \"prompt\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\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.modellix.ai/api/v1/skywork/skyreels-r2v")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/skywork/skyreels-r2v';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'The two characters walk together through a neon-lit city',
ref_images: ['https://example.com/subject_a.png', 'https://example.com/subject_b.png']
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/skywork/skyreels-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([
'prompt' => 'The two characters walk together through a neon-lit city',
'ref_images' => [
'https://example.com/subject_a.png',
'https://example.com/subject_b.png'
]
]),
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;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/skywork/skyreels-r2v")
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\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": ["https://example.com/subject_a.png", "https://example.com/subject_b.png"]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/skywork/skyreels-r2v")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/skywork/skyreels-r2v' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": [
"https://example.com/subject_a.png",
"https://example.com/subject_b.png"
]
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-skyreels-r2v-001",
"model_id": "skyreels/skyreels-r2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-skyreels-r2v-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}[Core Function] SkyReels Reference-to-Video (multiobject) generates a video from a prompt while preserving the subjects from 1-4 reference images. [Strengths] Multi-subject identity preservation, placing specific characters or objects into a newly generated scene. [Best For] Putting given characters/products into a new scene, multi-subject composition from reference photos. [Limitations] Do NOT use this to animate a single fixed frame (use skyreels-i2v) or for text-only generation (use skyreels-t2v). It requires 1-4 reference images and produces clips up to 5s. [Routing] Provide 1-4 subject reference images in ref_images; set aspect_ratio and duration (1-5s) as needed.
curl --request POST \
--url https://api.modellix.ai/api/v1/skywork/skyreels-r2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": [
"https://example.com/subject_a.png",
"https://example.com/subject_b.png"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'The two characters walk together through a neon-lit city',
ref_images: ['https://example.com/subject_a.png', 'https://example.com/subject_b.png']
})
};
fetch('https://api.modellix.ai/api/v1/skywork/skyreels-r2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/skywork/skyreels-r2v"
payload = {
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": ["https://example.com/subject_a.png", "https://example.com/subject_b.png"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/skywork/skyreels-r2v"
payload := strings.NewReader("{\n \"prompt\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\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.modellix.ai/api/v1/skywork/skyreels-r2v")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/skywork/skyreels-r2v';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'The two characters walk together through a neon-lit city',
ref_images: ['https://example.com/subject_a.png', 'https://example.com/subject_b.png']
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/skywork/skyreels-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([
'prompt' => 'The two characters walk together through a neon-lit city',
'ref_images' => [
'https://example.com/subject_a.png',
'https://example.com/subject_b.png'
]
]),
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;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/skywork/skyreels-r2v")
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\": \"The two characters walk together through a neon-lit city\",\n \"ref_images\": [\n \"https://example.com/subject_a.png\",\n \"https://example.com/subject_b.png\"\n ]\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": ["https://example.com/subject_a.png", "https://example.com/subject_b.png"]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/skywork/skyreels-r2v")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/skywork/skyreels-r2v' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"prompt": "The two characters walk together through a neon-lit city",
"ref_images": [
"https://example.com/subject_a.png",
"https://example.com/subject_b.png"
]
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-skyreels-r2v-001",
"model_id": "skyreels/skyreels-r2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-skyreels-r2v-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
SkyReels reference-to-video (multiobject) request. Preserves subjects from 1-4 reference images.
Text description of the video to generate (max 512 tokens).
1"The two characters walk together through a neon-lit city"
1-4 subject reference image URLs (jpg/jpeg/png/gif/bmp).
1 - 4 elements1[ "https://example.com/subject_a.png", "https://example.com/subject_b.png" ]
Video duration in seconds.
1 <= x <= 55
Video aspect ratio.
16:9, 4:3, 1:1, 9:16, 3:4 "16:9"