About Kling 4.0 Flash
The Kling 4.0 Flash API exposes four tasks under kling/4.0-flash: text-to-video, image-to-video, reference-to-video and video-edit. Each returns one 720p MP4 at 24 fps with a generated soundtrack, 3 to 20 seconds long, through the same asynchronous job flow as the rest of the catalog. It is the draft tier of Kling 4.0: there is no resolution field to set, no closing or intermediate frames, no audio references and no video-extend task, so a client written for kling/4.0 must drop those fields rather than only swapping the model name. Use it where users iterate quickly and 720p is the delivery size.
Call it with the model name kling/4.0-flash/text-to-video on POST /jobs/createTask, from $0.564.
Introduction
Set a whole-number duration from 3 to 20 seconds; the default is 5 seconds. This mode suits the first draft of a scene when you have words rather than an image or clip.
Use it to explore social concepts and review different scene ideas. Describe the setting, what happens, the camera movement, and the soundtrack together. Output is MP4 at 24 fps, with 16:9, 9:16, 1:1, and 21:9 framing available.
Key features
- Start directly from a written scene without supplying an opening image.
- Keep a generation between 3 and 20 whole seconds to fit the action you want to review.
- Compose in 9:16 for a vertical social draft or use one of the other three supported ratios.
- Guide generated sound with named ambience, music, effects, or dialogue in quotation marks.
- Receive a 720p MP4 at 24 fps for reviewing the scene and its timing.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Describe what you want to make. |
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · 1:1 · 21:9 · Default: 16:9 |
duration_seconds | No | Length of the generated clip. ≥ 3 · ≤ 20 · Default: 5 |
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 |
|---|---|
| Standard | $0.1128 |
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
- Draft a 5-second rooftop social clip with an evening skyline and city ambience.
- Explore a jazz-club performance with a short sung line and a slow camera approach.
- Compare short scene concepts for a content batch before developing selected ideas further.
Prompt guide & pro tips
- Give the opening a place and time, such as “a city rooftop at golden hour,” so the scene has a clear starting point.
- Limit the first draft to a simple action, such as “the tram enters the station,” then review it before adding more events.
- Name a camera move, such as “slow dolly toward the stage,” to explain how the viewer approaches the action.
- Specify the sound sources, such as “Sound: brushed drums and room chatter,” rather than leaving the soundtrack unspecified.
- Put a short spoken line in quotes, such as “The show starts now,” and connect it to the speaker in the scene.
API quick start
Call the Kling 4.0 Flash 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-flash/text-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-flash/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"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.
What to build with the Kling 4.0 Flash API
- A prompt-to-preview button that renders a three to five second Flash draft, then offers a final action that resubmits the same prompt to kling/4.0 at 1080p. Store the prompt and aspect ratio with the job so the upgrade is a single call.
- A vertical ad builder that sends a product shot and a location photo as reference_image_urls with aspect_ratio 9:16, plus one short camera-move clip in reference_video_urls only when the user wants to copy a motion.
- A wardrobe or weather switcher for short user clips: send the upload to video-edit with keep_original_audio left true so voices survive, and show the revised clip beside the source.
Kling 4.0 Flash parameter notes
- duration_seconds is an integer from 3 to 20 on the text, image and reference tasks; values up to 30 that kling/4.0 accepts fail validation here. video-edit has no duration field at all: output length follows the source, and anything past 20 seconds is cut before processing.
- Do not send resolution, last_image_url, keyframe_image_urls or reference_audio_urls. Flash renders 720p only and has none of the Kling 4.0 frame or audio-reference controls. There is no generate_audio switch either; every generated clip carries sound.
- keep_original_audio defaults differ by task: false on reference-to-video, where it only matters when a reference video is attached, and true on video-edit. Set it explicitly if one form in your app feeds both tasks.
- Prompt tokens are @Image1, @Image2 and @Video1, @Video2, numbered separately per array in upload order, with no space before the number. The image-to-video opening frame may be JPEG, PNG or WebP, and the prompt there is optional.
How Kling 4.0 Flash API pricing adds up
Flash bills per second of output at one flat 720p rate for text, image and image-only reference jobs, so the quote follows directly from duration_seconds. Attaching any reference_video_urls moves every output second of that job onto a higher rate; the reference clips themselves are not counted as extra seconds. video-edit is billed per second of the source clip, rounded up, with a three-second floor and a 20-second cap, so trimming the upload is the simplest way to lower an edit's cost. Requests Kling declines are not charged. Charges come out of your PopNow balance in USD.
- Create Video, 5-second clip: $0.564 each, $56.40 for 100 clips
Async jobs, webhooks and rate limits
Every Kling 4.0 Flash request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for kling/4.0-flash/text-to-video never runs or bills twice.
Common Kling 4.0 Flash API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | Usually a kling/4.0 field or range carried over: resolution, last_image_url, keyframe_image_urls, reference_audio_urls, or a duration_seconds above 20. Validate against the Flash schema of the specific task. |
invalid_asset | Reference videos longer than 20 seconds combined, more than five clips or ten images, or an upload the service cannot fetch. Sum the clip durations on your side before submitting. |
content_rejected | Kling screens every prompt and upload and refuses some. The job is not charged; surface the reason and let the user revise instead of retrying the same input. |
Kling 4.0 Flash API questions
How much does the Kling 4.0 Flash API cost?
Kling 4.0 Flash starts at $0.564 for a 5-second clip with Create Video, its lowest-priced task. 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 is the model name for Kling 4.0 Flash in the API?
Put kling/4.0-flash/text-to-video for Create Video; kling/4.0-flash/image-to-video for Image to Video; kling/4.0-flash/reference-to-video for Reference to Video; kling/4.0-flash/video-edit for Edit Video in the model field of POST /jobs/createTask.
Can I point an existing kling/4.0 integration at kling/4.0-flash?
Only after removing what Flash lacks: resolution, keyframes, the closing frame, audio references and any video-extend calls. The duration ceiling is also lower, 20 seconds instead of 30.
What does a Kling 4.0 Flash job return?
One 720p MP4 at 24 fps with a generated audio track in output.assets. There is no separate audio file and no silent option for newly generated clips.
How do I offer an HD upgrade from a Flash draft?
Keep the prompt, aspect ratio and inputs you sent, then submit them to the matching kling/4.0 task with resolution 1080p. Prompt habits carry over, but the result is a fresh render, not an upscale of the draft.
What are the limits of the Kling 4.0 Flash API?
Clip length: 3–20 s; Aspect ratios: 16:9 · 9:16 · 1:1 · 21:9. Requests outside these limits are rejected before anything is charged.
Can I try Kling 4.0 Flash without writing code?
Run Kling 4.0 Flash in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Kling models
Choose Kling 4.0 Flash for fast 720p drafts and edits up to 20 seconds. Move to Kling 4.0 when you need 1080p, clips up to 30 seconds, closing or intermediate keyframes, or audio references.
- Kling 4.0 APIUp to 30-second 1080p clips with keyframes, edits and extensions; may queue when busyFrom $0.45 for a 5-second clip
- Kling O3 APIKling’s unified model: create, animate, reference and edit up to 4KFrom $0.34 for a 5-second clip
- Kling Image 4.0 APINative 2K, 4K or 8K stills with readable lettering, plus edits from up to ten referencesFrom $0.063 per image
- Kling Image 4.0 Set APITwo to ten matching images from one brief, with the same character, product and paletteFrom $0.063 per image
- Kling Image 4.0 Long APIA full product detail or landing page as one tall image, from text or product photosFrom $0.238 per image
- Kling 4.0 Flash APIFast 720p Kling clips with sound, 3 to 20 secondsFrom $0.564 for a 5-second clip
- Kling 3.0 Turbo APIFaster Kling 3.0 with sound on every clipFrom $0.55 for a 5-second clip
- Kling 3.0 API4K clips, multi-shot cuts and motion controlFrom $0.34 for a 5-second clip
- Kling Avatar 2.0 APIA portrait that speaks or sings your audio, up to 5 minutesFrom $0.055 per second
- Kling 2.6 API1080p clips with optional sound and motion controlFrom $0.345 for a 5-second clip
- Kling 2.5 Turbo API1080p clips with a soundtrack on every takeFrom $0.345 for a 5-second clip
- Kling 2.1 Master APISilent 1080p clips with fine prompt controlFrom $1.385 for a 5-second clip
- Kling 2.1 APIAnimate a frame at 720p or 1080p, with an optional end frameFrom $0.275 for a 5-second clip