Skip to main content
Generate high-quality AI videos using Kling 4.0, Kuaishou’s flagship model. Supports text-to-video, up to 10 raw reference images, persistent subject/object elements, keyframes (start, up to 8 middle frames, end), video transform, video reference, and multi-shot generation. Clips run 3–30 seconds with native stereo audio on by default, a new 21:9 ultrawide ratio, and prompts up to 8,000 tokens. More on this model: Kling 4.0 API page.

Model

Parameters

Modes

Text-to-video with elements — set video_mode: "elements" and pass only the elements array (no image_urls required). The omit-video_mode path is strictly for pure text-to-video with zero inputs; any reference (image or element) requires elements mode.
Not available yet on Kling 4.0 — 4K output, 10-bit HDR, video extension, voice references, multi-clip video editing, and Kling 4.0 Flash. Requests for mode: "4k" are rejected.

Pricing

Billed per second of output video. With a source video (transform / video_reference modes) the with-video rate applies, billed per second of the input video. A 10% launch sale applies to all four rates until 2026-10-29 01:00 UTC.

Reference images vs elements

  • image_urls — raw images uploaded per request. Single-use, no description, no reuse across tasks. Cap 10. Reference in prompt as @Image1, @Image2, …
  • elements — persistent subject/object assets stored on the Kling account. Auto-created from your input on submit and auto-deleted if the submit fails. Cap 7, at most 3 video-based. Reference in prompt as @Element1, @Element2, …
Both can be used together; they share the per-mode combined cap (15 in elements mode, 14 plus the source video in transform / video_reference).

Elements

Kling 4.0 supports both IMAGE and VIDEO elements. Unlike 3.0 Omni, a video-type element may be combined with video_url; at most 5 video inputs in total (video_url plus video-type elements).
Each element accepts:

Example - Text-to-Video

Example - With Elements

Example - Reference Images with Start Frame

Example - Keyframes

Example - Transform

Example - Multi-Shot

Response

Volume discounts are available for almost all models. Reach out at contact@unifically.com to discuss custom pricing.