History

Kling 4.0 Flash API : Fast AI Videos With Sound From Text, an Image or a Clip

Try Kling 4.0 Flash online right here: write a prompt, add a first frame, reference images or a clip to edit, choose the aspect ratio and length, and get a 720p video with sound of 3 to 20 seconds. Then call the same model from your product through the Kling 4.0 Flash API, with one key and one balance.

  • Four modes
  • 3–20 second videos
  • Billed by output length
  • Kling 4.0 Flash API

Features

Key Kling 4.0 Flash API Capabilities

  • Four ways to create with Kling 4.0 Flash

    The Kling 4.0 Flash API covers text to video, image to video, reference to video and video edit through one endpoint. Change the mode parameter and keep the rest of your integration as it is.

  • The fast version of Kling 4.0

    Kling 4.0 Flash is built for speed: a 3-second video takes about 1.3 minutes. Try an idea, look at the result and send the next take while it's still fresh.

  • Every video comes with sound

    Each result is an MP4 with sound, so a clip is ready to post as it is. A silent, compressed preview comes with it for thumbnails and lists.

  • 3 to 20 seconds per video

    Set duration anywhere from 3 to 20 seconds and pay only for those seconds. Keep it short for quick takes, or give a scene room to play out.

  • First frames, references and edits

    Start from one first-frame image, place the subjects of up to 10 reference images or 5 reference videos in a new scene, or edit a clip you already have as your prompt says.

  • 720p, four aspect ratios or auto

    Render Kling 4.0 Flash videos at 720p in 21:9, 16:9, 9:16 or 1:1, or pass auto. A 16:9 result is 1280×720 at 24 fps, returned as a public link kept for 15 days.

Kling 4.0 Flash on NanoAPI, "Fast AI video with sound": a video frame of a red paper boat on a rainy neon street with a nearly full progress bar and a 720p label

Overview

What Is Kling 4.0 Flash?

Model ID
kling-4.0-flash
Modes
4
Length
3–20s
Resolution
720p
Aspect ratio
auto · 21:9 · 16:9 · 9:16 · 1:1
Images
Up to 10
Prompt
Up to 8000 characters
Price
From $0.1404 / s

Kling 4.0 Flash is the fast version of Kling 4.0, the AI video model from Kuaishou. It turns a prompt, an image, reference files or an existing clip into a 720p video with sound of 3 to 20 seconds, and a 3-second video takes about 1.3 minutes. Prompts can run up to 8,000 characters and mention your files as @Image1 or @Video1.

On NanoAPI, Kling 4.0 Flash is one model with four modes. text_to_video generates from a prompt alone, image_to_video starts from one first-frame image, reference_to_video builds a new scene around up to 10 reference images and/or 5 reference videos, and video_edit changes a clip you already have as your prompt says. Every mode uses the model value kling-4.0-flash.

Use Kling 4.0 Flash online in the studio at the top of this page, then call the Kling 4.0 Flash API at https://api.nanoapi.ai/v1 from your own app. Both draw on the same prepaid balance at the same per-second prices, and a failed generation is never charged.

Modes

Kling 4.0 Flash Modes Compared

One endpoint, four modes: pick the one that matches what you start from. Every mode is billed per second of the video you ask for.

ModeInputBest for720p / s
Text to Videotext_to_videoA prompt (required)Quick concept shots, B-roll and ideas you only have in words$0.1404
Image to Videoimage_to_videoOne image as the first frame; optional promptBringing a product photo, artwork or still to life from a fixed opening shot$0.1404
Reference to Videoreference_to_videoUp to 10 reference images and/or up to 5 reference videos; optional promptPutting a character, product or place in a new scene$0.1404
Video Editvideo_editA clip (720p or higher, 3–30 s) and a prompt; optional: up to 10 reference images and 4 reference videosSwapping objects or changing the style or setting of footage you already have$0.1872

Live prices per second of output. The cost is duration × the price (reference to video with reference videos uses the video edit price); failed runs are fully refunded.

How it works

How to Use the Kling 4.0 Flash API

  1. 1

    Step 1: Get your API key

    Sign in to NanoAPI with Google and create a key on the API Keys page of the console. The key authenticates every Kling 4.0 Flash API request, so keep it on your server.

  2. 2

    Step 2: Try Kling 4.0 Flash in the studio

    Test prompts, first frames and references in the studio above before you write code. It shows the cost before you generate: duration × the price per second of the mode.

  3. 3

    Step 3: Create a Kling 4.0 Flash video

    Send POST /v1/tasks with model kling-4.0-flash, a mode, your prompt or media and the required aspect_ratio, resolution and duration (video edit can leave duration out). The task is queued right away, and its cost is reserved within a few seconds.

  4. 4

    Step 4: Get the result

    Receive the finished task at your webhook_url or poll GET /v1/tasks/{task_id}. A 3-second video takes about 1.3 minutes and comes back as a public MP4 link with sound, plus a silent preview.

Why NanoAPI

Why Use the Kling 4.0 Flash API on NanoAPI

  • One API for every mode

    The Kling 4.0 Flash API uses the same POST /v1/tasks endpoint, task object and webhooks as every NanoAPI model, so a new mode or model never means a new integration.

  • Pay per second of output

    The cost is duration × the price per second of the mode, known before you submit. No subscription, and the balance never expires.

  • Failed runs are free

    Each task reserves its cost when it's created and is charged only when the video is ready. If a generation fails, even because a file can't be read, the full amount goes back to your balance.

  • Safe retries and spend limits

    Send an Idempotency-Key and a resent request returns the task it already created instead of charging twice. Cap each key's hourly, daily or total spending in the console.

  • Try online, then integrate

    The studio on this page runs the same Kling 4.0 Flash model at the same prices, so what you test is what your users get. The docs also come as one llms.txt file for AI coding assistants.

  • Live status and real support

    See each model's success rate on the public status page, and write to support@nanoapi.ai with any question about integration, tasks or billing.

Use cases

What You Can Build With the Kling 4.0 Flash API

  • Four takes of a hot-air balloon over misty hills at sunrise, each from a different camera angle, labelled Take 1 to Take 4

    Many ideas, quick takes

    A 3-second clip takes about 1.3 minutes, so you can try several prompts, angles and moods side by side and keep the take that works.

  • Three phones playing vertical short videos: a chef tossing noodles in a flaming wok, a dancer on a rooftop at sunset, a golden retriever catching a frisbee

    Daily social media videos

    Post fresh 9:16 videos for TikTok, Reels and Shorts every day, with sound already in the clip, straight from your scheduling or creator tools.

  • A white ceramic mug as the first frame on white, and the same mug in a video on a wooden table with steam rising in morning light

    Product photos to video

    Use a product photo as the first frame and turn it into a short showcase clip for listings, stores and ads.

  • The same cyclist on a park path before and after an edit: green summer trees, then golden autumn leaves

    Edit the videos you have

    Change objects, style or setting in existing footage with a prompt, optionally guided by reference images and reference videos.

  • A laptop running a web app with a prompt box, a 5 s duration selector and a Generate button, playing a video of a paper boat in the rain

    Video in your app or pipeline

    Build Kling 4.0 Flash into your product, agent or content pipeline: create tasks in bulk, get the results by webhook and publish without manual steps.

FAQ

Kling 4.0 Flash API FAQ

Can’t find what you need? Write to us.

01

What is the Kling 4.0 Flash API?

The Kling 4.0 Flash API lets your app generate videos with the Kling 4.0 Flash model over HTTP. On NanoAPI you send POST /v1/tasks with model kling-4.0-flash and one of four modes (text_to_video, image_to_video, reference_to_video or video_edit), then get the finished video by webhook or by polling.

02

How much does the Kling 4.0 Flash API cost?

You pay per second of the video you ask for: duration × the price per second of the mode (reference to video with reference videos is billed at the video edit price). The live prices are on the pricing page and in GET /v1/products, and the studio shows the cost before you generate. Failed runs are not charged.

03

How is Kling 4.0 Flash different from Kling 4.0?

Kling 4.0 Flash is the fast version: 720p video with sound, 3 to 20 seconds per video, and a 3-second video in about 1.3 minutes. For 1080p or clips up to 30 seconds, use Kling 4.0 (model kling-4.0, studio at nanoapi.ai/kling-4) with the same key, balance and endpoint.

04

Can I try Kling 4.0 Flash online before integrating?

Yes. Sign in and use the studio at the top of this page: it runs the same Kling 4.0 Flash model at the same prices as the API and draws on the same balance, so you can check results and costs before writing code.

05

How long can Kling 4.0 Flash videos be?

Between 3 and 20 seconds, set in whole seconds with the duration parameter. Videos you give as input (the clip you edit and any reference videos) are each 3–30 seconds and at most 30 seconds together.

06

Which resolutions and aspect ratios does Kling 4.0 Flash support?

720p, in 21:9, 16:9, 9:16 or 1:1, or auto; a 16:9 result is 1280×720 at 24 fps. aspect_ratio and resolution are required on every request, and duration in every mode except video edit. auto depends on the mode: it follows the first frame in image to video and the edited clip in video edit, and doesn't follow the reference images in reference to video.

07

How long does a Kling 4.0 Flash video take to generate?

A 3-second video takes about 1.3 minutes. In production, pass a webhook_url to be notified once when the task finishes instead of polling. Results are kept for 15 days, so store the ones you need.

08

What happens if a Kling 4.0 Flash generation fails?

The amount reserved for the task goes back to your balance in full, and the task's error.type tells you why, for example an image that can't be downloaded or a video below 720p.

Start Creating With Kling 4.0 Flash

Try Kling 4.0 Flash in the studio above, then bring the same model into your product with the Kling 4.0 Flash API.