Kling models are submitted through the unified video endpoint POST /v1/videos: the request body consists of official Kling fields + model (model names beginning with kling are routed to Kling; the model_name field is also supported). Both submission and query responses use the official Kling task schema, with all fields transparently forwarded by the platform without modification. Refer to List Models for currently available model names (such as kling-v1 and kling-v2-master).
Authorizations
Bearer Token authentication. You do not need to issue a Kling JWT yourself; the platform handles signing on your behalf. Get an API Key: visit the API Key Management Page
Authorization: Bearer YOUR_API_KEYSubmit a Generation Task
POST /v1/videosRequest body = official Kling parameters + model:
model(required): A model name beginning withkling(determines routing to Kling; text-to-video or image-to-video is selected automatically based on whetherimageis provided)prompt,negative_prompt,mode(std/pro),duration,aspect_ratio,cfg_scale,image(the first frame for image-to-video),image_tail, etc. — refer to the official Kling documentation for supported fields and values
Query a Task
GET /v1/videos/{task_id}The response uses the official Kling task schema. Possible values for data.task_status are: submitted / processing / succeed / failed. After the task succeeds, the generated results are available in data.task_result.videos[] (including the url and duration). Video URLs remain valid according to Kling's official expiration policy; save them elsewhere promptly.
Notes
- Task queries must use the same API Key used when submitting the task. Task IDs can be queried for 7 days; after expiration, the API returns 404
task_not_found - If submission returns HTTP 200 with
code≠0, this indicates a Kling business error (such as parameter validation or content moderation). No charges will be incurred; troubleshoot based onmessage - Refer to the official Kling documentation for complete request and response field definitions. The platform does not modify any fields
