Skip to main content
POST
Kling V2.6 Pro Image-to-Video
This is an async API that only returns the task_id of the async task.
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

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

Request Body

string
required
First frame image for the video. Supports .jpg, .jpeg, .png. File size must not exceed 10MB. Width and height must be >= 300px. Aspect ratio must be between 1:2.5 and 2.5:1.
boolean
default:true
Whether to generate audio along with the video.
string
required
Positive prompt text for video generation. Maximum 2500 characters.
integer
default:5
Duration of the generated media in seconds.Possible values: 5, 10
number
Controls the flexibility of video generation. Higher values make the generated content adhere more closely to the prompt.Range: [0, 1]
array
List of voice IDs (up to 2).Array length: 0 - 2
string
default:"16:9"
Aspect ratio of the generated video.Possible values: 16:9, 9:16, 1:1
string
Negative prompt. Maximum 2500 characters.

Response

string
required
Use the task_id to call the Get Async Task Result API to retrieve the generated output.