Skip to main content
POST
Kling V2.6 Pro Image-to-Video
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

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

Request Body

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.
boolean
default:true
Whether to generate audio at the same time when generating the video.
string
required
The positive prompt text for generating the video; must not exceed 2500 characters.
integer
default:5
Duration of the generated media (seconds)Allowed values: 5, 10
number
Controls the flexibility of video generation. The higher the value, the more closely the generated content matches the prompt.Value range: [0, 1]
string[]
List of voice IDs (up to 2).Array length: 0 - 2
string
default:"16:9"
Aspect ratio of the generated videoAllowed values: 16:9, 9:16, 1:1
string
Negative prompt; must not exceed 2500 characters.

Response Information

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