Skip to main content
POST
/
v3
/
async
/
kling-v2.6-pro-t2v
Kling V2.6 Pro Text-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-v2.6-pro-t2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "sound": true,
  "prompt": "<string>",
  "duration": 123,
  "cfg_scale": 123,
  "aspect_ratio": "<string>",
  "negative_prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
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

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

Request Body

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

Response

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