curl --request POST \
--url https://mvp.tryunsora.com/api/v1/motion-control/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-mc-3.0-pro",
"character_image_url": "<string>",
"motion_video_url": "<string>",
"prompt": "<string>",
"keep_sound": true,
"character_orientation": "<string>"
}
'import requests
url = "https://mvp.tryunsora.com/api/v1/motion-control/create"
payload = {
"model": "kling-mc-3.0-pro",
"character_image_url": "<string>",
"motion_video_url": "<string>",
"prompt": "<string>",
"keep_sound": True,
"character_orientation": "<string>"
}
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({
model: 'kling-mc-3.0-pro',
character_image_url: '<string>',
motion_video_url: '<string>',
prompt: '<string>',
keep_sound: true,
character_orientation: '<string>'
})
};
fetch('https://mvp.tryunsora.com/api/v1/motion-control/create', 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://mvp.tryunsora.com/api/v1/motion-control/create",
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([
'model' => 'kling-mc-3.0-pro',
'character_image_url' => '<string>',
'motion_video_url' => '<string>',
'prompt' => '<string>',
'keep_sound' => true,
'character_orientation' => '<string>'
]),
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://mvp.tryunsora.com/api/v1/motion-control/create"
payload := strings.NewReader("{\n \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\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://mvp.tryunsora.com/api/v1/motion-control/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/motion-control/create")
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 \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"generation": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"mode": "<string>",
"modelId": "<string>"
},
"model": "<string>",
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}Motion control
Make the character in an image copy the motion of a reference video, with Kling, Wan Animate or DreamActor.
curl --request POST \
--url https://mvp.tryunsora.com/api/v1/motion-control/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-mc-3.0-pro",
"character_image_url": "<string>",
"motion_video_url": "<string>",
"prompt": "<string>",
"keep_sound": true,
"character_orientation": "<string>"
}
'import requests
url = "https://mvp.tryunsora.com/api/v1/motion-control/create"
payload = {
"model": "kling-mc-3.0-pro",
"character_image_url": "<string>",
"motion_video_url": "<string>",
"prompt": "<string>",
"keep_sound": True,
"character_orientation": "<string>"
}
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({
model: 'kling-mc-3.0-pro',
character_image_url: '<string>',
motion_video_url: '<string>',
prompt: '<string>',
keep_sound: true,
character_orientation: '<string>'
})
};
fetch('https://mvp.tryunsora.com/api/v1/motion-control/create', 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://mvp.tryunsora.com/api/v1/motion-control/create",
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([
'model' => 'kling-mc-3.0-pro',
'character_image_url' => '<string>',
'motion_video_url' => '<string>',
'prompt' => '<string>',
'keep_sound' => true,
'character_orientation' => '<string>'
]),
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://mvp.tryunsora.com/api/v1/motion-control/create"
payload := strings.NewReader("{\n \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\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://mvp.tryunsora.com/api/v1/motion-control/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/motion-control/create")
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 \"model\": \"kling-mc-3.0-pro\",\n \"character_image_url\": \"<string>\",\n \"motion_video_url\": \"<string>\",\n \"prompt\": \"<string>\",\n \"keep_sound\": true,\n \"character_orientation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"generation": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"mode": "<string>",
"modelId": "<string>"
},
"model": "<string>",
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}character_image_url with the motion from motion_video_url. Runs through Generate with live pricing; check a model’s inputs with List models (?category=motion-control) and its price with Quote a generation.
Models: kling-mc-3.0-pro (default), kling-mc-3.0-std, kling-mc-2.6-pro, wan-2.2-animate, dreamactor-v2. Poll Poll video status with generation.id.
curl -X POST "https://mvp.tryunsora.com/api/v1/motion-control/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-mc-3.0-pro",
"character_image_url": "https://cdn.example.com/character.png",
"motion_video_url": "https://cdn.example.com/dance.mp4",
"keep_sound": true
}'
Authorizations
An Unsora API key (uns_…). A Clerk session token also works.
Headers
API key requests only. Retrying with the same key within 24 hours replays the first response (with the Idempotent-Replayed: true header) instead of charging again. The body isn't compared; reusing the key on a different endpoint returns 409 IDEMPOTENCY_CONFLICT. Keys over 128 characters are ignored.
128Body
kling-mc-3.0-pro, kling-mc-3.0-std, kling-mc-2.6-pro, wan-2.2-animate, dreamactor-v2 Image of the character. Aliases: characterImageUrl, image.
Video whose motion the character copies. Aliases: motionVideoUrl, video.
Optional guidance, for models that take one.
Keep the reference video's audio, for models that offer it. Aliases: keepSound, keep_original_sound.
Which way the character faces, for models that offer it; values per model in GET /catalog. Alias: characterOrientation.

