Skip to content
Docs menu

Video models

Kling 2.6

On this page

Kling 2.6 — high-quality AI video generation.

modelIdkling-2-6-image-to-video, kling-2-6-text-to-video
Modalityvideo
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Image To Videokling-2-6-image-to-videoPOST /api/v1/generateprompt, image_urls, sound, duration
Text To Videokling-2-6-text-to-videoPOST /api/v1/generateprompt, sound, aspect_ratio, duration
Poll taskGET /api/v1/task/{id}?model=kling-2-6-image-to-video

Image To Video — kling-2-6-image-to-video

FieldTypeRequiredValues / example
promptstringYesThe text prompt used to generate the video Max 2500 characters. (default: Animate the still: a scoop of ice cream slowly melts down a waffle cone, a single drip sliding toward the fingertips as warm afternoon light glows behind it and the camera drifts gently closer.)
image_urlsstring[]YesThe URL of the image used to generate video (image URL)
soundbooleanYesThis parameter is used to specify whether the generated video contains sound (true/false) (default: false)
durationstringYesDuration of the video in seconds (options: 5 | 10) (default: 5)
bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"kling-2-6-image-to-video","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","image_urls":["https://example.com/input.jpg"],"sound":false,"duration":"5"}}'

Text To Video — kling-2-6-text-to-video

FieldTypeRequiredValues / example
promptstringYesThe text prompt used to generate the video Max 2500 characters. (default: A great whale woven entirely from drifting autumn leaves glides silently over a sleepy town at dusk, streetlamps flickering awake beneath it as the camera tracks alongside and warm lamplight ripples across its leafy flank.)
soundbooleanYesThis parameter is used to specify whether the generated video contains sound (true/false) (default: false)
aspect_ratiostringYesThis parameter defines the aspect ratio of the video. (options: 1:1 | 16:9 | 9:16) (default: 1:1)
durationstringYesDuration of the video in seconds (options: 5 | 10) (default: 5)
bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"kling-2-6-text-to-video","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","sound":false,"aspect_ratio":"1:1","duration":"5"}}'