Skip to main content
POST
Kling Motion Control Video Task (kling-v3)

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Headers

Content-Type
string
default:application/json
required

Data exchange format

Body

application/json
model_name
enum<string>
required

Model name

Available options:
kling-v3
image_url
string
required

Reference image. The characters, background, and other elements in the generated video will be based on the reference image.

  • Video content requirements:
    • Character proportions should match the reference action proportions as much as possible; avoid using full-body actions to drive half-body characters
    • Characters must show clear upper body or full body limbs and head, avoid occlusion
    • Avoid extreme character orientations such as upside-down or lying flat; character proportion in frame must not be too low
    • Supports realistic/stylized characters (including humans/humanoid animals/partial animals/characters with humanoid limb proportions)
  • Supports image Base64 encoding or image URL (must be accessible)
  • Note: When using Base64, do not add any prefix (e.g., data:image/png;base64,) before the Base64 string; pass the Base64 encoded string directly.
  • Correct Base64 parameter:

iVBORw0KGgoAAAANSUhEUgAAAAUA...

  • Incorrect Base64 parameter (includes data: prefix):

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...

  • Supported image formats: .jpg / .jpeg / .png
  • Image file size must not exceed 10MB, image dimensions between 300px~65536px, aspect ratio between 1:2.5 ~ 2.5:1
video_url
string
required

Reference video URL. The character motion in the generated video will match the reference video.

  • Video content requirements:
    • Characters must show clear upper body or full body limbs and head, avoid occlusion
    • Recommend uploading single-person action video; for 2+ people, the largest character action will be used
    • Real person actions recommended; some stylized characters/humanoid limb proportions may work
    • Action video should be a single continuous shot with the character always visible; avoid cuts, camera movements, etc., otherwise content will be truncated
    • Avoid excessively fast actions; relatively smooth actions produce better results
  • Video files support .mp4/.mov, file size must not exceed 100MB, both width and height must be between 340px~3850px; validation failures will return error codes
  • Minimum video duration is 3 seconds; maximum duration depends on character orientation reference (character_orientation):
    • When character orientation matches the video character: max 30 seconds
    • When character orientation matches the image character: max 10 seconds
  • If your action difficulty is high or speed is fast, there is a chance the result will be shorter than the uploaded video duration because the model can only extract valid action duration; minimum 3s of usable continuous action is needed. Note that consumed credits cannot be refunded; adjust action difficulty and speed accordingly
  • The system validates video content and will return error codes if issues are found
character_orientation
enum<string>
required

Character orientation in the generated video, can match the image or the video

  • image: Match the character orientation in the image; reference video duration must not exceed 10 seconds
  • video: Match the character orientation in the video; reference video duration must not exceed 30 seconds
  • When referencing elements, the generated video can only reference the character orientation from the video
Available options:
image,
video
mode
enum<string>
default:std
required

Video generation mode

  • std: Standard mode, cost-effective
  • pro: Expert mode (high quality), better video quality
Available options:
std,
pro
prompt
string

Text prompt, can include positive and negative descriptions

  • Add elements to the scene or achieve camera movement effects through the prompt
Maximum string length: 2500
element_list
object[]

Element reference list, configured based on element IDs in the element library.

  • Use key:value format:
Maximum array length: 1
keep_original_sound
enum<string>
default:yes

Whether to keep the original audio of the video.

Available options:
yes,
no
watermark_info
object

Whether to also generate a watermarked result.

callback_url
string

Callback notification URL for this task. If configured, the server will proactively notify when the task status changes.

external_task_id
string

Custom task ID.

  • Does not override the system-generated task ID, but supports querying by this ID.
  • Must be unique per user.

Response

200 - application/json

Task accepted.

code
integer

Error code; see error codes for details.

message
string

Error message.

request_id
string

Request ID, system-generated, used for request tracking and troubleshooting.

data
object