Skip to main content
POST
Kling 4.0 Image to Video
Animate a first image with Kuaishou Kling 4.0. Supply one image as the first frame and optionally a second as the last frame. Output framing follows the first image.

Pricing

100 SnapGen credits = $1. The selected resolution and requested output seconds determine the reservation. References do not add input-video charges because this release accepts no video input. Confirm current rates on the Kling 4.0 model page.
string
required
Use kling-4-i2v.
string
required
A non-empty shot description, at most 8,000 characters. Include the sound you want in the scene.
integer
default:"5"
Any integer from 3 to 30. Send a JSON number, not a quoted string.
string
default:"720p"
720p or 1080p.
string
default:"adaptive"
adaptive only; the first image determines the framing.
string[]
required
One first-frame URL and optionally a second URL for the last frame. Use public HTTP(S) PNG, JPEG or WebP files, at most 10 MiB each. Private, loopback and credentialed URLs are rejected.
boolean
default:"true"
Native audio is mandatory. Only true is accepted; omitting it also includes audio.
This release does not accept video_url, video_urls, audio_urls, intermediate keyframes, saved elements, editing or extension controls. It does not expose 4K or HDR. Text mode does not accept image inputs.

Request

Poll and download

Save the returned gateway video id. Poll with the same API key and model ID until status is completed or failed. Download only after completion.
Keep polling an existing task after a client timeout. Repeated status checks do not create a new generation. Save the MP4 promptly and respect any returned expiry time. See the video workflow for task states and error handling.

Open Kling 4.0

Try the three modes in the Playground and compare live rates.