kling-4.0-omni brings Kling 4.0’s Omni Reference to the API: images, videos and audio are combined in one generation to keep characters, scenes and voices consistent. Besides the prompt it takes up to 10 images, 5 video clips and 3 audio clips as references and produces a 3–30 second video with synchronised audio in one generation; it can also edit an existing video. A reference video is used either as a feature reference (feature) or as the video to edit (base), and its original sound can be kept. For plain text-to-video, first-frame or first-and-last-frame generation, use Kling 4.0.
- Multimodal references: up to 10 images, 5 video clips (3–30 seconds each, 30 seconds in total) and 3 audio clips, in any combination.
- Video editing: use the reference video as the video to edit (
base) and change it with the prompt. - Feature reference: use the reference video as a feature reference (
feature) for a new video. - Original sound:
keep_original_soundkeeps or drops the sound of the reference video. - Specs: 3–30 seconds, native 720P / 1080P, upscaled 2K / 4K, aspect ratios 16:9, 9:16, 1:1, 21:9.
Capabilities
Endpoints
The API is asynchronous: create a task, poll it, and download the video fromvideo_url when it completes. Set model to kling-4.0-omni and put every generation parameter inside input.
Quick start
Create a task to get atask_id, poll every 10–15 seconds, and download video_url once status is completed. $DREAMTO_API_KEY is your API Key.
Generation modes
Reference images
Send several reference images and say in the prompt what each one is for.cURL
Reference image and audio
A reference image plus reference audio, with 21:9 ultra-wide output.cURL
Feature reference video
reference_video_type set to feature: the video is a feature reference for a new video. Requests with a reference video are billed at the with-reference-video price.
cURL
Video editing
reference_video_type set to base: the video is edited as the prompt says; keep_original_sound: true keeps its sound.
cURL
Parameters
All parameters below go insideinput in the request body.
See Create a video task for the full request and response definitions.
Response and task status
Creating a task returnstask_id, status, model, created_at and request_id. Querying it additionally returns completed_at (once finished), video_url (on success) and error (on failure).
Query response of a completed task:
Pricing
Billed per billable second at the price of the chosen resolution. Without a reference video the billable duration is the output duration. With a reference video the “with reference video” price applies and the billable duration is the reference video duration plus the output duration when the reference video is longer than the output, otherwise twice the output duration.
These are list prices; the model price shown in the console is authoritative. Failed tasks and invalid requests are not charged.
Limits and notes
video_urlis valid for 7 days after the task completes; download the video and keep it in your own storage.- Input media must be publicly downloadable URLs; media hosted outside mainland China works as well.
- Every generated video includes audio; this model has no parameter to turn it off.
- Reference videos are mp4 / mov, 3–30 seconds each and 30 seconds in total; reference audio is mp3.
reference_video_typeandkeep_original_soundonly apply whenreference_video_urlsis sent.- 2K and 4K are upscaled output and are billed at the price of that resolution.
- A failed task returns
status: "failed"with the reason inerror.message(for exampleInvalidParameterValue: Please input the ImageURL that can be retrieved from the external network.) and is not charged. - When a task is created, the estimated price of the request is reserved from the balance and settled to the actual usage when the task completes: resolution price × duration without a reference video, and the with-reference-video price × (output duration + 30 seconds) with one. With an insufficient balance the create request returns HTTP 402 (
insufficient_balance) and no task is created. - An invalid request returns HTTP 400; no task is created and nothing is charged. When the duration or a media count is out of range, the message names the field and the allowed range (in the form
input.duration must be a number between <min> and <max>). When an enum parameter such asresolutionoraspect_ratiohas a value outside its allowed list, the message is generic and does not name the field, so check the request against the parameter table. Media formats and content are checked by the model: a violation ends the task asfailed, also without a charge. - A video takes several minutes; poll the task every 10–15 seconds, not faster.

