Get API key

by Kuaishou

Up to 30-second 1080p clips with keyframes; may queue when busy

kling/4.0/image-to-videoFrom 162 creditsfor a 5-second clip · $1.62
  • Up to 1080p
  • 3–30s clips
  • Start and end frames
  • Up to 10 reference images
  • 4 aspect ratios
  • Create Video
  • Image to Video
  • Reference to Video

About Kling 4.0

Up to 30-second 1080p clips with keyframes; may queue when busy.

Call it with the model name kling/4.0/image-to-video on POST /jobs/createTask, from 162 credits for a 5-second clip ($1.62).

Introduction

Kling 4.0 Image to video animates your opening frame into a clip of 3 to 30 seconds at 720p or 1080p. Add a closing frame to pin where it ends, and up to 8 in-between frames, in order, to direct the path between the two. The prompt is optional; every clip comes back with a stereo soundtrack.

Choose a Kling 4.0 mode by starting material

What you have at the startMode
a written scene or scriptKling 4.0 Text to video
an opening frame, and optionally a closing frame and in-between framesKling 4.0 Image to video (you are here)
photos, clips or voice samples to cast fromKling 4.0 Reference to video

Key features

First frame, in-between frames, last frame

image_url sets the opening, last_image_url the ending and keyframe_image_urls the beats in between, in the order they should appear. In our test an astronomer at a telescope (opening), bending to the eyepiece (in-between) and leaning on the railing with her arms crossed (closing) came back as one continuous 3-second move through all three poses.

The shape follows your frame

Leave aspect_ratio on auto and the clip keeps the opening frame's shape; pick 16:9, 9:16, 1:1 or 21:9 to override it.

Sound comes with it

Every clip carries a two-channel soundtrack. Describe the sound in the prompt to steer it.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. auto · 16:9 · 9:16 · 1:1 · 21:9 · Default: auto
duration_secondsNoHow long the clip runs. You pay per second. ≥ 3 · ≤ 30 · Default: 5
image_urlYesThe picture to start from.
keyframe_image_urlsNoOptional in-between frames, in the order they should appear, up to 8. The clip passes through each one between the opening and the closing frame.
last_image_urlNoOptional final frame, so the clip ends exactly where you want.
promptNoOptional: describe what happens after the opening frame - the action, the camera and the sound.
resolutionNoOutput size. Bigger sizes look sharper and cost more. 720p · 1080p · Default: 720p

Pricing

Prices are in credits, the same credits you use on the website (1 credit = $0.01). The hold is taken when the task is accepted and settled to the actual charge when it finishes; failed tasks are refunded.

OptionCredits per second≈ USD
resolution 720p32.4$0.32
resolution 1080p48.6$0.49

For an exact number before you run, send the same body to POST /jobs/quote.

Use cases

Bring a still to life

A portrait, a product shot or a frame from an earlier clip - describe only what happens next and the look, wardrobe and setting come from your image.

Storyboard to motion

Draw or generate the key poses of a shot, upload them as opening, in-between and closing frames, and the model fills the motion between them.

Continue a scene

Take the last frame of a previous clip as the opening frame of the next one to keep a character and a set consistent across shots.

Prompt guide & pro tips

Keep your frames consistent

Opening, in-between and closing frames should share the same character, wardrobe, set and camera position. Frames that disagree force a cut or a morph.

Describe the motion, not the picture

The image already shows what everything looks like. Spend the prompt on the action, the camera move and the sound.

Fewer, clearer keyframes

Each in-between frame is a point the clip must pass through. For a short clip one or two are enough; too many in a few seconds make the motion rushed.

API quick start

Call the Kling 4.0 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow- and use the same credits as the website.
  2. Send the request. POST /jobs/createTask with model kling/4.0/image-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "kling/4.0/image-to-video",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "aspect_ratio": "auto",
    "resolution": "720p",
    "duration_seconds": 5
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

Kling 4.0 API questions

How much does the Kling 4.0 API cost?

Kling 4.0 starts at 162 credits ($1.62) for a 5-second clip with Image to Video, its cheapest task. Prices by option: 720p 32.4 credits per second, 1080p 48.6 credits per second. Credits are the same as on the website (1 credit = $0.01), and failed tasks are refunded.

What are the limits of the Kling 4.0 · Image to Video API?

Clip length: 3–30 s; Resolutions: 720p · 1080p; Aspect ratios: auto · 16:9 · 9:16 · 1:1 · 21:9; Reference images: 8; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.

More about Kling 4.0