Kling 4.0 video API and MCP for AI agents
TollNode gives Claude, Cursor or any AI agent Kling 4.0, Kuaishou's video model with strong motion and prompt following, over API and MCP, from $1.061 per 5-second video, with no subscription.
Ask for 'A paper boat floating down a gentle stream through a mossy...' and get a finished video link back.
No subscription · Sign-up optional · From $1.061 per call · Charged only when it works · No Kuaishou account needed
Make a short video: A paper boat floating down a gentle stream through a mossy forest, the camera...
TollNode · Kuaishou · 720p$1.061 · 1 video, 5 s
| Result | Detail |
|---|---|
| File | 1 video link |
| Resolution | 720p |
Real result, shown below.
Kling 4.0 video examples
Made by this node in our own tests, from the request shown under each.
“A paper boat floating down a gentle stream through a mossy forest, the camera following slowly at water level, dappled sunlight”
The request that made it
Send the same body to get this kind of result. Change the prompt or the options to get your own.
{
"prompt": "A paper boat floating down a gentle stream through a mossy forest, the camera following slowly at water level, dappled sunlight",
"resolution": "720p"
}What you control with Kling 4.0
Prompt and style
Kling 4.0 text to video
Describe the scene, the camera move and the sound.
- Prompt
- A paper boat floating down a gentle stream through a mossy forest...
- Resolution
- 720p
- Returns
- 1 video link
You get
- prompt: what to create, in plain words
- aspect_ratio: the shape of the result: 16:9, 9:16, 1:1, 21:9
Start image
Optional first frame for the video.
- image
- https://.../photo.jpg
- Prompt
- A paper boat floating down a gentle stream through a...
- Returns
- 1 video link
You get
- image: the image to use (https link)
- prompt: what to create, in plain words
- from $1.061
Resolution and price
Kling 4.0 resolution options
Pick the option; the price follows it.
- Default
- 720p
- Options
- 720p, 1080p
- Charged
- only when a result comes back
You get
- resolution: output size; sets the price; default 720p
- options: 720p, 1080p
Actions
Failed calls are never charged.
What people ask their AI to do with it
Marketers
Social video ads
“Make a short video of a coffee being poured into a glass, steam rising”
3 × 720p
Cost today$3.183
Ecommerce sellers
Product teasers
“Show my sneaker rotating slowly on a concrete plinth with soft studio light”
720p
Cost today$1.061
Filmmakers
Previsualize a scene
“A lighthouse beam sweeping over a stormy sea at night, slow push-in”
3 × 720p
Cost today$3.183
Founders
A hero clip for the landing page
“A delivery drone landing on a suburban porch at golden hour”
720p
Cost today$1.061
Educators
Explainer clips
“Time-lapse of a seed sprouting and growing into a plant, macro view”
720p
Cost today$1.061
Real estate agents
Listing teasers
“Slow dolly through a bright modern living room with large windows”
720p
Cost today$1.061
Use it as a Kling 4.0 MCP server in Claude, Cursor or Codex
Connect once. Then just ask.
Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
You can use TollNode's Kling 4.0 node to make a video. Call POST https://tollnode.com/api/v1/nodes/video-kling-4 with image (optional), prompt (required), resolution (optional), aspect_ratio (optional). The price depends on resolution (720p, 1080p; default 720p) and is charged only when a result is returned. Over MCP, call the "video-kling-4" tool; use list_models to see prices. Give me the file link when it is done.Price
from $0.212
per second
One call: from $1.061 per 5-second video
The price depends on the resolution you choose. If you don't choose, you get 720p.
| 720pdefault | $1.061 per 5-second video |
| 1080p | $1.588 per 5-second video |
Charged only when a call returns a result. Failed or empty calls cost $0.
Kling 4.0 without a Kuaishou account
No subscription, no credit packs
Pay per video: $1.061 at 720p, $1.588 at 1080p.
No Kuaishou account, no quota form
Your agent calls TollNode. You never set up billing with the model's maker or request access.
Only charged when it works
If generation fails or returns nothing, the call costs nothing.
One connection, many video models
The same setup also gives your agent other models and live data tools, so it can compare results.
FAQ
- Is this the official Kuaishou API?
- No. TollNode is an independent service. It gives your agent access to Kling 4.0 through its own API and MCP server, priced per video, with no Kuaishou account needed.
- Can I use it as a Kling 4.0 MCP server in Claude?
- Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "video-kling-4" tool appears with its options and prices.
- What options can I choose?
- The resolution can be 720p or 1080p; the default is 720p. The price follows the option you pick, shown in the price table above.
- Can I start from my own image?
- Yes. Send an image link in image (https) along with your prompt. The result is built from it.
- What if nothing comes back?
- You're not charged. TollNode only collects payment when a usable result is returned.
- How long are the links valid?
- Download the file when you get it. Keep the link as a backup.
- How do I pay for Kling 4.0 video?
- Your agent sends the request, gets an HTTP 402 with the exact price (from $1.061 per call), signs a USDC payment on Base and retries. Or use an account balance with an API key. Either way you are charged only when a result comes back.
- What does the Kling 4.0 video response look like?
- A JSON object with a link to the finished video file. Download it when you get it and keep the link as a backup.
Works well with
- Kling 3.0 text-to-videoAnother video model to compare on the same promptfrom $1.135
- Kling 4.0 Flash video with soundAnother video model to compare on the same prompt$0.636
- Veo 3.1 video with soundTurn a finished image or idea into a video with soundfrom $2.161
- Nano Banana Pro image generationA high-quality image model to comparefrom $0.204
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/video-kling-4
Input
| Field | Type | Notes |
|---|---|---|
| image | string | Optional starting image (https URL). Or send the file inline as a base64 data: URI (up to 4.5 MB) |
| prompt* | string | What to create or change |
| resolution | enum | Sets the price. Default 720p (720p, 1080p) |
| aspect_ratio | enum | Aspect ratio, default 16:9 (16:9, 9:16, 1:1, 21:9) |
Example response
{
"videos": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
],
"aiGenerated": true
}Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.