Skip to main content
POST
/
v3
/
async
/
kling-v2.6-pro-i2v
Kling V2.6 Pro Image-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-v2.6-pro-i2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "sound": true,
  "prompt": "<string>",
  "duration": 123,
  "cfg_scale": 123,
  "voice_list": [
    {}
  ],
  "aspect_ratio": "<string>",
  "negative_prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API that only returns the task_id of the async task.
This is an asynchronous API that only returns the task_id of the async task. You should use this task_id to request the Query Task Result API to retrieve the generated 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 of the video; supports .jpg, .jpeg, .png. The image file size must not exceed 10MB; both width and height must be >= 300px; the aspect ratio must be between 1:2.5 and 2.5:1.
sound
boolean
default:true
Whether to generate audio at the same time when generating the video.
prompt
string
required
The positive prompt text for generating the video; must not exceed 2500 characters.
duration
integer
default:5
Duration of the generated media (seconds)Allowed values: 5, 10
cfg_scale
number
Controls the flexibility of video generation. The higher the value, the more closely the generated content matches the prompt.Value range: [0, 1]
voice_list
array
List of voice IDs (up to 2).Array length: 0 - 2
aspect_ratio
string
default:"16:9"
Aspect ratio of the generated videoAllowed values: 16:9, 9:16, 1:1
negative_prompt
string
Negative prompt; must not exceed 2500 characters.

Response Information

task_id
string
required
Use the task_id to request the Query Task Result API to retrieve the generated output.