Video models
Kling 2.6
On this page
Kling 2.6 — high-quality AI video generation.
| modelId | kling-2-6-image-to-video, kling-2-6-text-to-video |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Image To Video | kling-2-6-image-to-video | POST /api/v1/generate | prompt, image_urls, sound, duration |
| Text To Video | kling-2-6-text-to-video | POST /api/v1/generate | prompt, sound, aspect_ratio, duration |
| Poll task | — | GET /api/v1/task/{id}?model=kling-2-6-image-to-video | — |
Image To Video — kling-2-6-image-to-video
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The 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_urls | string[] | Yes | The URL of the image used to generate video (image URL) |
| sound | boolean | Yes | This parameter is used to specify whether the generated video contains sound (true/false) (default: false) |
| duration | string | Yes | Duration 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
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The 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.) |
| sound | boolean | Yes | This parameter is used to specify whether the generated video contains sound (true/false) (default: false) |
| aspect_ratio | string | Yes | This parameter defines the aspect ratio of the video. (options: 1:1 | 16:9 | 9:16) (default: 1:1) |
| duration | string | Yes | Duration 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"}}'