Skip to main content
POST
/
v3
/
async
/
kling-v2.1-i2v
Kling V2.1 Image-to-Video
curl --request POST \
  --url https://api.myrouter.ai/v3/async/kling-v2.1-i2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>",
  "mode": "<string>",
  "duration": "<string>",
  "guidance_scale": 123,
  "negative_prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
Kling V2.1 is the latest generation AI-powered image-to-video model from the Kuaishou team, capable of generating high-quality, cinematic short videos from a single image or text prompt. Compared to Kling 2.0, version 2.1 features significant breakthroughs in motion smoothness, visual consistency, and prompt comprehension.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

image
string
required
First frame image for the video. Supported image formats include .jpg, .jpeg, .png. Image file size must not exceed 10MB, with a minimum resolution of 300x300 pixels.
prompt
string
required
Positive text prompt for video generation. Must not exceed 2500 characters.
mode
string
Video generation mode.Supported:
  • Standard: Fast generation, lower cost, produces 720p video.
  • Professional: High quality, higher cost, produces 1080p video.
Default: Standard.
duration
string
default:"5"
Duration of the generated video (in seconds).Possible values: 5, 10
guidance_scale
number
Guidance scale parameter that controls how closely the generated content adheres to the prompt.Range: 0 to 1
Step: 0.01
negative_prompt
string
Negative prompt to specify content to avoid in the generation. Must not exceed 2500 characters.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.