Video models
Kling V2.1
On this page
Kling V2.1 — high-quality AI video generation.
| modelId | kling-v2-1-master-text-to-video |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to video | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=kling-v2-1-master-text-to-video | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Describe the video you want to generate... |
| duration | select | optional | 5, 10 |
| aspect_ratio | select | optional | 16:9, 9:16, 1:1 |
| negative_prompt | text | optional | What to avoid in the video... |
| cfg_scale | number | optional | — |
| nsfw_checker | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"kling-v2-1-master-text-to-video","input":{"prompt":"First-person view of a paraglider launching off an alpine ridge into golden-hour haze, wind buffeting the camera.","duration":"5","aspect_ratio":"16:9","negative_prompt":"blur, distort, and low quality","cfg_scale":0.5,"nsfw_checker":"true"}}'