Skip to content
Docs menu

Video models

Kling V2.1

On this page

Kling V2.1 — high-quality AI video generation.

modelIdkling-v2-1-master-text-to-video
Modalityvideo
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to videoPOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=kling-v2-1-master-text-to-videoRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredDescribe the video you want to generate...
durationselectoptional5, 10
aspect_ratioselectoptional16:9, 9:16, 1:1
negative_prompttextoptionalWhat to avoid in the video...
cfg_scalenumberoptional
nsfw_checkerselectoptionalfalse, 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"}}'