Build 3–30 second video workflows with Kling 4.0 (Kling 4 / Kling V4) through EvoLink's unified API. Guide a take with up to 10 keyframes, choose from four input routes, and check 720p/1080p pricing before generating.
Kuaishou·Video Generation·Available
From ~$0.157 / s at 720p without video input
Text-to-VideoImage-to-VideoReference-to-VideoVideo EditFirst & Last FrameKeyframes
Production routeThis rate reflects platform-side availability — only confirmed server errors (HTTP 500 / empty response) count as failures. User-side issues (content moderation, invalid params, cancellation) plus rate limits, timeouts and auth errors are excluded. Before real traffic arrives, empty buckets may display as available.Live
Live
Model Highlights
Long single takes, keyframe control, and video editing
Pick a route, run a real generation against the Kling 4.0 API, and see the exact credits it costs before you write any code. Every run here uses the same endpoint and billing as production.
Create a video
Runs against the live API with your own balance
Duration5s
Resolution
Aspect ratio
Estimated cost ~$0.78553.38 cr
720P × 5s
Ready
Write a prompt, add the frames, references, or source video your route needs, then hit Generate — your result will appear here.
History
Results are kept for 24 hours — download anything you want to keep.
Your generation history will appear here
Know your Kling 4.0 testing cost before you add credits.
Kling 4.0 bills per second of output video. 720p is the base rate and 1080p costs more per second. When a reference-to-video request includes reference video, billed seconds are the output plus the longer of the reference video total or the output, at a lower per-second rate. Video edit bills the output plus the longer of the source video or the output at the video-edit rate, which is twice the source length with the default auto duration. Input frames and reference images are free.
Your first test
Text-to-video, 3s at 720P — the cheapest possible request, no reference video
Minimum charge
Credits32.028
3 seconds at 720P
Approx. cost$0.471
About 20 runs for $10
Credits are reserved when the task is created and settled when it finishes. Failed tasks are refunded in full.
With reference videoReference-to-video, 5s output + 8s reference video at 720P
~$1.222
~83.096 cr
Video editVideo edit, 5s source video at 720P, billed as 10s
~$0.940
~63.92 cr
Calculated with the same function the Playground uses, at the rate for your user group. With reference video, an 8s reference and a 5s output bill as 13 seconds at the video-input rate. A video edit of a 5s clip with duration auto bills as 10 seconds at the video-edit rate.
Per-second rates
Route
720P(default)
1080P
Billed seconds
Text-to-videokling-v4-text-to-video
$0.157/s
10.676 cr/s
$0.235/s
15.98 cr/s
Output seconds
Image-to-videokling-v4-image-to-video
$0.157/s
10.676 cr/s
$0.235/s
15.98 cr/s
Output seconds
Reference-to-videoWith reference images only
$0.157/s
10.676 cr/s
$0.235/s
15.98 cr/s
Output seconds
Reference-to-videoWith reference video
$0.094/s
6.392 cr/s
$0.141/s
9.588 cr/s
Output + max(reference video, output)
Video editkling-v4-video-edit
$0.094/s
6.392 cr/s
$0.141/s
9.588 cr/s
Output + max(source video, output)
Text-to-video
kling-v4-text-to-video · Output seconds
720P $0.157/s · 10.676 cr/s
1080P $0.235/s · 15.98 cr/s
Image-to-video
kling-v4-image-to-video · Output seconds
720P $0.157/s · 10.676 cr/s
1080P $0.235/s · 15.98 cr/s
Reference-to-video
With reference images only · Output seconds
720P $0.157/s · 10.676 cr/s
1080P $0.235/s · 15.98 cr/s
Reference-to-video
With reference video · Output + max(reference video, output)
First, middle, and last frames and reference images are never billed. The reference-video row has a lower per-second rate, but billed seconds include the reference video, so a request with video input usually costs more in total. Video edit bills the output plus the longer of the source video or the output; with the default auto duration a 5s clip costs 10 billed seconds.
The minimum charge is 3s at 720P, which is also the cheapest request you can send.
Kling 4.0 for long takes, keyframes, and video editing
Kling 4.0 is Kuaishou's current flagship video model. EvoLink exposes it as four model IDs on one endpoint: text-to-video, image-to-video with first, middle, and last frames, reference-to-video with up to 10 images and 5 videos, and video edit for an existing clip. Clips run 3-30 seconds at 720p or 1080p.
Each route accepts only its own media: no media on text-to-video, first, middle, and last frames on image-to-video, reference images and videos on reference-to-video, and one source video plus reference images on video edit. Sending another route's fields returns 400.
Default resolution
720p
A request without quality is generated and billed at 720p. Pass 1080p explicitly when you need it.
Duration
3-30 seconds, integer
One request can produce a single take of up to 30 seconds. Billing follows the requested duration. Video edit also accepts auto (the default), which matches the source video's length.
Reference material
Up to 10 images and 5 videos
Reference videos are 3-30s each and 30s in total. The prompt addresses them as <<<image_1>>> and <<<video_1>>>, numbered independently in array order.
Aspect ratio
16:9 / 9:16 / 1:1 / 21:9
Available on text-to-video and reference-to-video. Image-to-video follows the first frame and video edit follows the source video; neither takes aspect_ratio.
Middle frames
Up to 8 images
Image-to-video takes middle frames in keyframes, in playback order and spaced evenly; time is not accepted. First, middle, and last frames together are capped at 10 and at duration + 1, so a 3s clip takes up to 4 frames.
Video edit
One source video, 3-30s
The output keeps the source aspect ratio and original audio, so aspect_ratio is not accepted. duration is auto by default (same length as the source) or 3-30 seconds. Billed seconds are the output plus the longer of the source or the output, so auto bills twice the source length.
Key Kling 4.0 API parameters
These fields cover the main integration decisions. Open the API Reference for route-specific request and response examples.
modelstring
Choose the text, image, reference, or edit model ID that matches your input.
Default: route-specific
promptstring
Describe the scene, motion, and camera. Up to 2500 characters; reference assets are addressed as <<<image_1>>> and <<<video_1>>>.
Default: required
qualityenum
Select 720p or 1080p. Resolution changes the per-second rate.
Default: 720p
durationinteger
Set 3-30 output seconds. Video edit also takes auto (the default) to match the source length.
Default: 5
aspect_ratioenum
Use 16:9, 9:16, 1:1, or 21:9 on text and reference routes.
Default: 16:9
image_startstring
First frame for image-to-video; add keyframes for middle frames and image_end for a last frame.
Default: image route
video_urlsarray
Reference route: up to 5 reference videos, 30s in total. Edit route: exactly one source video, 3-30s. Their seconds are billed together with the output.
Default: reference / edit routes
keyframesarray
Up to 8 middle frames for image-to-video, each an object with image_url, in playback order and without time. First, middle, and last frames together: at most 10 and at most duration + 1.
Default: image route
Two ways to use Kling 4.0: EvoLink API or Agent
Use the EvoLink API for product integration and batch jobs, or call it from Codex, Claude, or Gemini for fast creative and development workflows. Both paths share the same EvoLink API key, balance, model routes, and task history.
Option 1
Integrate with the EvoLink API
Best for: product backends, batch jobs, automated workflows
Call EvoLink’s unified video API from your server and control the model ID, parameters, task queue, callbacks, and result storage.
1Validate output and cost with a real brief in Playground
2Create an EvoLink API key in the console
3Pick the model ID that matches your task from the route cards above
4Submit the task and retrieve the result by polling or HTTPS callback
Best for: creative and development tasks in Codex, Claude, and Gemini
Give the Agent your output goal, assets, and acceptance criteria. It can choose the route, assemble the request, track the task, and return the result without requiring you to hand-code every step.
1Set EVOLINK_API_KEY in your local environment; never put it in code or a prompt
2Describe the output goal, references, and the key parameters
3Ask the Agent to call a Kling 4.0 route and save the task ID
4Let the Agent poll the final state, download the result, and report failure reasons
What people build with Kling 4.0
Kling 4.0 suits work where a clip has to hold together over a longer take or through planned keyframes.
Product ads with a planned reveal
Start from an approved product frame and end on the pack shot, or set keyframes for the opening, demo, and close.
Narrative single takes
Generate up to 30 seconds in one request instead of stitching several short clips.
Reference-led variations
Keep a product or character from reference images while borrowing camera movement from a reference video.
Social formats
Produce the same concept in 16:9, 9:16, 1:1, and 21:9 from one prompt.
Keyframe previews
Turn a few sketched frames into a moving draft before committing to a full production.
First-to-last frame transitions
Animate between two approved frames for logo reveals, before/after shots, and scene transitions.
This example shows the shortest runnable flow: create a task, save the returned task ID, then poll or wait for an HTTPS callback. Open the API tab for the complete parameter and response reference.
A Kling 4.0 task that reaches a final failed state is not charged. Keep the task ID, inspect the final state, and identify whether the cause is validation, review, or execution before retrying.
Callback not received
callback_url must be a public HTTPS URL, not localhost or a private network address. Always keep the task ID as a polling fallback.
Choose Kling 4.0 when the clip needs length or structure
Choose Kling 4.0 for longer single takes, control over intermediate keyframes, or edits to existing footage. Compare shorter drafts on your current Kling route by total task cost and accepted output.
Good fit
You need a single take longer than 15 seconds, up to 30
You mix reference images and reference videos in one brief
You want to animate through several keyframes or edit an existing clip
Consider another route
You need 4K output — Kling 4.0 on EvoLink stops at 1080p
You need negative prompts or a sound on/off switch — they are not accepted on these routes
You need multi-shot storyboards, saved subjects, custom voices, or video extension — not part of this release
Cost per second matters more than length or resolution
Generation is asynchronous. Design around completion events and keep a lower-cost route for drafts.
1
Keep the flow asynchronous
Return the task ID immediately, show a pending state, and finish through polling or an HTTPS callback.
2
Budget for reference video
Budget for creative retries as well as video seconds: a completed clip may still fail your review. Reference-video seconds are billed too; trim inputs to the part that matters.
3
Download results promptly
Store the files you want to keep as part of your completion handler instead of relying on result links.
Kling 4.0 details worth knowing
Reference numbering is positional
Images and videos are numbered independently and follow array order. Reordering an array changes what <<<image_2>>> refers to.
Video input changes the billed seconds
With reference video, billed seconds are the output plus the longer of the reference total or the output. A 10s output with 5s of reference video bills as 20 seconds; with 20s of reference video, it bills as 30 seconds. Both use the video-input rate.
Fields from older Kling routes
negative_prompt, sound, 4K quality, watermark settings, saved subjects, and multi-shot storyboards (model_params) are not accepted on Kling 4.0 routes and return 400.
Why call Kling 4.0 through EvoLink
Transparent per-second pricing
Billed per second of video, with the rate scaling by resolution and video input. Your exact rate is in the table above.
One API key
Reuse your EvoLink API key and the shared video generation endpoint, without a separate Kling developer account.
One balance
Use one prepaid balance for Kling 4.0 and other EvoLink models, without buying separate vendor credits.
Task tracking built in
Poll a single task endpoint or register a callback. Reserved and settled amounts are both visible in your logs.
Switch models without rewriting
Video models share one generation endpoint and task flow. Model-specific fields still vary, so check each API reference before switching.
Kling Model Family
Compare Kling generations under one EvoLink account and API key, then choose by resolution, length, editing features, and cost.
Kling 4.0 is Kuaishou's current flagship video generation model. EvoLink exposes four request model IDs — kling-v4-text-to-video, kling-v4-image-to-video, kling-v4-reference-to-video, and kling-v4-video-edit — on the standard /v1/videos/generations endpoint.
Why are there four model IDs?
Each route accepts different media: none on text-to-video, first, middle, and last frames on image-to-video, reference images and videos on reference-to-video, and one source video on video edit. Choose the ID that matches your input; media fields from another route return 400.
How much does Kling 4.0 cost?
Total cost depends on resolution, output duration, and any input video. Without video input, only output seconds are billed. With reference video, billed seconds are the output plus the longer of the reference total or the output, at the video-input rate. A lower per-second rate does not necessarily mean a cheaper task. Middle frames do not change the image-to-video price. Video edit bills the output plus the longer of the source or the output; auto bills twice the source length. See the table above for current rates.
What is the default resolution?
720p. A request without a quality field is generated and billed at 720p; pass 1080p when you need it.
How long can a Kling 4.0 video be?
3 to 30 seconds per request, in whole seconds. Video edit defaults to the length of its source video (duration auto) or takes 3 to 30 seconds.
How do I reference images and videos in the prompt?
Write <<<image_1>>> for the first image in image_urls and <<<video_1>>> for the first video in video_urls. Images and videos are numbered independently and follow array order.
Are reference images billed?
There is no separate input charge for first, middle, and last frames or reference images. Video generation is still billed; reference videos and source videos also affect the billed duration.
Can one request contain several shots?
Not on these routes. Multi-shot storyboards (model_params) are not accepted. Generate each shot as its own request, or add middle frames on image-to-video to guide one take through planned frames.
Does Kling 4.0 support 4K or negative prompts?
Not on EvoLink. Kling 4.0 routes accept 720p and 1080p, and negative_prompt is not accepted. Sending either returns 400.
Can I use saved subjects or custom voices?
Not in this release. Saved subjects (element_list), custom voices, and video extension are not available on these routes yet.
How do keyframes work?
Keyframes are part of image-to-video. Send image_start, up to 8 middle frames in keyframes (each an object with image_url, in playback order), and optionally image_end. First, middle, and last frames together are capped at 10 and at duration + 1, so a 3s clip takes up to 4 frames. Middle frames are spaced evenly; time is not accepted. Billing is the same as image-to-video, and frame images are free.
How is video edit billed?
On the output plus the longer of the source video or the output, at the video-edit rate; the source length is rounded up to a whole second. With the default duration auto the output matches the source, so a 5s clip bills as 10 seconds; a 10s clip with duration 20 bills as 40 seconds. 1080p costs 1.5 times the 720p rate and reference images are free.
Is Kling 4.0 the same as Kling 4.0 Flash?
No. Kling 4.0 Flash is the faster, lower-cost tier with its own model IDs (kling-v4-flash-*) and its own page: 720p only, up to 20 seconds, and a first frame only on image-to-video. This page covers the full Kling 4.0 model with 1080p, takes of up to 30 seconds, and first, middle, and last frames. Both share the same endpoint and request format.
Do all features in Kling's announcement work on EvoLink?
No. Use the EvoLink API reference for each route. These routes accept 720p or 1080p output and prompts up to 2500 characters. 4K, HDR controls, saved subjects, custom voices, multi-shot storyboards and video extension are not offered here. A provider announcement or client subscription does not define EvoLink's request fields.