Skip to main content
POST
Asynchronously generate Kling 4.0 videos. Use the shared entry POST /v1/videos with model set to kling-4.0 (or a billing key). On success you get a task_id; poll Query video task and read result.video_url when completed.

Models

Billing is per_second. Billable seconds = output duration + sum of all reference video durations (ceil to whole seconds via reference_video_durations; reference audio duration is not billed). See the model catalog and the cost field on create for live unit prices.

Modes

First/last frame fields are not supported.

Reference limits

Reference media must be public https:// URLs. File size is enforced on upload; durations are validated via reference_*_durations.

Request parameters

Examples

Text-to-video

Image + video + audio reference

Billable seconds in this example = 10 + 5 = 15 (audio is not added).

Response

Create returns the shared task payload (task_id, status, cost, …). data.model is the billing key (e.g. kling-4.0-720p). Poll the query endpoint for result.video_url when completed.

Authorizations

Authorization
string
header
required

控制台创建的 API Key,格式:Bearer sk_xxx

Body

application/json
model
string
required

omni-10s, veo3.1-fast, veo3.1-lite, veo3.1-lite-hd, grok-imagine-video-1.5 (and fast/lite), minimax-h3, minimax-h3-max, kling-4.0 / kling-4.0-720p / kling-4.0-1080p, seedance2.0-md, sd2-480p-ac, sd2-720p-ac, seedance2.5-30s, or sd2.5-720p-ac

Example:

"omni-10s"

prompt
string
required
duration

omni-10s: fixed 10; seedance2.0-md: 5/10/15; sd2-*-ac: 4–15; seedance2.5-30s: fixed 30; sd2.5-720p-ac: 4–30

seconds

Alias of duration

aspect_ratio
string
ratio
string

Alias of aspect_ratio

orientation
string

portrait/landscape may imply aspect ratio

size
string
resolution
string

omni-10s is fixed at 720p

first_image
string<uri>

First-frame URL for omni-10s frame mode

last_image
string<uri>

Last-frame URL for omni-10s; use with first_image

images
string<uri>[]
reference_images
string<uri>[]
videos
string<uri>[]
reference_videos
string<uri>[]
reference_video_durations
integer[]

Required with reference videos for kling-4.0; same length as videos; seconds 1–30. Billable seconds = output duration + sum of these values.

Required range: 1 <= x <= 30
reference_audio_durations
integer[]

Required with reference audios for kling-4.0; same length as audios; seconds 5–30 (validation only, not billed).

Required range: 5 <= x <= 30
audios
string<uri>[]
reference_audios
string<uri>[]

Response

200 - application/json

Submitted

code
integer
Example:

20000

msg
string
data
object
Last modified on October 19, 2026