Seedance 2.5 — 15% below official pricing, 58% cheaper than fal. Wan 3.0 — 42% below official list price. Magi-2 is live. Seedream 5.5 — 50% off.

Guides, updates and engineering notes from ArgoLink on building with one API for every AI model. Blog

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.

ItemArgoLink rateOfficial priceYou save
720p$0.07536 / second$0.0942-20%
720p with video input$0.0502 / second$0.0628-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

Create an API key

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.

Endpoints

  • POSTSubmit a generation job/v1/videos/generationsReturns the request_id the other two calls need.
  • GETCheck job status/v1/videos/{request_id}pending while generating, done when the video is ready, failed or expired otherwise.
  • GETDownload the result/v1/videos/{request_id}/contentStreams the MP4 once status is done; until then it returns 409 job_video_not_ready, and 424 job_failed for a failed job.

Authentication

Send your API key as a Bearer token in the Authorization header.

POST /v1/videos/generations
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"
  }'

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.

POST /v1/videos/generations
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"
  }'
FieldValue
promptrequired, up to 26,000 characters; describe the camera move, the subject and the mood
duration3–20 whole seconds, defaults to 5
resolution720p
aspect_ratio21:9 · 16:9 · 1:1 · 9:16, defaults to 16:9
sizepixels 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.

One reference imagePOST /v1/videos/generations
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"}]
  }'
Images, video and audio togetherPOST /v1/videos/generations
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"}]
  }'
FieldValue
promptrequired; name an asset as @Image 1, @Video 1 or @Audio 1
reference_imagesup to 10 HTTPS images, JPEG or PNG
reference_videosup to 5 clips, each 3–20 seconds and 20 seconds together
reference_audiosnot supported on this route
duration3–20 whole seconds, defaults to 5
resolution720p
aspect_ratio21: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.

First frame onlyPOST /v1/videos/generations
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"}
  }'
First and last framePOST /v1/videos/generations
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"}
  }'
FieldValue
promptrequired; describe how the shot moves
start_imageone HTTPS image, and it sets the frame of the result
end_imageoptional; one HTTPS image the video ends on
duration3–20 whole seconds, defaults to 5
resolution720p
aspect_ratioadaptive 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.

POST /v1/videos/generations
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"}]
  }'
FieldValue
omni_reference_task_typeedit
reference_videosthe first clip is the video to edit, 3–20 seconds long
reference_imagesup to 10 images and 4 more videos steer the edit
promptrequired, up to 26,000 characters; say what to change
resolution720p
duration · aspect_ratiotaken 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.

Upload a local filePOST /v1/media/uploads
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.

FieldFormatSizeLength
reference_images · start_image · end_imageJPEG or PNG≤ 20 MiB—
reference_videosMP4 or MOV≤ 100 MiB3–20 seconds each
reference_videos[0] (the video to edit)MP4 or MOV≤ 100 MiB3–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 promptRefers to
@Image 11st item in reference_images
@Video 11st item in reference_videos
Example requestPOST /v1/videos/generations
{
  "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

ParameterTypeRequirementWhat it does
modelstringrequiredThe catalog identifier for this page: kling-4.0-flash.
promptstringrequiredDescribes 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.
durationintegeroptionalOutput 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.
resolutionstringoptionalOutput resolution. This model accepts 720p only, which is also the default.
aspect_ratiostringoptionalOutput 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.
sizestringoptionalPixels 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_imageobjectfirst-frame modesHTTPS 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_imageobjectfirst and last frames onlyHTTPS 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_imagesarrayreference and editHTTPS URLs of reference images, up to 10. Images, videos and audio together are limited to 15 per request.
reference_videosarrayreference and editHTTPS 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_audiosarraynot supportedThis model takes no reference audio: sending reference_audios is rejected with 400.
omni_reference_task_typestringedit onlySet 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 namesAliases 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 namesField 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.
nintegeroptionalMust be 1 or omitted; every request produces exactly one video.
generate_audiobooleanoptionalDefaults to true: Kling 4.0 Flash scores the video itself. Send false for a silent result.
seed · watermark—not supportedNot exposed on this model: any seed, or watermark: true, is rejected with 400.
request_idstringresponse fieldReturned by the submit call and the only identifier accepted by the status and content endpoints.
progress · estimated_seconds_remainingintegerresponse fieldReturned 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.urlstringresponse fieldDownload link of the finished MP4 once status is done: an ArgoLink link anyone can open without the API key, for 30 days.
usageobjectresponse fieldReturned once status is done: output_seconds, reference_video_seconds and billed_seconds, their sum, which the job is billed for.

Create an API key

Kling 4.0 Flash API compared with similar models

ModelModel IDProviderRateBest for
Kling 4.0 Flashkling-4.0-flashKuaishou$0.07536 / secondKuaishou 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.5seedance-2.5ByteDance Seed$0.0874 / secondThe 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.5grok-imagine-video-1.5xAI$0.032 / second480p, 720p, and 1080p video generation billed per output second
Gemini Omni 1.2 Flashgemini-omni-1.2-flashGoogle$0.0215 / secondGoogle 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

Other models in this modality

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.

Create an API key

Related guides

Welcome Builders

Who runs ArgoLink, refunds and how your data is handled

Request Refund

Submit a request and review its status in Top-up Orders.