V3 Motion control
An advanced AI video generation model developed by Kuaishou Technology that animates a character from a reference image using the motion captured from a reference video. Kling v3 Motion Control transfers movements from a source video onto a character provided in an image, enabling high-fidelity motion replication with support for Standard and Professional quality modes.
Setup your API Key
If you don't have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
How to Make a Call
API Schemas
Create a video generation task and send it to the server
Retrieve the generated video from the server
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its id, obtained from the endpoint described above.
If the video generation task status is completed, the response will include the final result — with the generated video URL and additional metadata.
Optional instructions that define the background elements, including their appearance, timing in the frame, and behavior, and can also subtly adjust the character's animation.
A direct link to an online image or a Base64-encoded local image that serves as the character reference for animation. The image must contain exactly one clearly visible character, who will be animated using the motion from the reference video provided in the video_url parameter. For optimal results, be sure the character's proportions in the image match those in the video.
A HTTPS URL pointing to a video or a data URI containing a video. The character's movements from this video will be applied to the character from the image provided in the image_url parameter. For best results, use a video with a single clearly visible character. If the video contains two or more characters, the motion of the character occupying the largest portion of the frame will be used for generation.
Generate the orientation of the character in the video, which can be selected to match the image or the video:
- image: has the same orientation as the person in the picture; At this time, the reference video duration should not exceed 10 seconds;
- video: consistent with the orientation of the characters in the video; At this time, the reference video duration should not exceed 30 seconds;
videoPossible values: Whether to keep the original audio from the video.
trueVideo generation mode:
- std: Standard Mode — basic, cost-effective.
- pro: Professional Mode — higher quality, higher cost.
stdPossible values: The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325The current status of the generation task.
completedPossible values: POST /v2/video/generations HTTP/1.1
Host: api.aimlapi.com
Content-Type: application/json
Accept: */*
Content-Length: 190
{
"model": "klingai/video-v3-motion-control",
"prompt": "text",
"image_url": "https://example.com",
"video_url": "https://example.com",
"character_orientation": "video",
"keep_audio": true,
"mode": "std"
}{
"id": "60ac7c34-3224-4b14-8e7d-0aa0db708325",
"status": "completed",
"video": {
"url": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
},
"error": {
"name": "text",
"message": "text"
},
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Full Example: Generating and Retrieving the Video From the Server
The example below animates a character from a reference image using the motions captured in a reference video. The code creates a video generation task, then automatically polls the server every 15 seconds until it receives the video URL.
Last updated
Was this helpful?