Kuaishoukling-4.0-flash
Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or up to 10 reference images and 5 reference videos, with a soundtrack of its own
$0.07536/ second-20%$0.0942official priceNo charge for failed generations
- 3–20 second clips
- 720p
- Up to 10 images, 5 videos
- Soundtrack on by default
- Modality
- Video
- Endpoint
- /v1/videos/generations
- Model ID
- kling-4.0-flash
- Provider
- Kuaishou
Kling 4.0 Flash API overview
Documented endpoint
Video requests go to /v1/videos/generations. The parameter table below lists the fields this surface documents.
Model provider
Kling 4.0 Flash is published by Kuaishou and is called through the API model ID kling-4.0-flash.
Output and limits
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; up to 10 images and 5 videos, 15 in total, and no reference audio; reference videos 3–20 seconds each and 20 in total, 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt required, up to 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash API pricing
Kling 4.0 Flash is billed 20% below the official list price on every metered dimension below.
| Item | ArgoLink rate | Official price | You save |
|---|---|---|---|
| 720p | $0.07536 / second | -20% | |
| 720p with video input | $0.0502 / second | -20% |
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; up to 10 images and 5 videos, 15 in total, and no reference audio; reference videos 3–20 seconds each and 20 in total, 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt required, up to 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash API reference
Quick start
Create an API key in the console, then use the Base URL, endpoint, and request body shown on this page.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "kling-4.0-flash", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
Modes
Text to video
Nothing but a prompt
The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 seconds at 720p 16:9.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'
| Field | Value |
|---|---|
prompt | required, up to 26,000 characters; describe the camera move, the subject and the mood |
duration | 3–20 whole seconds, defaults to 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16, defaults to 16:9 |
size | pixels instead of resolution plus aspect_ratio, so 1280x720 is 720p 16:9 |
One request renders one video; seed and watermark are not supported, and the result carries a generated soundtrack unless generate_audio is false.
Reference
Follow images, video or audio you supply
The result follows the subject, motion or beat of the assets you send. Point at one from the prompt with @Image 1, @Video 1 or @Audio 1; assets you never name are still used.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "Let @Image 1 walk into a rainy street at night",
"duration": 5,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "The girl in @Image 1 dances to the beat of @Audio 1, moving like the dancer in @Video 1",
"duration": 10,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| Field | Value |
|---|---|
prompt | required; name an asset as @Image 1, @Video 1 or @Audio 1 |
reference_images | up to 10 HTTPS images, JPEG or PNG |
reference_videos | up to 5 clips, each 3–20 seconds and 20 seconds together |
reference_audios | not supported on this route |
duration | 3–20 whole seconds, defaults to 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16 · adaptive, defaults to 16:9 |
Images and video mix freely, up to 15 assets in total. Reference videos are billed at the output rate; reference images are free.
First and last frames
Pin the opening, and optionally the close
start_image alone is a first frame; add end_image and the model fills the middle between the two.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "The camera pushes in slowly while leaves drift across the frame",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/first-frame.png"}
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "Day turns into night over the same skyline as the lights come on",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/day.png"},
"end_image": {"url": "https://example.com/night.png"}
}'
| Field | Value |
|---|---|
prompt | required; describe how the shot moves |
start_image | one HTTPS image, and it sets the frame of the result |
end_image | optional; one HTTPS image the video ends on |
duration | 3–20 whole seconds, defaults to 5 |
resolution | 720p |
aspect_ratio | adaptive only; it follows the first frame |
Neither field can be combined with any reference asset. The result takes the ratio closest to the first frame.
Edit a video
Rewrite footage you already have
The only mode that starts from a video: the result keeps that video's length and ratio, and you pick the tier with resolution.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"omni_reference_task_type": "edit",
"prompt": "Make the colors warmer and keep everything else",
"resolution": "720p",
"reference_videos": [{"url": "https://example.com/street.mp4"}]
}'
| Field | Value |
|---|---|
omni_reference_task_type | edit |
reference_videos | the first clip is the video to edit, 3–20 seconds long |
reference_images | up to 10 images and 4 more videos steer the edit |
prompt | required, up to 26,000 characters; say what to change |
resolution | 720p |
duration · aspect_ratio | taken from the edited video, so leave both out |
The edited video is billed as output and as a reference video: editing a 5-second video bills 10 seconds. start_image and end_image cannot be sent here.
How to upload and use reference assets
Your own link, or a local file uploaded first
The url of start_image, end_image and every entry of reference_images and reference_videos is an HTTPS address. A link you already host goes in as it is, as long as it downloads without signing in and every redirect stays on HTTPS. A local file is uploaded first, and the media_url you get back goes into the request.
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"kling-4.0-flash\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
Asking for a ticket is free and creates no job: upload_url is valid for 15 minutes and the PUT must carry the Content-Type you declared; the media_url it exchanges for stays readable for seven days.
| Field | Format | Size | Length |
|---|---|---|---|
reference_images · start_image · end_image | JPEG or PNG | ≤ 20 MiB | — |
reference_videos | MP4 or MOV | ≤ 100 MiB | 3–20 seconds each |
reference_videos[0] (the video to edit) | MP4 or MOV | ≤ 100 MiB | 3–20 seconds |
An asset outside these ranges fails the job with invalid_input before generation starts, and nothing is charged.
How to reference your assets in the prompt
Name one asset from the prompt
Name a reference with @, its type and its number. The number is its position in reference_images, reference_videos or reference_audios, and each array is counted from 1.
| In the prompt | Refers to |
|---|---|
@Image 1 | 1st item in reference_images |
@Video 1 | 1st item in reference_videos |
{
"model": "kling-4.0-flash",
"prompt": "The girl in @Image 1 dances to the beat of @Audio 1, moving like the dancer in @Video 1",
"reference_images": [
{
"url": "https://example.com/girl.png"
}
],
"reference_videos": [
{
"url": "https://example.com/dance.mp4"
}
],
"reference_audios": [
{
"url": "https://example.com/beat.mp3"
}
]
}
This is the spelling the console's workbench writes when you pick a reference after @. Also recognized: image 1 without @, <image 1>, @image1 and the same words in other languages, such as @图片1 or @imagen 1. Naming is optional: every reference is used either way. With @ or < >, a number past the end of its array is rejected. When editing a video (omni_reference_task_type edit), @Video 1 is the video being edited and needs no mention; the other references keep their numbers.
Kling 4.0 Flash full request parameters
| Parameter | Type | Requirement | What it does |
|---|---|---|---|
model | string | required | The catalog identifier for this page: kling-4.0-flash. |
prompt | string | required | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. Name a reference in the prompt as @Image 1 or @Video 2. It holds at most 26,000 characters. |
duration | integer | optional | Output length in whole seconds, 3 to 20; defaults to 5. An edit keeps the length of the video it edits, so leave it out there. |
resolution | string | optional | Output resolution. This model accepts 720p only, which is also the default. |
aspect_ratio | string | optional | Output aspect ratio: 21:9, 16:9, 1:1 or 9:16; defaults to 16:9. A reference request may also send adaptive, which follows the references. In first-frame and first-and-last-frame modes, send adaptive only; the result follows the first frame and uses the ratio closest to its first frame. An edit keeps its video's ratio, so leave it out there too. |
size | string | optional | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (720 for 720p) and the shape picks the ratio, so 1280x720 is 720p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. An edit takes a resolution name only. |
start_image | object | first-frame modes | HTTPS URL of the first frame. Alone it makes a first-frame video, with end_image a first-and-last-frame video; it cannot be combined with reference assets. |
end_image | object | first and last frames only | HTTPS URL of the last frame; send it with start_image. The source ratio may differ because the result adapts it to the first frame. |
reference_images | array | reference and edit | HTTPS URLs of reference images, up to 10. Images, videos and audio together are limited to 15 per request. |
reference_videos | array | reference and edit | HTTPS URLs of reference videos, up to 5 clips, each 3–20 seconds and 20 seconds together. Their seconds are billed like the output's. In an edit the first video is the one edited, 3–20 seconds long. |
reference_audios | array | not supported | This model takes no reference audio: sending reference_audios is rejected with 400. |
omni_reference_task_type | string | edit only | Set it to edit to edit the first entry of reference_videos, 3–20 seconds long. Left out, auto and reference all make an ordinary request. |
seconds · ratio | — | compatible names | Aliases of duration and aspect_ratio; send one name per value, never both. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | compatible names | Field names from fal and OpenRouter requests work too: image_url is start_image; image_urls, video_urls and audio_urls are the three reference lists; frame_images items whose frame_type is first_frame or last_frame are start_image and end_image; input_references items of type image_url, video_url or audio_url are references. Give each input one name. |
n | integer | optional | Must be 1 or omitted; every request produces exactly one video. |
generate_audio | boolean | optional | Defaults to true: Kling 4.0 Flash scores the video itself. Send false for a silent result. |
seed · watermark | — | not supported | Not exposed on this model: any seed, or watermark: true, is rejected with 400. |
request_id | string | response field | Returned by the submit call and the only identifier accepted by the status and content endpoints. |
progress · estimated_seconds_remaining | integer | response field | Returned by the status endpoint while status is pending: progress estimates how far the job has come, from 0 to 99, and estimated_seconds_remaining how many seconds are left; the latter is left out until there is an estimate. progress is 100 once status is done. |
video.url | string | response field | Download link of the finished MP4 once status is done: an ArgoLink link anyone can open without the API key, for 30 days. |
usage | object | response field | Returned once status is done: output_seconds, reference_video_seconds and billed_seconds, their sum, which the job is billed for. |
Kling 4.0 Flash API compared with similar models
| Model | Model ID | Provider | Rate | Best for |
|---|---|---|---|---|
| Kling 4.0 Flash | kling-4.0-flash | Kuaishou | $0.07536 / second | Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or up to 10 reference images and 5 reference videos, with a soundtrack of its own |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / second | The most capable Seedance video model yet: 30-second clips, up to 50 reference assets and native support for real-person references, no manual approval or extra verification needed |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / second | 480p, 720p, and 1080p video generation billed per output second |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0215 / second | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, up to 10 reference images and 3 reference videos, or as an edit of a video |
More models from this provider
- Kling 3.0Kuaishou Kling 3.0: 3 to 15 second clips at 720p, 1080p or 4K from a prompt, a first frame, or a first and a last frame, with or without a soundtrack$0.1134 / second
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from up to 10 reference images and 5 reference videos, with a soundtrack of its own$0.1256 / second
Other models in this modality
- Seedance 2.5The most capable Seedance video model yet: 30-second clips, up to 50 reference assets and native support for real-person references, no manual approval or extra verification needed$0.0874 / second
- Grok Imagine Video 1.5480p, 720p, and 1080p video generation billed per output second$0.032 / second
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, up to 10 reference images and 3 reference videos, or as an edit of a video$0.0215 / second
- MAGI-2Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from up to 10 reference images, 5 reference videos and 5 audio clips$0.072 / second
Kling 4.0 Flash API FAQ
How do I call Kling 4.0 Flash?
Create an API key in the console and POST https://argolink.io/v1/videos/generations with model set to kling-4.0-flash. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content, the address the status returns as video.url.
How much does Kling 4.0 Flash cost?
Per output second, from $0.07536 per second at the lowest tier; each tier in the pricing table has its own per-second rate, multiplied by the video's length. Every tier is 20% below the official per-second list price ($0.0942 per second for the lowest tier). Reference videos, and the video an edit renders from, are billed as Kling's official price counts them: twice the output seconds when they run no longer than the output, otherwise their exact length plus the output. So a 5-second video with a 3-second reference video bills 10 seconds, and one with a 7.3-second reference video bills 12.3 seconds. Reference images are free. Only a completed video is billed; a failed or rejected job costs nothing. With video input, a reference video or the video an edit renders from, every billed second is charged at the with-video-input rate in the pricing table.
Which input modes does Kling 4.0 Flash support?
All on the same endpoint: reference (a prompt alone, or with images, videos and audio as references: up to 10 reference_images, 5 reference_videos and 0 reference_audios, 15 in total, in any combination that includes an image or a video); first frame (start_image); first and last frames (start_image plus end_image on one aspect ratio); video editing (omni_reference_task_type edit, which edits the first entry of reference_videos). First-frame and first-and-last-frame videos take their aspect ratio from the first frame. Every asset is an HTTPS URL.
What does Kling 4.0 Flash not support?
More than one video per request (n must be 1 or omitted), any seed, or watermark: true; those return 400. Output is an H.264 MP4 that carries a generated soundtrack unless generate_audio is false.
How is the aspect ratio of a Kling 4.0 Flash first-frame video chosen?
Leave aspect_ratio out, or send adaptive, and the first frame decides: the video takes the closest of 21:9, 16:9, 1:1, 9:16, so the frame is cropped as little as possible. The two frame modes take no fixed ratio; naming one is rejected. With first and last frames, the source images may have different ratios; the result adapts the last frame to the first.
Do Kling 4.0 Flash videos have sound?
By default, yes: Kling 4.0 Flash scores the video itself. Send generate_audio: false for a silent result.