Kling API
Call Kling 4.0 over REST for text to video, image to video, and reference to video. Each job returns a 3–30 second clip at 720p or 1080p, billed per second.
One Kinovi API key covers all three Kling 4.0 routes. Output starts at $0.1260/s for 720p. Kinovi has no 4K tier and no video editing for Kling. Confirmed upstream failures are refunded in full.
PromptA girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.
Try this modelThree Kling 4.0 routes
Text, keyframes, or references in; a 3–30 second MP4 out at 720p or 1080p, from $0.1260/s.
Kling 4.0 is exposed through Kinovi's /api/v1/jobs/createTask interface as three model IDs. kling-4.0/text-to-video takes a prompt only. kling-4.0/image-to-video plays through 1–10 keyframes. kling-4.0/reference-to-video follows reference images, reference videos, and optional keyframes.
The family is 3 live endpoints with the same output rates at each resolution. They share one API key and one credit wallet. 4K, video editing, elements, and voices are not available.
3 Live Routes
720p · 1080p
3–30s · default 10s
Auto-Refund
Text, image, and reference to video
3 live routes. Pick the one that matches the input you already have.
720p–1080p · Text to VideoKling 4.0 Text to Video
Prompt only. 3–30 second clips at 720p or 1080p in 21:9, 16:9, 9:16, or 1:1. Prompts can run to 26,000 English characters.
720p–1080p · Image to VideoKling 4.0 Image to Video
Send 1–10 keyframe images in playback order, first frame first and last frame last. The output aspect ratio follows the keyframes.
720p–1080p · Reference to VideoKling 4.0 Reference to Video
Combine up to 10 reference images, up to 5 reference videos, and optional keyframes. Choose generated audio or keep the first reference video's audio.
Kling 4.0 examples
Text-to-video, image-to-video, and reference-to-video clips from the Kling 4.0 model pages. Open a clip for playback, or copy the prompt into the playground.
A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.
Using the camera path and shot rhythm of @video_1 as a reference, replace the subject with the car from @image_1, and replace the background with @image_2.
Six keyframes in a mint-green room, each with its own time range: a girl looks up from the floor tiles, plays a recorder in close-up, raises her hands by the window, then a hard cut to her shoes swinging from a cabinet edge.
Edit @video_1, changing its visual style to the felt style of @image_1. Preserve the original video’s composition, camera work, and actions. Change only the style; do not alter the characters’ clothing designs, motorcycle design, scene elements, or sequence of events.
At the seaside in the early morning, a white seagull skims over the water as the camera slowly pushes forward, accompanied by the natural sound of ocean waves.
A 20-second, one-take lateral tracking shot on a busy Manhattan-style street: a young woman runs with a heavy travel bag, a taxi briefly blocks the frame, the camera searches and finds her again before she disappears into a crowd. No cuts, no music.
Four steps to a finished file
Create a key, submit a task, poll until it finishes, then read the file URL. Copyable cURL, Node, and Python samples are in the next section.
Get an API key
Create a bearer token in Kinovi API Keys. The same key calls all three Kling 4.0 routes and the rest of the catalog.
Submit a task
POST JSON to /api/v1/jobs/createTask. Set model to kling-4.0/text-to-video, kling-4.0/image-to-video, or kling-4.0/reference-to-video. The response returns a taskId immediately.
Poll for completion
GET /api/v1/jobs/recordInfo?taskId=... until state is success or fail.
Read the output URL
On success, parse data.resultJson and download resultUrls[0].
Jobs these routes cover
New clips from a prompt, clips that pass through your keyframes, and clips that follow images or footage you already have.
Text to video from a single prompt
Send only a prompt to kling-4.0/text-to-video. Set duration from 3 to 30 whole seconds (default 10), resolution to 720p or 1080p (default 1080p), and aspectRatio to 21:9, 16:9, 9:16, or 1:1.
Animate keyframes in order
Pass 1–10 images in imageUrls to kling-4.0/image-to-video. The first image is the first frame and the last image is the last frame. There is no aspectRatio field: the output follows the keyframes.
Follow reference images and videos
kling-4.0/reference-to-video takes up to 10 reference images in imageUrls and up to 5 reference videos in videoUrls, each and in total 3–30 seconds. Cite them in the prompt as @image_1 and @video_1. Optional keyframeUrls pin frames the clip passes through.
Keep the source audio
On reference-to-video, audio: "native" generates matching audio and is the default. audio: "original" keeps the audio of the first reference video and needs at least one reference video. aspectRatio can also be "adaptive", the default on this route.
Prompting notes
Citing references, keyframe order, input limits, and which rate applies once a reference video is attached.
- 01
Cite each reference by name
On reference-to-video, refer to images as @image_1, @image_2 and videos as @video_1, @video_2 in the order you send them. Say what to keep from each one and what to replace.
- 02
Order keyframes the way they should play
imageUrls on image-to-video and keyframeUrls on reference-to-video are read in playback order. On reference-to-video, reference images and keyframes share a limit of 10 images.
- 03
A reference video changes the bill
Without a reference video, a job bills output seconds × the output rate. With one, billable seconds are the input reference-video seconds plus the output seconds, charged at the lower video-input rate.
- 04
Check images before you submit
Each side must be at least 300 px, and the aspect ratio must fall between 2:5 and 5:2. Prompts can run to 26,000 English characters or 11,000 non-English characters.
Kling API pricing per second
Pay per second by output resolution. Text-to-video, image-to-video, and reference-to-video without a reference video bill output seconds × the output rate. Reference-to-video with a reference video bills (reference-video seconds + output seconds) × the lower video-input rate. Each card’s “from” price is the 720p output rate.
| Endpoint | Workflow | Rate Range | Tiers |
|---|---|---|---|
| kling-4.0/text-to-video Kling 4.0 Text to Video | 720p–1080p · Text to Video | $0.1260 – $0.1890/sfrom 27.16 cr/s | |
| kling-4.0/image-to-video Kling 4.0 Image to Video | 720p–1080p · Image to Video | $0.1260 – $0.1890/sfrom 27.16 cr/s | |
| kling-4.0/reference-to-video Kling 4.0 Reference to Video | 720p–1080p · Reference to Video | $0.1260 – $0.1890/sfrom 27.16 cr/s | |
720p$0.1260/s 1080p$0.1890/s 720p with reference video (billable second)$0.0757/s 1080p with reference video (billable second)$0.1135/s | |||
cURL, Node, and Python samples
Copyable requests for text to video, image to video, and reference to video. Auth, task creation, and polling are covered in the Kinovi API docs. Replace the example image and video URLs with your own files.
curl -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $KINOVI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0/text-to-video",
"inputs": {
"prompt": "A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.",
"aspectRatio": "16:9",
"duration": 10,
"resolution": "1080p"
}
}'
# Poll until state === "success"
curl -X GET "https://kinovi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $KINOVI_API_KEY"const apiKey = process.env.KINOVI_API_KEY;
const res = await fetch("https://kinovi.ai/api/v1/jobs/createTask", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "kling-4.0/text-to-video",
"inputs": {
"prompt": "A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.",
"aspectRatio": "16:9",
"duration": 10,
"resolution": "1080p"
}
}),
});
const { data } = await res.json();
while (true) {
const poll = await fetch(`https://kinovi.ai/api/v1/jobs/recordInfo?taskId=${data.taskId}`, {
headers: { Authorization: `Bearer ${apiKey}` },
});
const result = await poll.json();
if (result.data?.state === "success") {
console.log(JSON.parse(result.data.resultJson).resultUrls);
break;
}
if (result.data?.state === "fail") throw new Error(result.data.failMsg);
await new Promise((r) => setTimeout(r, 3000));
}import json, os, time, urllib.request
api_key = os.environ["KINOVI_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
body = json.dumps({
"model": "kling-4.0/text-to-video",
"inputs": {
"prompt": "A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.",
"aspectRatio": "16:9",
"duration": 10,
"resolution": "1080p"
}
}).encode()
req = urllib.request.Request("https://kinovi.ai/api/v1/jobs/createTask", data=body, headers=headers, method="POST")
with urllib.request.urlopen(req) as resp:
task_id = json.load(resp)["data"]["taskId"]
while True:
poll = urllib.request.Request(f"https://kinovi.ai/api/v1/jobs/recordInfo?taskId={task_id}", headers=headers)
with urllib.request.urlopen(poll) as resp:
state_data = json.load(resp)["data"]
if state_data["state"] == "success":
print(json.loads(state_data["resultJson"])["resultUrls"])
break
if state_data["state"] == "fail":
raise RuntimeError(state_data.get("failMsg"))
time.sleep(3)Kling 4.0 API prices compared
Per output second. Competitor rates were checked on November 20, 2026. Kinovi does not offer 4K for Kling. A dash means we did not record a rate.
| Provider | Route | 720p | 1080p | 4K |
|---|---|---|---|---|
| KinoviThis API | Kling 4.0 text, image, and reference to video | $0.1260/s | $0.1890/s | Not offered |
| fal | Kling 4.0 text-to-video | $0.157/s | $0.235/s | $0.549/s |
| Kie | Kling 4.0 | $0.1425/s | $0.2125/s | — |
Common questions
More models on Kinovi
Playgrounds for each Kling 4.0 route, plus the Seedance APIs and the price calculator. One API key, one credit wallet.
Kling 4.0 Text to Video
Run kling-4.0/text-to-video in the playground at 720p or 1080p.
Kling 4.0 Image to Video
Animate 1–10 keyframes in playback order.
Kling 4.0 Reference to Video
Mix reference images, reference videos, and keyframes in one job.
Seedance 2.5 API
ByteDance Seedance 2.5 and Flash: generate, extend, and edit 4–30s video from 480p to 4K.
Seedance 2.0 API
Standard, Fast, and Mini tiers for 4–15s clips from 480p up to 4K.
Model Price Calculator
Estimate a Kling 4.0 job, including reference-video billing, before you submit.
Open a playground or create an API key
One API key for all three Kling 4.0 routes, plus the rest of the video, image, and audio catalog.