Kling 4.0 API logo - Kuaishou AI video model
Built by Kuaishou Live on the API

Kling 4.0 API

Also known as Kling 4.0, Kling 4, Kuaishou Kling 4 API, Kling v4 API

Kuaishou Kling 4.0 - up to 30 seconds per clip at 1080p, from a prompt or from a start and end frame. Live on the API.

Best for Longer single shots up to 30 seconds, human motion and camera work at 1080p, and transitions pinned between a start and an end frame.

Provider
Kuaishou
Max resolution
1080p
Avg. generation
~150s
Price
From $0.25/second
  • Plans from $29/mo, cancel anytime
  • No Kuaishou account needed
  • One key for 19 models

Access the Kling 4.0 video model via REST API on VideoGenAPI, with endpoints, a live playground and developer docs.

Interactive demo

Try Kling 4.0 right now

Explore the interface and see how easy it is to generate videos with Kling 4.0. Create an account and pick a plan to start generating.

Playground Demo - Kling 4.0
Demo Mode
magic_button AI Powered
Be specific for best results 0/1000
Sign up to generate videos
Create a free account to access the full playground and generate videos with Kling 4.0 on a monthly plan.
timer ~150s generation
rocket_launch Get Started Free

Demo Preview

Demo Mode
Kling 4.0
Kling 4.0
by Kuaishou
Kling 4.0 by Kuaishou: text-to-video and image-to-video with stereo audio, 3 to 30 seconds at 720p or 1080p, with an optional end frame. Billed per second from your balance: $0.25/s at 720p, $0.35/s at 1080p.
1080p • 3-30s • ~150s processing
Gallery

Kling 4.0 examples

Discover what's possible with Kling 4.0 AI video generation

A dancer in a red dress crosses a rain-soaked plaza at night, spins under a street lamp and looks into the camera, steady tracking shot, reflections on wet stone

Generated with the Kling 4.0 API at up to 1080p. Results vary with prompt detail and requested duration.

What is the Kling 4.0 API?

The Kling 4.0 API is a REST interface that lets developers generate AI videos programmatically using Kuaishou's Kling 4.0 model. It supports text-to-video, image-to-video through a single POST endpoint. VideoGenAPI handles authentication, billing, and provider infrastructure - you only need one API key to start building with the Kling 4.0 API.

Kuaishou
Provider
REST
API protocol
~150s
Avg. generation

How to use the Kling 4.0 API

Integrate the Kling 4.0 API in your app in under 5 minutes with these four steps.

  1. 1

    Create your VideoGenAPI account

    Sign up free at VideoGenAPI.com and generate your API key from the dashboard. No Kuaishou account needed.

  2. 2

    Send a request to the Kling 4.0 API

    POST to https://videogenapi.com/api/v1/generate with your API key, model "kling-4", and a text prompt describing your video.

  3. 3

    Poll for completion

    Use the returned generation_id to poll GET /api/v1/status/{id} until the job completes. Video completion webhooks are not available yet.

  4. 4

    Download your video

    Once status is "completed", retrieve the video URL from the response and embed it in your app, website, or workflow.

Documentation

About Kling 4.0

info Overview

Kling 4.0 is the flagship video model from Kuaishou's Kling AI and the successor to Kling 3. It was announced on September 28, 2026 and became fully available on October 15, 2026. It triples the clip length of Kling 3 on VideoGenAPI, from 10 to 30 seconds in a single generation, renders at 720p or 1080p, and returns two-channel stereo audio generated with the picture. On VideoGenAPI you call it with the same endpoint and key as every other model, without a Kling account. It handles text-to-video in four aspect ratios (16:9, 9:16, 1:1 and 21:9) and image-to-video from a start frame, with an optional end frame to control where the shot lands. Kling 4.0 is billed per second from your balance: $0.25 at 720p and $0.35 at 1080p, and failed generations are refunded. For fast drafts, Kling 4.0 Flash (/kling-4-flash-api) runs the same family at 720p for $0.15 per second. Launch details: Kling 4.0 and Kling 4.0 Flash are live (/blog/kling-4-api-launch).

stars Key Strengths

  • check_circle 3 to 30 second clips in a single generation
  • check_circle 720p or 1080p output, four aspect ratios including 21:9
  • check_circle Image-to-video from a start frame, with an optional end frame
  • check_circle Two-channel stereo audio generated with the picture
  • check_circle Per-second billing from your balance, refunded if a generation fails

check_circle Supported Features

  • Text to Video
  • Image to Video

settings Specifications

  • Max Resolution: 1080p
  • Duration Range: 3-30s
  • Avg. Processing: ~150s

workspace_premium Why Kling 4.0 via VideoGenAPI?

  • check_circle
    Unified API: Access Kling 4.0 alongside 18 other models with one API key - no separate Kuaishou setup.
  • check_circle
    Per-second pricing: $0.25 per second at 720p and $0.35 at 1080p, from your balance on top of a monthly plan. Failed generations are refunded.
  • check_circle
    Production-ready: one REST endpoint, status polling, an MCP server for AI agents, and full docs.
Use cases

What you can build with Kling 4.0

1

Narrative scenes

Carry a full story beat in one 30-second shot instead of stitching three 10-second clips.

2

Product and brand film

Animate a packshot from a start frame and land on the end frame of your choice at 1080p.

3

Cinematic formats

Render 21:9 widescreen shots for trailers and hero sections, or 9:16 for social feeds.

API reference

Kling 4.0 API documentation

Quick start guide to integrate Kling 4.0 in your application

code Endpoint

POST https://videogenapi.com/api/v1/generate

tune Kling 4.0 API parameters

Request parameters accepted by the Kling 4.0 API on POST /api/v1/generate
Parameter Type Required Kling 4.0 values
model string Yes "kling-4"
prompt string Yes Scene description, up to 1,000 characters.
image_url string No Public jpg, png, gif or webp URL. Animates the image (image-to-video).
duration integer No 3 to 30 seconds, up to 15s on every plan.
resolution string No 720p, 1080p.
aspect_ratio string No 16:9, 4:3, 1:1 or 9:16 (text-to-video).
seed integer No Fixed value for reproducible output, -1 for random.
add_audio boolean No Kling 4.0 generates native audio with the video.

Average generation time: ~150s. Poll GET /api/v1/status/{id} with the returned generation_id. Full reference: /docs/generate.

send Request Example

{
  "model": "kling-4",
  "prompt": "A dancer in a red dress crosses a rain-soaked plaza at night, spins under a street lamp and looks into the camera, steady tracking shot, reflections on wet stone",
  "duration": 10,
  "resolution": "720p"
}

download Response Example

{
  "success": true,
  "generation_id": "gen_abc123xyz",
  "status": "in_progress",
  "estimated_time": 150}

integration_instructions Code Examples

const response = await fetch('https://videogenapi.com/api/v1/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    model: 'kling-4',
    prompt: 'A dancer in a red dress crosses a rain-soaked plaza at night, spins under a street lamp and looks into the camera, steady tracking shot, reflections on wet stone',
    duration: 10  })
});

const data = await response.json();
console.log(data.generation_id);

Kling 4.0 image-to-video request

curl -X POST https://videogenapi.com/api/v1/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kling-4",
    "prompt": "Slow push in, soft natural light, subtle movement",
    "image_url": "https://example.com/your-image.jpg",
    "duration": 5
  }'
Pricing

Kling 4.0 API pricing

Kling 4.0 is billed per video, not per second of output. See the cost calculator for your volume.

$0.25/s

per second of video at 720p ($0.35/s at 1080p) via the Kling 4.0 API

  • check_circle One API key for Kling 4.0 and 18 other models
  • check_circle No Kuaishou account required
  • check_circle Billed per video, never per second of output
Start with the Kling 4.0 API
Comparison

Kling 4.0 API vs alternatives

How the Kling 4.0 API compares on resolution, clip length, generation speed and price. All models below share one API key.

Comparison of the Kling 4.0 API against alternative AI video generation models on VideoGenAPI
Model Provider Max resolution Clip length Avg. speed Price / video
Kling 4.0 API This page Kuaishou 1080p 3-30s ~150s $0.25/s
Kling 4.0 Flash API Kuaishou 720p 3-20s ~65s $0.15/s
Kling 3.0 API Kuaishou 1080p 5-10s ~250s Included, from $0.011
Wan 3.0 API Alibaba 1080p 2-30s ~150s $0.10/s

Switching between these models means changing the kling-4 value in your request body. The endpoint, authentication and status polling stay the same.

Limits

Kling 4.0 API limitations

  • Plan duration and resolution caps apply even when the model supports higher output. See pricing.
  • Jobs are asynchronous: poll GET /api/v1/status/{id}. Video completion webhooks are not available yet.
  • Rate limits and fair-use throttling are documented on /docs/rate-limits.
  • Prompts and images that violate the content guidelines are rejected.
  • This model is billed per generation on top of the monthly plan ($1.25/video).
Reviewed by Enzo Lanne · Founder, VideoGenAPI ·
FAQ

Kling 4.0 API questions

Is the Kling 4.0 API available on VideoGenAPI? expand_more
Yes. Send POST /api/v1/generate with "model": "kling-4", a prompt, a duration from 3 to 30 seconds and an optional resolution ("720p" or "1080p"). Add "image_url" for image-to-video and "end_image_url" for a last frame.
How much does Kling 4.0 cost? expand_more
Kling 4.0 is billed per second from your balance: $0.25 at 720p and $0.35 at 1080p. A 10-second 720p clip costs $2.50. Failed generations are refunded automatically.
When was Kling 4.0 released? expand_more
Kling announced Kling 4.0 on September 28, 2026, with Kling 4.0 Flash available to Ultra subscribers first, and made the full model available to all users on October 15, 2026.
What is the difference between Kling 4.0 and Kling 4.0 Flash? expand_more
Flash is the lighter, faster tier: 3 to 20 second clips at 720p, without an end frame, for $0.15 per second. The full Kling 4.0 goes up to 30 seconds, adds 1080p and an optional end frame.
Does Kling 4.0 generate audio? expand_more
Yes. Kling 4.0 and Kling 4.0 Flash return two-channel stereo audio generated with the picture. Audio is always included; there is no silent option.
How does Kling 4.0 compare with Kling 3? expand_more
Kling 4.0 generates up to 30 seconds per clip at up to 1080p and supports an end frame. Kling 3 is limited to 10 seconds on VideoGenAPI but is included in every plan, so it remains the cheaper choice for short clips.
How much does one Kling 4.0 API video cost? expand_more
Kling 4.0 is billed per second of output from your VideoGenAPI balance: $0.25 per second at 720p and $0.35 at 1080p, so a 10-second 720p clip costs $2.50. You need a monthly plan (from $29) for API access; failed generations are refunded to your balance.

Ready to ship with Kling 4.0?

Create a key and call the Kling 4.0 API in minutes, plus 18 other models on the same endpoint.

Free account · Plans from $29/mo · Cancel anytime