Video modelsKling
Kling 4.0
API model, parameter, and usage reference for Kling 4.0 flagship video generation.
Model ID
kling-4.0
Parameters
| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | - | Required video prompt (up to 2500 characters) |
resolution | string | 720p | 720p or 1080p |
duration | integer | 5 | 3–30 seconds |
aspect_ratio | string | auto | auto, 16:9, 9:16, 1:1, or 21:9 |
reference_images | string[] | - | Reference image URLs (up to 10) |
reference_videos | string[] | - | Reference or edit-video URLs (up to 5; billed at video-input rates) |
first_frame_image_url / last_frame_image_url | string | - | First/last frame image URLs |
Calling the model
Call GET /v1/models first and use the live schema.fields, capabilities, and pricing returned for this model. Parameters, defaults, enums, and regional availability can change.
- Use
POST /v1/generationsto submit andGET /v1/tasks/{task_id}to poll results. - Use
POST /v1/quoteto estimate usage before generation. - When passing
reference_videos, you may also passinput_video_duration; billing covers input + output seconds.
Example
{
"model": "kling-4.0",
"prompt": "A serene mountain sunrise with drifting clouds",
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9"
}This page documents the model entry point. Always follow the current regional model schema instead of copying fields from another model.

