Kling 2.6 Standard Motion Control Serverless API

Kling Motion Control enables precise motion transfer from videos to custom characters, preserving identity and movement fidelity.

~608.23s
~$0.967
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/kling-2.6-standard-motion-control"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "image_url": "https://segmind-resources.s3.amazonaws.com/output/ada5c480-9051-4852-beac-cc6c6a17184f-kling-motion-std-ip-image.jpeg",
12    "video_url": "https://segmind-resources.s3.amazonaws.com/output/de918869-2e43-4bc1-9894-a888f465ec0c-kling-motion-std.mp4",
13    "prompt": "cat and dog are dancing.",
14    "keep_original_sound": true,
15    "character_orientation": "video"
16}
17
18response = requests.post(url, headers=headers, json=data)
19
20if response.status_code == 200:
21    result = response.json()
22    print(json.dumps(result, indent=2))
23else:
24    print(f"Error: {response.status_code}")
25    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/kling-2.6-standard-motion-control

Parameters

promptrequired
string

Input scene description and effects. For nostalgia, consider '1920s street carnival with vintage cars'.

character_orientationoptional
string

Set character orientation from image or video. Choose 'video' for dynamic movement; 'image' for static views.

Default: "video"
Allowed values :
"video""image"
image_urloptional
string (uri)

Reference image URL shapes video elements. Use a photo with clear character proportions for best results.

keep_original_soundoptional
boolean

Preserve original video sound for authenticity. Ideal for including ambient street noise.

Default: true
video_urloptional
string (uri)

Reference video URL sets character actions. Use a full-body video for complex movements.

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out