You're looking at a specific version of this model. Jump to the model overview.

kwaivgi /kling-v4.0:a3586530

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
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.
start_image
string
First frame of the video. Supports .jpg/.jpeg/.png, max 30MB, min 300px, aspect ratio between 2:5 and 5:2.
middle_images
array
[]
Keyframes between the first and last frame, in order. Same format requirements as start_image.
end_image
string
Last frame of the video. 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.
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
None
1080p
Output resolution.
aspect_ratio
None
16: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.
duration
integer
5

Min: 3

Max: 30

Video duration in seconds. Ignored when base_video is set.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}