Narrative scenes
Carry a full story beat in one 30-second shot instead of stitching three 10-second clips.
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.
Access the Kling 4.0 video model via REST API on VideoGenAPI, with endpoints, a live playground and developer docs.
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.
Discover what's possible with Kling 4.0 AI video generation
Generated with the Kling 4.0 API at up to 1080p. Results vary with prompt detail and requested duration.
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.
Integrate the Kling 4.0 API in your app in under 5 minutes with these four steps.
Sign up free at VideoGenAPI.com and generate your API key from the dashboard. No Kuaishou account needed.
POST to https://videogenapi.com/api/v1/generate with your API key, model "kling-4", and a text prompt describing your video.
Use the returned generation_id to poll GET /api/v1/status/{id} until the job completes. Video completion webhooks are not available yet.
Once status is "completed", retrieve the video URL from the response and embed it in your app, website, or workflow.
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).
Carry a full story beat in one 30-second shot instead of stitching three 10-second clips.
Animate a packshot from a start frame and land on the end frame of your choice at 1080p.
Render 21:9 widescreen shots for trailers and hero sections, or 9:16 for social feeds.
Quick start guide to integrate Kling 4.0 in your application
| 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.
{
"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"
}
{
"success": true,
"generation_id": "gen_abc123xyz",
"status": "in_progress",
"estimated_time": 150}
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);
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
}'
Kling 4.0 is billed per video, not per second of output. See the cost calculator for your volume.
per second of video at 720p ($0.35/s at 1080p) via the Kling 4.0 API
How the Kling 4.0 API compares on resolution, clip length, generation speed and price. All models below share one API key.
| 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.
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