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

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]
string
default:"1:1"
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.