1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/kling-2.6-standard-motion-control";
const data = {
"image_url": "https://segmind-resources.s3.amazonaws.com/output/ada5c480-9051-4852-beac-cc6c6a17184f-kling-motion-std-ip-image.jpeg",
"video_url": "https://segmind-resources.s3.amazonaws.com/output/de918869-2e43-4bc1-9894-a888f465ec0c-kling-motion-std.mp4",
"prompt": "cat and dog are dancing.",
"keep_original_sound": true,
"character_orientation": "video"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Reference image URL shapes video elements. Use a photo with clear character proportions for best results.
Reference video URL sets character actions. Use a full-body video for complex movements.
Input scene description and effects. For nostalgia, consider '1920s street carnival with vintage cars'.
Preserve original video sound for authenticity. Ideal for including ambient street noise.
Set character orientation from image or video. Choose 'video' for dynamic movement; 'image' for static views.
Allowed values:
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Kling Motion Control is an advanced motion transfer model built into Kling Video 2.6 Pro that extracts precise, full-body motion paths from reference videos and applies them to static character images. Unlike generic video animation tools, it delivers true motion fidelity with consistent character identity, detailed hand and gesture control, and support for both simple and complex movements. The model analyzes 3 to 30-second reference videos frame-by-frame, preserving the subtleties of human motion—including walking, dancing, hand gestures, and facial expressions—then seamlessly transfers that motion to your custom character while maintaining their visual appearance and personality.
Kling Motion Control excels in professional workflows requiring precise, repeatable character animation:
Crafting Effective Prompts:
Reference Video Selection:
Parameter Tuning:
What file formats does Kling Motion Control support?
Standard image formats (JPG, PNG) for character input and common video formats (MP4, MOV) for motion reference.
How is Kling Motion Control different from other animation AI models?
Unlike generic video generators, Kling Motion Control preserves exact motion paths from reference videos while maintaining your character's visual identity. It focuses on motion transfer accuracy, not generating random movements.
What makes a good reference video?
Full-body visibility, clear lighting, unobstructed movement, and 3-30 second duration. Complex actions require the subject to be centered and fully visible throughout.
Can I use real human videos as motion references?
Yes—human motion videos work exceptionally well. The model extracts the motion path and applies it to any character style, from realistic to cartoonish.
Should I toggle character orientation to 'video' or 'image'?
Use "video" when you want your character to match the reference subject's facing direction and movement flow. Use "image" to maintain your character's original orientation while applying the motion.
Does audio preservation affect video quality?
No—keeping original sound is purely an audio option. It maintains the reference video's audio track without impacting visual quality or motion accuracy.