kwaivgi/kling-v4.0
Kling 4.0: generate 3 to 30 second videos at up to 1080p from text, keyframes, reference images, or reference videos, and edit existing videos
Capabilities
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | 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. | — | — |
aspect_ratio | string | 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. | "16:9" | 16:99:161:121:9 |
base_video | string(uri) | 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. | — | — |
duration | integer | Video duration in seconds. Ignored when base_video is set. | 5 | min: 3, max: 30 |
end_image | string(uri) | Last frame of the video. Same format requirements as start_image. | — | — |
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. | | — |
resolution | string | Output resolution. | "1080p" | 720p1080p |
start_image | string(uri) | First frame of the video. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio between 2:5 and 5:2. | — | — |
promptrequiredstringText 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.
aspect_ratiostringAspect 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.
"16:9"base_videostringVideo 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.
durationintegerVideo duration in seconds. Ignored when base_video is set.
5min: 3, max: 30end_imagestringLast frame of the video. Same format requirements as start_image.
middle_imagesarrayKeyframes between the first and last frame, in order. Same format requirements as start_image.
reference_imagesarrayReference 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_videosarrayReference 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.
resolutionstringOutput resolution.
"1080p"start_imagestringFirst frame of the video. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio between 2:5 and 5:2.
a35865309ecdUpdated: 11/7/202699 runs
cinemasetfree