Kling · Video

Kling · Introduction

Kling video models (3.0 Turbo / 3.0 Omni / 3.0 / O1 / 2.6 / 2.5 Turbo / 2.1 / 2.0 / 1.6): text-to-video, image / first-last frame video and reference-to-video; some models can generate audio or take a reference video. Billed per tier (credits/sec) x duration. Returns a id; poll for the result.

This page has been rewritten for the unified API: create with POST /v1/videos, poll with GET /v1/videos/{id}, authenticate with Authorization: Bearer <key>, errors use the OpenAI format. See the video guide for the common parts. Video guide

How to call

  1. Create: POST /v1/videos
  2. Get: GET /v1/videos/{id}
  3. Download: GET /v1/videos/{id}/content

Creating returns a video object right away (status: queued). Poll GET /v1/videos/{id} until status is completed or failed; when done, url is the result address, and you can also download it with GET /v1/videos/{id}/content.

Capability map

💰 See the pricing page for prices →

Common errors

Errors use the OpenAI format; decide by the status code and error.code.

StatuscodeWhen
400invalid_requestParameter validation failed; the model-specific validation message is in message.
400content_policy_violationThe prompt or material was blocked by content rules.
400model_not_foundNot a supported video model.
402insufficient_quotaInsufficient balance.
403model_not_allowedThe model is not in the key's allowlist.
429task_limit_reachedThe number of concurrent tasks reached the limit.
404not_foundUnknown task id or it belongs to another account; downloading before completion returns video_not_ready.

If a task fails after it was submitted, the get call returns status: failed with error. Keys on the old-format list receive the old MiniMax response format on the same URL; see the video guide.

Tip: after saving your API Key via Authorize, every capability page supports "Try it".