About Kling 4.0
Send image_url for the required opening frame. A prompt can describe subsequent action and sound without repeating the appearance already fixed by the image.
Call it with the model name kling/4.0/image-to-video on POST /jobs/createTask, from $0.75.
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 9 in-between frames (8 when you also send a closing frame), 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 start | Mode |
|---|---|
| a written scene or script | Kling 4.0 Text to video |
| an opening frame, and optionally a closing frame and in-between frames | Kling 4.0 Image to video (you are here) |
| photos, clips or voice samples to cast from | Kling 4.0 Reference to video |
| a clip you want to change | Kling 4.0 Video edit |
| a clip you want to continue | Kling 4.0 Video extend |
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
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. auto · 16:9 · 9:16 · 1:1 · 21:9 · Default: auto |
duration_seconds | No | Length of the generated clip. ≥ 3 · ≤ 30 · Default: 5 |
image_url | Yes | The picture to start from. |
keyframe_image_urls | No | Images that guide intermediate moments, in the order they should appear. |
last_image_url | No | Reference image to guide the final frame. |
prompt | No | Describe what you want to make. |
resolution | No | Choose an available output size. 720p · 1080p · Default: 720p |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| resolution 720p | $0.15 |
| resolution 1080p | $0.224 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
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
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- 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.
- 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.
About the Kling 4.0 Image to Video endpoint
The intermediate array is chronological. Up to nine keyframe_image_urls are accepted without a closing image; with last_image_url, keep the intermediate list to eight or fewer.
Use aspect_ratio auto to follow the opening frame, or choose one of the supported ratios. Quote the requested output duration and resolution; do not carry over generate_audio from a 3.0 integration.
Kling 4.0 API questions
How much does the Kling 4.0 API cost?
Kling 4.0 starts at $0.75 for a 5-second clip with Image to Video, its lowest-priced task. Prices by option: 720p $0.15 per second, 1080p $0.224 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
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: 9; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.