CheaperGen
KuaishouAPI key

Kling 4.0 API Key

Get a Kling 4.0 API key in about two minutes. One CheaperGen key calls Kling 4.0 — 3 endpoints — and every other model in the catalog, from $0.1486/s, 5% below Kuaishou's official price. Prepaid, no subscription needed.

Key
Free
pay per use
$10 of credits
≈ 22
test clips
First request
$0.75
text-to-video
Models per key
47
13 developers

Step by step

How to get a Kling 4.0 API key

  1. 1

    Create an account

    Sign up with Google or a magic link sent to your email. No sales call and no waitlist.

  2. 2

    Add credits

    Credits are prepaid in US dollars, by card. $10 covers about 22 3-second 720p clips with Kling 4.0 ($0.45 each). Turn on auto top-up if you don't want jobs to stop.

  3. 3

    Create the key

    Open Dashboard → API keys, name the key (e.g. “kling-prod”) and copy it. Keys start with cg_live_, and the full key is shown only once.

  4. 4

    Store it as an environment variable

    Put it in CHEAPERGEN_API_KEY on your server or in your secrets manager — never in a browser bundle, mobile app or public repository.

  5. 5

    Call Kling 4.0

    Send the request below. It costs $0.75 (5% below the official $0.79) and returns a generation id you can poll or receive by webhook.

Your first Kling 4.0 request

curl -X POST https://cheapergen.com/api/v1/run/kuaishou/kling-4.0/text-to-video \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A paper boat drifts along a rain-filled gutter at night, neon reflections, the soft patter of rain",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "duration": 5
}'

What the key unlocks

Kling 4.0 endpoints on your key

Every Kling 4.0 endpoint, with its starting price. The same key also runs the other 46 models.

Kling 4.0 endpoints available with one API key
TaskEndpointFrom
Text to VideoPOST /api/v1/run/kuaishou/kling-4.0/text-to-video$0.1486/s
Image to VideoPOST /api/v1/run/kuaishou/kling-4.0/image-to-video$0.1486/s
Reference to VideoPOST /api/v1/run/kuaishou/kling-4.0/reference-to-video$0.1486/s

Security

Keep your key safe

Anyone with the key can spend your balance. Details in the authentication docs.

Server-side only

Call the API from your backend. Never ship a key in a browser bundle, mobile app or public repository.

One key per app

Separate keys for production, staging and each integration let you revoke one without touching the others.

Rotate without downtime

Create a new key, deploy it, then revoke the old one. Revocation takes effect immediately.

Watch last-used times

The dashboard shows when each key was last used, so unused or unexpected keys stand out.

Try it

Try Kling 4.0 before you write code

The same model and price as the API. Press Code in the full-screen Studio to copy the request for any run.

Open the full-screen Studio

Compared

A CheaperGen key vs a key from Kuaishou

CheaperGen API key compared with the official developer API
AspectCheaperGenKuaishou directly
Price$0.1486/s at 720p$0.157/s (official list)
Models on one key47 models from 13 developersKuaishou models
BillingPrepaid USD credits, per use, failed runs refundedKuaishou's own billing
Same modelYes — official Kling 4.0Yes — official Kling 4.0

FAQ

Kling 4.0 API key questions

Creating a key is free, but generations are paid: there is no free tier. You add prepaid credits, failed generations are refunded automatically, and the quote endpoint (POST /v1/quote/{endpoint}) prices any request for free before you run it. Kling 4.0 starts at $0.1486/s.

The key itself costs nothing. You pay per second of generated video: Kling 4.0 costs $0.1486/s at 720p, 5% below Kuaishou's official $0.157/s. No subscription is needed (optional monthly plans add credits and can lower prices).

Yes. One CheaperGen key works for all 47 models from 13 developers in the catalog — change the endpoint, keep the key and the balance.

The full key is shown once, when you create it. The dashboard keeps its name, prefix and last-used time; if you lose the key, create a new one and revoke the old one.

Revoke it in Dashboard → API keys — revocation takes effect immediately — then create a new key and deploy it. Use one key per app or environment so you can revoke one without touching the others.