Kuaishou
Operational· checked every few minutes

Kling 4.0 API

The Kling 4.0 API: Kuaishou's newest model makes 3 to 30 second videos with sound from text, frames or up to 10 reference images, from $0.15 per second.

Price per second of videoSound included
720p
$0.15/s$0.157
$0.75 for 5 s
1080p
$0.225/s$0.235
$1.125 for 5 s
Model IDkling-4.0
video.py
import os, time, requests
API = "https://api.zurelay.com/v1"
headers = {"Authorization": f"Bearer {os.environ['ZURELAY_API_KEY']}"}
res = requests.post(f"{API}/videos", headers=headers, json={
"model": "kling-4.0",
"prompt": "A red fox trotting through fresh snow at dawn, cinematic",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
})
res.raise_for_status()
job = res.json()
# Takes a few minutes: poll until it's done
while job["status"] in ("queued", "in_progress"):
time.sleep(5)
job = requests.get(f"{API}/videos/{job['id']}", headers=headers).json()
if job["status"] == "failed":
raise SystemExit(job["error"]["message"])
video = requests.get(f"{API}/videos/{job['id']}/content", headers=headers)
with open("video.mp4", "wb") as f:
f.write(video.content)
print(f"Saved video.mp4 for ${job['cost']}")

Base URL https://api.zurelay.com/v1. Plain JSON over HTTPS: start a job, poll it, download the MP4. Kling guide

Resolutions
720p · 1080p
Clip length
3 to 30 seconds
Aspect ratios
16:9 · 9:16 · 1:1 · 21:9
Audio
Always on, included
Typical 5 s clip
Ready in ~3.5 min
Status
Operational

Pricing

Kling 4.0 API pricing. By the second.

Pay as you go from prepaid credit, with no subscription. Top up from $10. A video is charged only once it's delivered; videos that fail cost nothing.

ResolutionPer second5 s clip30 s clip
720p
$0.15$0.75$4.50
1080p
$0.225$1.125$6.75

A clip costs its length in seconds times the price at its resolution. It's held from your balance when the job is accepted and charged when the video is delivered. First and last frames, reference images and the aspect ratio don't change the price.

Every AI video model and price
Cost calculator

Pick a resolution and a length, and how many videos you make.

Resolution
Length5 seconds
Videos per month100
One clip
$0.75
Per second
$0.15
Every month$75.00

100 clips × $0.75

Overview

What is Kling 4.0?

Kling 4.0 is Kuaishou's newest video generation model. It makes 720p and 1080p clips from 3 to 30 seconds long in a single take, always with generated sound, from a text prompt, a first and last frame, or up to 10 reference images. The Zurelay Kling 4.0 API costs $0.15 per second of 720p video, and a video is charged only once it's delivered.

Kling is Kuaishou's family of video generation models. Kuaishou launched Kling 4.0 on October 15, 2026, as the successor to Kling 3.0, and opened its API soon after. On Zurelay it uses the model ID kling-4.0, and also accepts kling-4, kling-v4 and kling/kling-4.0.

Kling 4.0 makes up to 30 seconds of video in one generation, which keeps characters and style steady across a whole scene instead of stitching short clips. Sound always comes with the picture: dialogue, ambient sound, music and effects, as the prompt describes them. Kuaishou also built it for complex motion and camera moves, and for keeping people and products the same across shots with reference images. On Zurelay, clips come in 720p or 1080p, in whole seconds from 3 to 30, and in 16:9, 9:16, 1:1 or 21:9; from a first frame, the video takes the image's shape.

You can start from a text prompt, animate a first frame and land on a last frame, or give up to 10 reference images and mention them in the prompt as @Image1, @Image2 and so on, saying what each is for. Kling 4.0's reference videos, video editing, middle keyframes and saved elements and voices aren't available through Zurelay yet.

Video takes time, so the API is asynchronous. POST https://api.zurelay.com/v1/videos returns a job right away; poll GET /v1/videos/{id} until its status is completed, then download the MP4 from /v1/videos/{id}/content or from the signed url in the job. A 5 second 720p clip usually takes about 3.5 minutes, and long or 1080p clips take longer. Videos come back as MP4 at 24 fps with stereo sound and are kept for 30 days.

Zurelay prices Kling 4.0 by the second, sound included: $0.15 per second at 720p and $0.225 at 1080p, so a 5 second 720p clip costs $0.75. Frames, reference images and the aspect ratio don't change the price. The price is held from your balance when the job is accepted and charged only when the video is delivered. Videos that fail, including ones the content filter refuses, cost nothing.

Strengths

Where Kling 4.0 shines. And what teams build with it.

01

Up to 30 seconds in one take

A whole scene in one generation, with the same characters, lighting and style from start to finish.

02

Up to 10 reference images

Mention them in the prompt as @Image1, @Image2 and so on to keep a face, a product or a place the same across shots.

03

Sound with every clip

Dialogue, ambient sound, music and effects come with the picture, at no extra cost.

04

Widescreen 21:9

Cinematic 21:9 beside 16:9, 9:16 and 1:1, for trailers and film-style shots.

Use cases

  • Product and brand films

    Put the product in one reference image and the presenter in another, and keep both exact across a 30 second spot.

  • Short story scenes

    Write the beats in order, with dialogue in quotes, and get one continuous scene with sound.

  • Social video

    Vertical 9:16 clips with speech and music for short-video feeds.

  • Storyboards into motion

    Give a first and a last frame and get the shot that moves between them.

Get started

Call Kling 4.0 in three steps.

No waitlist and nothing to install: three HTTPS endpoints and your API key.

  1. 1

    Create a key

    Sign up, add credit and create an API key. Set a monthly budget or a rate limit per key if you like.

  2. 2

    Send requests to Zurelay

    Every video endpoint lives under this base URL. Send your key as a Bearer token.

    https://api.zurelay.com/v1
  3. 3

    Use kling-4.0

    POST a prompt to /v1/videos, poll the job every few seconds until it's completed, then download the MP4. Videos are kept for 30 days.

    kling-4.0

Works with the tools you already use

FAQ

Kling 4.0 API questions.

Anything else? Ask our team and we’ll answer by email.

How much does the Kling 4.0 API cost?

Zurelay charges by the second of video, sound included: $0.15 per second at 720p and $0.225 at 1080p. A clip costs its length times that rate, so a 5 second 720p clip is $0.75 and a 30 second 1080p clip is 30 times $0.225. First and last frames, reference images and the aspect ratio don't change the price.

When am I charged for a video?

When Zurelay accepts the job, its price is held from your balance, so videos in progress can never spend more than you have. It's charged only when the video is delivered. If a video fails, including when the content filter refuses the prompt or images, you pay nothing.

How do I call the Kling 4.0 API?

Send POST https://api.zurelay.com/v1/videos with your Zurelay key as a Bearer token and a JSON body: model set to kling-4.0, a prompt of up to 8,000 characters, and optionally seconds (default 5), resolution (720p by default, or 1080p) and aspect_ratio (default 16:9). You get a job back right away. Poll GET /v1/videos/{id} every few seconds until its status is completed, then download the MP4 from /v1/videos/{id}/content. Any HTTP client works; there's no SDK to install.

How long can a Kling 4.0 video be?

Any whole length from 3 to 30 seconds, made in one generation rather than stitched together. Longer clips take longer to make: a 5 second 720p clip usually takes about 3.5 minutes.

How do reference images work with Kling 4.0?

Pass up to 10 images in reference_images, as https URLs or base64 data URLs of PNG, JPEG or WebP files up to 10 MB, and mention them in the prompt as @Image1, @Image2 and so on, in the order you sent them. Say what each is for, such as "keep the face and jacket from @Image1" or "the kitchen from @Image2"; without that, the model guesses. Reference images can't be combined with a first or last frame.

Can Kling 4.0 turn an image into a video?

Yes. Pass first_frame to animate an image, and add last_frame to move between two images. The video takes the first frame's shape. Images can be https URLs or base64 data URLs of PNG, JPEG or WebP files up to 10 MB.

Does Kling 4.0 make sound?

Always. Every clip comes with generated stereo sound, such as dialogue, ambient sound, music and effects, and the price includes it. Write lines in quotes next to the character who says them, and name the sounds you want. For a silent video, mute or strip the audio track, or use Kling 3.0, whose silent clips cost less.

What resolutions and aspect ratios does Kling 4.0 support?

720p and 1080p, in 16:9, 9:16, 1:1 or 21:9. From a first frame, the video takes the image's shape; with reference images, set aspect_ratio to adaptive to let the prompt or the images decide. An OpenAI-style size such as 1920x1080 works too.

Does Kling 4.0 take reference videos or edit videos on Zurelay?

Not yet. On Zurelay, Kling 4.0 takes a prompt, a first and last frame, or up to 10 reference images. For reference videos, editing and extending, use Seedance 2.5 or Gemini Omni Flash.

How is Kling 4.0 different from Kling 3.0?

Kling 4.0 makes clips up to 30 seconds instead of 15, takes up to 10 reference images, adds 21:9, and always makes sound. Kling 3.0 costs less per second, can make cheaper silent clips, and takes a negative prompt.

Is this Kuaishou's Kling 4.0?

Yes. Your requests run on Kuaishou's Kling 4.0, and Zurelay doesn't swap in a different or smaller model. Video generation varies from run to run, so the same prompt makes a different clip each time. Zurelay is an independent service and is not affiliated with Kuaishou.

More models on Zurelay

All models

Stop paying list price.
Start saving today.

Create a key in seconds, point the SDK you already use at Zurelay, and every request costs up to 90% less from the first token.