infery
← All models

Kling 4.0 Reference to Video

kling/v4/reference-to-video

Video generationby Kling

Kling 4.0 generates videos from text prompts and image or video references at 720p or 1080p, with durations from 3 to 30 seconds and per-shot prompts. 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

FieldTypeDescription
prompt—Text prompt. Reference inputs as @Image1, @Video1, @Element1, etc. Either prompt or multi_prompt must be provided.
durationintegerVideo duration in seconds (3-30).
elements—Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements.
image_urls—Reference images, referenced as @Image1, @Image2, ... (max 10).
resolutionstringenum: 720p, 1080pOutput resolution.
video_urls—Reference videos (3-30s each, 30s combined with element videos), referenced as @Video1, @Video2, ... (max 5).
aspect_ratiostringenum: auto, 16:9, 9:16, 1:1, 21:9Aspect ratio of the generated video. 'auto' adapts it to the references.
multi_prompt—Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations.
start_image_url—Optional image to use as the first frame. Counts toward the image reference limit.

Output

FieldTypeDescription
video—The generated video.