Model ID
Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.
Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.
- Third-party
Kling AI Motion Control 2.6 transfers a reference video's motion to a character image, generating 3–30 seconds when matching the video orientation or up to 10 seconds when matching the image orientation, with optional prompt guidance and 720p or 1080p output.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Pricing |
|
const response = await env.AI.run(
'klingai/kling-v2-6-motion-control',
{
audio: 'off',
character_orientation: 'video',
image_url:
'https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-qa-test/35d77e27300cf5e8995704cd858d759c.png',
prompt:
'A woman wearing a loose gray T-shirt and denim shorts performs the same smooth dance routine, with a clean, natural look.',
resolution: '720p',
video_url: 'https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "klingai/kling-v2-6-motion-control",
"input": {
"audio": "off",
"character_orientation": "video",
"image_url": "https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-qa-test/35d77e27300cf5e8995704cd858d759c.png",
"prompt": "A woman wearing a loose gray T-shirt and denim shorts performs the same smooth dance routine, with a clean, natural look.",
"resolution": "720p",
"video_url": "https://v4-kling.kechuangai.com/kcdn/cdn-kcdn112452/kling-qa-test/dance_10s.mp4"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/klingai/kling-v2-6-motion-control/transfer-a-dance-routine.mp4"
}
}prompt
stringmaxLength: 2500Optional prompt for scene and background detailsimage_url
stringrequiredformat: uriPublic URL of the character image (JPG or PNG)video_url
stringrequiredformat: uriPublic URL of the motion reference video (MP4 or MOV)character_orientation
stringrequireddefault: videoenum: video, imageMatch character orientation to the reference video or imageaudio
stringrequireddefault: originalenum: original, offKeep the reference video audio or omit audioresolution
stringrequireddefault: 720penum: 720p, 1080pGenerated video resolutionvideo
stringURL to the generated video