Skip to main content
POST
/
v3
/
async
/
kling-v3.0-4k-t2v
Kling v3.0 4K Text-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-v3.0-4k-t2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "sound": true,
  "prompt": "<string>",
  "duration": 123,
  "cfg_scale": 123,
  "aspect_ratio": "<string>",
  "multi_prompt": [
    {}
  ],
  "negative_prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
Kling v3.0 4K text-to-video generates 4K ultra-high-definition videos from text prompts, with richer visual details, natural motion, and smooth scene dynamics. It supports flexible durations from 3 to 15 seconds, synchronized audio and video generation, and multi-shot video generation.
This is an asynchronous API and will only return the asynchronous task’s task_id. 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:false
Whether to generate audio at the same time when generating the video.
prompt
string
required
The positive prompt text for generating the video. It can describe scene motion, camera movement, actions, voice style, atmosphere, and sound effects. Must not exceed 2500 characters. Mutually exclusive with multi_prompt.Length limit: 0 - 2500
duration
integer
default:5
The duration of the generated video (in seconds). Supports flexible durations from 3 to 15 seconds.Value range: [3, 15]
cfg_scale
number
Controls the flexibility of video generation. The higher the value, the more closely the model-generated content adheres to the prompt; the lower the value, the more natural the motion effects.Value range: [0, 1]
aspect_ratio
string
default:"16:9"
The aspect ratio of the generated video.Optional values: 16:9, 9:16, 1:1
multi_prompt
array
A list of prompts for multi-shot video generation. Divides the video into multiple shots. Mutually exclusive with prompt.
negative_prompt
string
Negative prompt, specifying elements to avoid in the visuals and audio. The length must not exceed 2500 characters.Length limit: 0 - 2500

Response

task_id
string
required
Use task_id to request the Get task result API to retrieve the generated output.