Kling 3.0 API

Kuaishou Kling 3.0 flagship video model with up to 4K resolution and realistic motion simulation

720p · no audio
APIMart $0.0672 / second
Official$0.08420% less
720p · audio
APIMart $0.1008 / second
Official$0.12620% less
1080p · no audio
APIMart $0.0896 / second
Official$0.11220% less
1080p · audio
APIMart $0.1344 / second
Official$0.16820% less

Kling 3.0 API pricing: official and providers per second

Official Kling prices against every callable provider at the same resolution and audio setting

Compare other models
Output specificationProvidersPublished provider priceTypical timeTry it
720p · no audio
Kling AIOfficial
$0.0840 / second
Try it
Replicate
$0.1680 / second2× the price
Reference price only; not available through Yir
FAL
$0.0840 / second
Try it
WaveSpeedAI
$0.0840 / second
Reference price only; not available through Yir
KIE
$0.0755 / second10% less
Typical time 1.3 min
1.3 minTry it
APIMart
$0.0672 / second20% less
Typical time 2.1 min
2.1 minTry it
Higgsfield App
≈$0.0450 / second≈46% less
Reference price only; not available through Yir
720p · audio
Kling AIOfficial
$0.1260 / second
Try it
Replicate
$0.2520 / second2× the price
Reference price only; not available through Yir
FAL
$0.1260 / second
Try it
WaveSpeedAI
$0.1260 / second
Reference price only; not available through Yir
KIE
$0.1135 / second10% less
Typical time 1.3 min
1.3 minTry it
APIMart
$0.1008 / second20% less
Typical time 2.1 min
2.1 minTry it
Higgsfield App
≈$0.0600 / second≈52% less
Reference price only; not available through Yir
1080p · no audio
Kling AIOfficial
$0.1120 / second
Try it
Replicate
$0.2240 / second2× the price
Reference price only; not available through Yir
FAL · pro
$0.1120 / second
Typical time 3.9 min
3.9 minTry it
WaveSpeedAI
$0.1120 / second
Reference price only; not available through Yir
KIE
$0.1010 / second10% less
Typical time 4.1 min
4.1 minTry it
APIMart
$0.0896 / second20% less
Typical time 2.4 min
2.4 minTry it
Higgsfield App
≈$0.0525 / second≈53% less
Reference price only; not available through Yir
1080p · audio
Kling AIOfficial
$0.1680 / second
Try it
Replicate
$0.3360 / second2× the price
Reference price only; not available through Yir
FAL · pro
$0.1680 / second
Typical time 3.9 min
3.9 minTry it
WaveSpeedAI
$0.1680 / second
Reference price only; not available through Yir
KIE
$0.1510 / second10% less
Typical time 4.1 min
4.1 minTry it
APIMart
$0.1344 / second20% less
Typical time 2.4 min
2.4 minTry it
Higgsfield App
≈$0.0750 / second≈55% less
Reference price only; not available through Yir
4K
Kling AIOfficial
$0.4200 / second
Reference price only; not available through Yir
APIMart
$0.4286 / second2% more
Try it
FAL · native4k
$0.4200 / second
Try it
Replicate
$0.4200 / second
Reference price only; not available through Yir
WaveSpeedAI
$0.4200 / second
Reference price only; not available through Yir
KIE
$0.3775 / second10% less
Typical time 4 min
4 minTry it
Higgsfield App
≈$0.1800 / second≈57% less
Reference price only; not available through Yir
Motion control · 720p
Kling AIOfficial
$0.1260 / second
Try it
FAL
$0.1260 / second
Try it
KIE
$0.1135 / second10% less
Typical time 3.6 min
3.6 minTry it
APIMart
$0.1029 / second18% less
Typical time 4 min
4 minTry it
Motion control · 1080p
Kling AIOfficial
$0.1680 / second
Try it
FAL · pro
$0.1680 / second
Try it
KIE
$0.1510 / second10% less
Try it
APIMart
$0.1371 / second18% less
Typical time 4.7 min
4.7 minTry it

Automatic routing and failover

Call Kling 3.0 with one model ID and Yir picks the channel for each job from Kling AI, APIMart, KIE, and FAL: it goes to the eligible channel with the lowest estimated price and is billed at that channel's public price, with no markup. If an attempt is confirmed failed, Yir retries on another channel within your max_cost. No routing parameters needed in your request. Routing and fallback docs

Pricing notes

Billed by the channel that actually runs the job. Failover may switch channels, which can change cost and time.

Use the API

Hand the code to a coding agent, generate right in the chat with MCP or the Skill, or integrate yourself with the SDK or the OpenAI-compatible API.

Let a coding agent integrate it

Copy the integration prompt, or open it directly in Codex or Claude. The agent reads this page and the model contract, then writes submit, wait and result handling into your project.

Add the Yir MCP server

Connect it to ChatGPT, Claude or Cursor, then mention @Yir and ask for Kling 3.0 by name. It quotes first and only generates after you confirm.

https://gateway.yir.ai/mcp
Setup steps for each client

One command for Claude Code

Create an API key in the console, set it as YIR_API_KEY, then run:

claude mcp add --transport http yir https://gateway.yir.ai/mcp --header "Authorization: Bearer $YIR_API_KEY"

Install the Yir Skill

Set YIR_API_KEY where your agent runs, add the Skill to Claude Code, Codex or another coding agent, then say “use Kling 3.0 on Yir to make…”.

npx skills add yir-ai/skills
About the Yir Skill

Install the official SDK with your package manager, or copy the code snippet below to get started

$pnpm add @yir-ai/sdk
import { createNodeYirClient } from "@yir-ai/sdk/server";
 
// Reads YIR_API_KEY from the environment by default: process.env.YIR_API_KEY
const client = createNodeYirClient();
 
// 1. Submit a video generation job
const job = await client.submitVideo({
model: "klingai/kling-3.0",
input: {
type: "text",
prompt: "A sea turtle swims slowly over a coral reef. The camera tracks smoothly from the side as sunlight filters through clear water, casting moving patterns across its shell",
},
parameters: {
duration: 5,
resolution: "720p",
aspect_ratio: "16:9",
generate_audio: false,
n: 1,
},
});
 
// 2. Wait for the job to finish and deliver its result
const result = await client.waitForJob(job.id);
console.log("Delivered files:", result.result);
if (result.result && "files" in result.result) {
for (const file of result.result.files) {
console.log("->", file.url);
}
}

Projects already on the OpenAI protocol, or gateways such as new-api, only need a new Base URL and key. OpenAI compatibility guide

OpenAI SDK base_url
https://gateway.yir.ai/openai/v1
new-api channel Base URL
https://gateway.yir.ai/openai
Key
Yir API key
Model ID
klingai/kling-3.0
curl https://gateway.yir.ai/openai/v1/videos \
  -H "Authorization: Bearer $YIR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "klingai/kling-3.0",
    "prompt": "A sea turtle swims slowly over a coral reef. The camera tracks smoothly from the side as sunlight filters through clear water, casting moving patterns across its shell",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "seconds": "5"
  }'

Parameter overview

Common parameters; limits depend on the current model and selected channel

API docs
Resolution
resolution
  • 720p
  • 1080p
  • 4K

Output resolution tier. Higher resolutions offer sharper pixel fidelity and scale pricing accordingly

Aspect ratio
aspect_ratio
  • 16:9
  • 9:16
  • 1:1

Geometric aspect ratio. Choose according to target medium (portrait, banner, or square)

Input mode
input_mode
  • Text input
  • Image input
  • Reference input

Reference limits and formats depend on the model and selected channel

Duration
duration
  • 3–15 seconds

Video output duration tier, billed per second or stepped tier

Audio
generate_audio
  • Optional

Optional synchronized native audio generation track

References
references
  • first_frame ≤ 1
  • last_frame ≤ 1
  • reference_image ≤ 2
  • reference_video ≤ 2

Up to 3 characters: give 2–4 images the same subject name, then call it by name in the prompt

Frequently asked questions

Guides and comparisons

Start building with Kling 3.0

Compare the same spec across providers and call multiple providers from one wallet.