YepAPI
KlingVideo Generation/v1/media/queue

Kling 4.0 API

Kling 4.0 from $0.268/sec — Kling's newest video model, 3–30 second clips at up to 1080p.

Kling's newest video model. Text-to-video or image-to-video clips from 3 to 30 seconds at 720p or 1080p, in 21:9, 16:9, 9:16, or 1:1 — from $0.268 per second.

No credit card required. Takes 30 seconds.

Kling 4.0 API pricing

Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated November 1, 2026.

BillingPrice
Rate (720p)$0.268/sec
Rate (1080p)$0.40/sec
What it costsPer job
5-second clipfrom lowest resolution$1.34
10-second clipfrom lowest resolution$2.68
100 × 5-second clipsan ad-creative batch$134.00

2,400+

Developers

1.2M+

API calls served

100+

Endpoints

$0.01

Per call

Yep, that's it.

Try it live

Enter a prompt and generate a video with Kling 4.0.

POST/v1/media/queue

Drop image or click to upload

For image-to-video (first/last frame)

Response
Hit "Send Request" to see the response

Kling 4.0 specs

ProviderKling
Model IDkwaivgi/kling-v4.0
Endpoint/v1/media/queue
TypeVideo Generation
Resolutions720p, 1080p
Aspect ratios21:9, 16:9, 9:16, 1:1
Durations3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 seconds
Image inputYes

How to get a Kling 4.0 API key

  1. 1

    Create a free account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 3

    Call Kling 4.0

    Send a request to /v1/media/queue with the x-api-key header and model "kwaivgi/kling-v4.0".

  4. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Clips up to 30 seconds

Any length from 3 to 30 seconds — twice the ceiling of Kling 3.0, so long takes render in one pass.

✓
720p or 1080p

$0.268/sec at 720p and $0.40/sec at 1080p: draft at 720p, render the keeper in full HD.

✓
Cinematic 21:9

Ultra-wide 21:9 alongside 16:9, 9:16, and 1:1 for film-style framing as well as social placements.

✓
Text or image to video

Describe the shot, or upload a first frame and Kling 4.0 animates it (the prompt is optional with an image).

Quick start

Copy this snippet and start making calls with Kling 4.0.

// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "kwaivgi/kling-v4.0",
    "prompt": "A lone rider crossing a salt flat at dawn, heat haze shimmering, the camera slowly circling from a low angle as the sun breaks the horizon, ultra-wide cinematic framing",
    "options": {
      "aspectRatio": "16:9",
      "resolution": "1080p",
      "duration": "5"
    }
  }),
});
const { data } = await res.json();
const jobId = data.jobId;

// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }

Kling 4.0 vs similar models

Every model below runs on the same API key — switch by changing the model ID.

ModelProviderPrice
Kling 4.0Klingfrom $0.268/sec (720p), $0.40/sec (1080p)
Kling 2.5 Turbo StandardKling$0.072/sec (image-to-video)
Kling 2.6 ProKlingfrom $0.12/sec (audio off), $0.238/sec (audio on, default)
Kling 2.5 Turbo ProKling$0.12/sec
Kling 3.0 StandardKlingfrom $0.144/sec (audio off), $0.216/sec (audio on, default)
Kling O3Klingfrom $0.144/sec (audio off), $0.192/sec (audio on)
Seedance 1.0 Pro FastByteDancefrom about $0.02/sec (480p), about $0.04/sec (720p), about $0.10/sec (1080p)
Grok Imagine Video 1.5 LitexAIfrom $0.04/sec (480p)

Why use Kling 4.0 through YepAPI?

✓One API key for all models — no separate accounts
✓No monthly minimums — pay per call
✓Switch models with one line of code
✓Simple REST API — works from any language
✓Unified billing across all providers
✓No rate limits for most use cases

Kling 4.0 API — Kling's newest AI video model from $0.268/sec

Kling 4.0 is the newest generation of Kling's video models. It turns a prompt or a first-frame image into a 3 to 30 second clip at 720p or 1080p, in 21:9, 16:9, 9:16, or 1:1.

On YepAPI it runs on the same `/v1/media/queue` endpoint as every other Kling model — send `kwaivgi/kling-v4.0` (or the alias `kling-4`), poll the job, and download the MP4. Billed per second: $0.268 at 720p, $0.40 at 1080p.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

Kling's newest video model. Text-to-video or image-to-video clips from 3 to 30 seconds at 720p or 1080p, in 21:9, 16:9, 9:16, or 1:1 — from $0.268 per second.

Kling 4.0 costs from $0.268/sec (720p), $0.40/sec (1080p) through YepAPI, billed per request with no monthly fee. For example, a 5-second clip (from lowest resolution) costs about $1.34.

Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Kling 4.0 and every other model — no separate Kling account or waitlist.

New YepAPI accounts in most countries get free signup credit, enough to test Kling 4.0 without a card. After that you pay per request at the rates above — there is no subscription.

Use "kwaivgi/kling-v4.0" as the model on /v1/media/queue. The short alias "kling-4" also works.

Ready to use Kling 4.0?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models