← All models
Kling 4.0 edits an input video using text instructions and optional image references, producing 3 to 30-second videos at 720p or 1080p. API access is coming soon.
Example
Details
- Accepts
- text
Pricing
- Price
- 19.63 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| prompt | string | Edit instruction. Reference the source video as @Video1. |
| duration | — | Output duration in seconds (3-30). Defaults to the source video's length. |
| elements | — | Characters/objects, referenced as @Element1, @Element2, ... |
| video_url | string | The video to edit (3-30s), referenced as @Video1. Max file size: 300.0MB, Min width: 700px, Min height: 700px, Max width: 4553px, Max height: 4553px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Min duration: 3.0s, Max duration: 30.05s, Min FPS: 23.9, Max FPS: 60.05, Timeout: 30.0s |
| image_urls | — | Reference images, referenced as @Image1, @Image2, ... |
| resolution | stringenum: 720p, 1080p | Output resolution. |
| aspect_ratio | stringenum: 16:9, 9:16, 1:1, 21:9 | Aspect ratio of the generated video. |
| multi_prompt | — | Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations. |
Output
| Field | Type | Description |
|---|---|---|
| video | — | The generated video. |