curl --request POST \
--url https://api.modellix.ai/api/v1/vidu/motion-sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_url: 'https://example.com/character-portrait.jpg',
video_url: 'https://example.com/dance-reference.mp4'
})
};
fetch('https://api.modellix.ai/api/v1/vidu/motion-sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/vidu/motion-sync"
payload = {
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}
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/vidu/motion-sync"
payload := strings.NewReader("{\n \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\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/vidu/motion-sync")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/vidu/motion-sync';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_url: 'https://example.com/character-portrait.jpg',
video_url: 'https://example.com/dance-reference.mp4'
})
};
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/vidu/motion-sync",
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([
'image_url' => 'https://example.com/character-portrait.jpg',
'video_url' => 'https://example.com/dance-reference.mp4'
]),
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/vidu/motion-sync")
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 \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/vidu/motion-sync")!
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/vidu/motion-sync' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-vidu-msync-001",
"model_id": "vidu/motion-sync",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-vidu-msync-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'reference_images' 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"
}Motion Sync
[Core Function] Vidu Motion Sync is a video-to-video motion transfer model. [Strengths] It excels at accurately extracting physical motion from a source video (e.g., a dancing person) and applying it to a target character image, preserving the target’s identity. [Best For] Highly recommended for: creating dance videos with custom characters, transferring complex choreography, and replicating specific physical actions onto avatars. [Limitations] Do NOT use this model if you want to change what a character is saying (use Lip Sync). It requires both a reference video for motion and a target image for appearance. [Routing] Use this model specifically when the user wants to copy the body movements or actions from one video onto a different character.
curl --request POST \
--url https://api.modellix.ai/api/v1/vidu/motion-sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_url: 'https://example.com/character-portrait.jpg',
video_url: 'https://example.com/dance-reference.mp4'
})
};
fetch('https://api.modellix.ai/api/v1/vidu/motion-sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/vidu/motion-sync"
payload = {
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}
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/vidu/motion-sync"
payload := strings.NewReader("{\n \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\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/vidu/motion-sync")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/vidu/motion-sync';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_url: 'https://example.com/character-portrait.jpg',
video_url: 'https://example.com/dance-reference.mp4'
})
};
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/vidu/motion-sync",
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([
'image_url' => 'https://example.com/character-portrait.jpg',
'video_url' => 'https://example.com/dance-reference.mp4'
]),
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/vidu/motion-sync")
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 \"image_url\": \"https://example.com/character-portrait.jpg\",\n \"video_url\": \"https://example.com/dance-reference.mp4\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/vidu/motion-sync")!
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/vidu/motion-sync' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"image_url": "https://example.com/character-portrait.jpg",
"video_url": "https://example.com/dance-reference.mp4"
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-vidu-msync-001",
"model_id": "vidu/motion-sync",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-vidu-msync-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'reference_images' 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
Vidu motion sync request. The body movements and poses from video_url are transferred onto the character in image_url.
Target character image. The character's appearance will be preserved while its movements are replaced by those from the reference video. Accepts a URL or base64 data URI.
1"https://example.com/character-portrait.jpg"
Reference motion video URL. The body movements and poses from this video will be applied to the target character.
1"https://example.com/dance-reference.mp4"