Skip to main content
POST
Kling V2.1 Standard
Generate videos from a source image using the kling/v2-1-standard model.

Authentication

All API requests require a Bearer Token.

Create a Video Task

Submit an image-to-video generation task using:

Request Body

string
required
Must be kling/v2-1-standard.
object
required

Input Parameters

The input object contains the parameters used to generate the video.
string
required
Use prompt to describe the video you want to generate.Maximum length: 5000 characters.
string
required
Use image_url to provide the URL of the image used as the source for the generated video.Supported image formats:
  • image/jpeg
  • image/png
Maximum file size: 10 MB
string
Use duration to specify the length of the generated video.Supported values:
  • "5"
  • "10"
Default value: "5"
string
Use negative_prompt to describe elements you want to avoid in the generated video.Maximum length: 500 characters.
string
The cfg_scale parameter controls how closely the model follows your prompt.

Example Request

Response

Successful Response

A successful request returns a task ID.
number
Response status code.
string
Response message. Contains the error description when the request fails.Example: success
object
required
The task data object containing task id.
string
required
The unique identifier for this task.Example: task_123456
Use the returned taskId with the task details endpoint to check generation progress and retrieve the final results.

Get Task Details

Learn how to query task status and retrieve generation results.

Error Response

Response Codes