Skip to main content
POST
/
v3
/
async
/
kling-v2.1-i2v-master
Kling V2.1 Master Image-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-v2.1-i2v-master \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>",
  "duration": "<string>",
  "guidance_scale": 123,
  "negative_prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
Kling 2.1 Master is the flagship version of the Kling 2.1 series, featuring top-tier image-to-video generation capabilities, exceptional motion smoothness, cinematic visual effects, outstanding prompt understanding, and support for 1080p HD video output.
This is an asynchronous API and only returns the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the video generation result.

Request Headers

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

Request Body

image
string
required
The first-frame image for the video; supported image formats include .jpg, .jpeg, and .png; the image file size must not exceed 10MB, and the resolution must be at least 300*300 pixels.
prompt
string
required
The positive prompt text for generating the video; must not exceed 2500 characters.
duration
string
default:"5"
The duration of the generated video (unit: seconds).Optional values: 5, 10
guidance_scale
number
Guidance strength parameter, controlling how closely the generated content follows the prompt.Value range: 0 to 1
Step size: 0.01
negative_prompt
string
Negative prompt, used to avoid undesired content; must not exceed 2500 characters.

Response Information

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result