Create a Kling Motion Control task
Create a Kling Motion Control task from a character image and a reference motion video with the compatible CometAPI route.
Required media
image_url accepts a public URL or a raw Base64 string.
- Use a JPG, JPEG, or PNG image that is 10 MB or smaller.
- Make each image dimension from 300 through 65,536 pixels.
- Use an aspect ratio from 1:2.5 through 2.5:1.
- Send Base64 as the raw encoded string without a
data:image/...;base64,prefix. - Show one unobstructed character with body framing that matches the motion reference.
video_url accepts a public MP4 or MOV URL.
- Use a video that is 100 MB or smaller.
- Make the short edge at least 340 pixels.
- Make the long edge no more than 3850 pixels.
- Use a continuous shot with one visible character.
- Avoid cuts, camera changes, and excessively fast motion.
task_status. An
outer HTTP 200 or response code: 0 confirms the query response, not a
successful generation result.Set the orientation value
character_orientation is required and accepts image or video.
element_list, then set character_orientation to video.
Choose the model and mode
The compatible route acceptskling-v2-6 and kling-v3. Both model values
accept both mode values:
model_name, the request uses kling-v2-6. If you omit mode,
the request uses std. The kling-v3 value keeps the compatible request shape
described on this page; it does not select the separate Kling 3.0 path-version
contract.
The compatible contract does not guarantee a fixed output resolution. Inspect
each returned video if your application requires specific dimensions.
keep_original_sound accepts yes or no. If you omit this field, the
request uses yes.
Task flow
Submit the Motion Control request
task_id.Poll the task
task_id.
Continue until the status is succeed or failed.Store the result
Optional fields
Callback structure
The Legacy callback schema has the following structure:submitted, processing, succeed, or failed.
Terminal result fields are present only when returned for the terminal state.
Result fields
submitted, processing, succeed, or failed.
Authorizations
Bearer authentication. Use your CometAPI API key.
Body
Character image as a public URL or a raw Base64 string. Send raw Base64 without a data:image/...;base64, prefix; data-URI input is outside the compatible contract. Supported formats are JPG, JPEG, and PNG. The image must be 10 MB or smaller. Its width and height must each be from 300 through 65,536 pixels, and its aspect ratio must be between 1:2.5 and 2.5:1.
Public reference motion video URL. Use an MP4 or MOV file that is 100 MB or smaller. The short edge must be at least 340 pixels, and the long edge must not exceed 3850 pixels. The video must be at least 3 seconds long. The maximum duration depends on character_orientation.
Required compatible string enum. With image, the reference video can be 3 to 10 seconds long. With video, the reference video can be 3 to 30 seconds long.
image, video Model ID for this compatible Motion Control request. Omit this field to use kling-v2-6. The kling-v3 value keeps this compatible request shape; it does not select the separate Kling 3.0 path-version contract.
kling-v2-6, kling-v3 Optional text field in the compatible request structure. Maximum 2500 characters.
2500Compatible string enum. Accepted values are yes and no. Omitted requests use yes.
yes, no Both compatible models accept std and pro. Omitted requests use std.
std, pro Optional callback field in the compatible structure. Provide a URI, or omit the field or send an empty string when no callback URI is configured.
Optional ID for correlation in your application. The value must be unique for your account. Store the returned task_id for CometAPI status queries.
Optional compatible Element structure. Provide at most one object, and combine this field only with character_orientation: video.
1Optional compatible watermark structure.