Kling 4.0 API
Kling 4.0 is Kling AI's video model for clips of 3 to 30 seconds in one pass, at 720p, 1080p or native 4K, with optional 10-bit HDR and a prompt for each shot. Through CoreSpeed, Claude Code, Codex, Cursor or any MCP agent runs it and its Flash tier with no Kling account, from one credit balance.
From
141credits
per billed second · about $0.141
By Kling · 8 ways to run it · No Kling key
Paste this into Claude Code, Codex or Cursor
set up https://corespeed.io/SKILL.md (read it raw, e.g. with curl), then make a 10-second 1080p clip of a detective on a rainy rooftop with Kling 4.0, and tell me the rate before you run itWhat it costs,per billed unit.
- Text to videoKling 4.0 Text to Video, in the catalog235 creditsper billed second · $0.235
- Image to videoKling 4.0 Image to Video, in the catalog235 creditsper billed second · $0.235
- From image or video referencesKling 4.0 Reference to Video, in the catalog235 creditsper billed second · $0.235
- Edit a videoKling 4.0 Video Editing, in the catalog235 creditsper billed second · $0.235
- Text to video, FlashKling 4.0 Flash Text to Video, in the catalog141 creditsper billed second · $0.141
- Image to video, FlashKling 4.0 Flash Image to Video, in the catalog141 creditsper billed second · $0.141
- From references, FlashKling 4.0 Flash Reference to Video, in the catalog141 creditsper billed second · $0.141
- Edit a video, FlashKling 4.0 Flash Video Editing, in the catalog141 creditsper billed second · $0.141
A run is billed once, after it succeeds: the rate times the units the model reports for that run. Settings such as resolution, length, count or sound change how many units a run counts. A failed, cancelled or expired run costs nothing. Credits come from one balance: 1,000 credits are $1.
Rates come from the catalog and follow it. Every model in Video generation, with its rate
What itdoes well.
- Long takes: up to 30 seconds in one generation.
- Several shots in one clip, each with its own prompt and length.
- Native 4K and 10-bit HDR for footage that goes on to editing.
- Takes
- A prompt, or a prompt per shot; an image or video to start from or edit.
- Length
- 3 to 30 seconds; Flash, 3 to 20 seconds.
- Resolution
- 720p, 1080p or 4K; Flash, 720p.
- HDR
- 10-bit HDR at 1080p and 4K, billed on top of the base rate.
- Aspect ratio
- 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9.
From Kling's own page: Kling 4.0, on Kling AI's site
Your agentruns it.
Set up once with the line above. Then your agent calls Kling 4.0 through CoreSpeed's media tools, with no Kling account.
Find it
Your agent searches the catalog for Kling 4.0 and picks the variant that fits the job.
media__list_modelsRead the rate and inputs
It reads the rate and the inputs the model takes, before anything runs.
media__get_modelRun it
The video clip comes back as a link and as a file in your Drive for 7 days. A long run finishes as a job.
media__generate