Skip to main content
POST
Kling V2.6 Pro Text-to-Video
This is an asynchronous API and only returns the task_id of the asynchronous task.
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 generated result.

Request Headers

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

Request Body

boolean
default:true
Whether to generate audio while generating the video.
string
required
Positive prompt text for generating the video; cannot exceed 2500 characters.
integer
default:5
Duration of the generated media (seconds)Optional 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
default:"1:1"
Aspect ratio of the generated videoOptional values: 16:9, 9:16, 1:1
string
Negative prompt; length must not exceed 2500 characters.

Response

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