← All models
Kling V4.0
Generate 3 to 30 second videos at up to 1080p with Kling 4.0. Use text, keyframes, up to 10 reference images, and reference videos, or edit an existing video with a prompt.
Example
Details
- Accepts
- text
Pricing
- Price
- 11.75 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| promptrequired | string | Text prompt describing the video. Refer to images as @image_1, @image_2, ... and videos as @video_1, @video_2, ... (see start_image and reference_images for numbering). Up to 26,000 English characters or 11,000 non-English characters. |
| duration | integer | Video duration in seconds. Ignored when base_video is set. |
| end_image | string | Last frame of the video. Same format requirements as start_image. |
| base_video | string | Video to edit (.mp4/.mov, 3-30 seconds, 700-4553px per side, max 300MB). Referred to as @video_1. When set, the output keeps the length and aspect ratio of this video. |
| resolution | stringenum: 720p, 1080p | |
| start_image | string | First frame of the video. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio between 2:5 and 5:2. |
| aspect_ratio | —enum: 16:9, 9:16, 1:1, 21:9 | Aspect ratio of the output video. Ignored when start_image, middle_images, end_image or base_video is set, since the aspect ratio then comes from the input. |
| middle_images | array | Keyframes between the first and last frame, in order. Same format requirements as start_image. |
| reference_images | array | Reference images for characters, objects, scenes or style. Images are numbered in this order: start_image, middle_images, end_image, reference_images. Up to 10 images in total across all image inputs. |
| reference_videos | array | Reference videos to take motion, camera work or style from (.mp4/.mov, 3-30 seconds each, 700-4553px per side, max 300MB). Numbered after base_video. |