infery
← All models
Kling V4.0

Kling V4.0

kling-v4.0

Video generationby Kwaivgi

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

FieldTypeDescription
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.
durationintegerVideo duration in seconds. Ignored when base_video is set.
end_imagestringLast frame of the video. Same format requirements as start_image.
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.
resolutionstringenum: 720p, 1080p
start_imagestringFirst 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:9Aspect 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_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.