模型指南

Kling 4.0 API:价格、30 秒视频与可用代码

Kling 4.0 是快手最新的视频模型:可生成最长 30 秒的 720p 或 1080p 视频,始终带立体声,支持文本、首尾帧或最多十张参考图片作为输入。本指南介绍它的能力、每秒和每段的价格,以及可直接运行的请求。

Kling 4.0 擅长什么

Kling 4.0 于 2026 年 10 月底上线 Revana。与 Kling 3.0 相比,最长视频时长翻倍,主模型新增了参考图片和视频到视频功能,还可以选择画幅比例。

  • 单次请求最长 30 秒。足够完成包含多个镜头的短场景,无需拼接多段视频。
  • 每个镜头里都是同一个角色。传入最多十张人物、产品或场景的参考图片,模型会保持它们的一致性。
  • 每段视频都有声音。对白、音效和环境声与画面一同生成,为立体声。没有无声价格。
  • 竖版、方形或宽银幕。支持 16:9、9:16、1:1 和 21:9,TikTok 或 Reels 视频可以直接生成正确的画幅。
  • 首尾帧。固定镜头的起点和终点,适合产品展示和转场。

和所有当前的视频模型一样,画面中精确的文字并不可靠,所以请在剪辑时添加标题和字幕。

输入与限制

选项Kling 4.0
模型 idkling-4.0
任务文生视频、图生视频、首尾帧、参考图和视频生视频
分辨率720p 和 1080p
时长3 到 30 秒
宽高比16:9, 9:16, 1:1 and 21:9
参考图最多 10 张,通过 image_urls
声音始终开启,立体声
线路三条线路

模型不支持的字段或取值会在扣费前被拒绝,并返回 422。Kling 4.0 模型页面始终显示当前可用的选项。

Kling 4.0 价格(2026 年 11 月)

Kling 4.0 按输出视频的秒数计费,已包含声音。以视频作为输入的任务(视频到视频)单价更低。

Kling 4.0 每秒和每段的价格
分辨率每秒5 s10 s30 s带视频输入 / 秒
720p$0.135$0.675$1.35$4.05$0.08
1080p$0.20$1.00$2.00$6.00$0.12

每个任务的价格会在提交时从你的余额中冻结,只有任务成功才会扣费;确切的扣费金额会在 cost_usd 中返回。积分包和其他所有模型的价格见价格页面。

选 Kling 4.0 还是 Kling 3.0?

Kling 4.0 与 Kling 3.0 对比
Kling 4.0Kling 3.0
最长时长30 s15 s
分辨率720p 和 1080p720p、1080p 和 4K
宽高比16:9, 9:16, 1:1, 21:9未列出
参考图最多 10 张不支持(请使用 Kling 3.0 Omni)
720p 带声音 / 秒$0.135$0.13
1080p 带声音 / 秒$0.20$0.17

长镜头、竖版视频和角色一致性选 Kling 4.0;短的 16:9 视频用 Kling 3.0 价格略低,4K 也要用它。其他选择见 Seedance 2.5 vs Veo 3.1 vs Kling 3.0。

生成 Kling 4.0 竖版视频

发送 POST /v1/generations,并带上 "model": "kling-4.0"。这个请求生成一段 10 秒、9:16、720p、带一句对白的视频,价格为 $1.35。

cURL
export REVANA_API_KEY="sr_live_..."

# One Idempotency-Key per job, made once: resend with the same $KEY after a timeout, a 429 or a 5xx
KEY=$(uuidgen)

# 1. Submit the job (returns 202 with the generation id). max_cost_usd is your cap: the most it may cost.
curl https://api.revana.si/v1/generations \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
    "model": "kling-4.0",
    "input": {
      "prompt": "Vertical shot, rainy night in a small ramen shop. The cook slides a steaming bowl across the counter and says: \"Last one tonight.\" The customer smiles. Camera slowly pushes in. Rain on the window, sizzling pan, quiet city ambience.",
      "resolution": "720p",
      "aspect_ratio": "9:16",
      "duration": 10
    },
    "max_cost_usd": 3
  }'

# 2. Poll with the id from step 1 until status is "succeeded" or "failed".
#    A failed job is free; make a new KEY before you submit it again.
curl https://api.revana.si/v1/generations/gen_01JC4K9R2T \
  -H "Authorization: Bearer $REVANA_API_KEY"
Python
import os
import time
import uuid

import requests

API = "https://api.revana.si/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['REVANA_API_KEY']}"}
# One Idempotency-Key per job, made once. Resend after a timeout, a 429 or a 5xx with the
# same KEY: you get the same job back, never a second charge.
KEY = str(uuid.uuid4())

resp = requests.post(f"{API}/generations", headers={**HEADERS, "Idempotency-Key": KEY}, json={
    "model": "kling-4.0",
    "input": {
        "prompt": "Vertical shot, rainy night in a small ramen shop. The cook slides a steaming bowl across the counter and says: \"Last one tonight.\" The customer smiles. Camera slowly pushes in. Rain on the window, sizzling pan, quiet city ambience.",
        "resolution": "720p",
        "aspect_ratio": "9:16",
        "duration": 10,
    },
    "max_cost_usd": 3,  # your cap: the most this job may cost
})
resp.raise_for_status()
job = resp.json()

while job["status"] in ("queued", "running"):
    time.sleep(5)
    job = requests.get(f"{API}/generations/{job['id']}", headers=HEADERS).json()

if job["status"] == "succeeded":
    print(job["output"]["urls"], job["cost_usd"])
else:
    # A failed job is free. To try again, make a new KEY: this one answers with the failure.
    print("Failed:", job["error"])

提交调用会返回 202 和一个生成任务 id。每隔几秒轮询一次;当状态为 succeeded 时,视频链接在 output.urls 中:

响应
{
  "id": "gen_01JC4K9R2T",
  "model": "kling-4.0",
  "status": "succeeded",
  "output": {
    "urls": [
      "https://cdn.revana.si/g/gen_01JC4K9R2T/0.mp4"
    ]
  },
  "cost_usd": 1.35,
  "attempts": 1,
  "error": null,
  "created_at": "2026-11-03T14:02:11Z",
  "completed_at": "2026-11-03T14:05:02Z"
}

请尽快下载文件,因为输出链接会过期。

用参考图片让角色在多个镜头中保持一致

在 image_urls 中传入最多十张图片,并在提示词中说明每张图片的用途。这段 30 秒、1080p 的视频价格为 $6.00;可以先用 720p 出草稿,价格为 $4.05。

请求体
{
  "model": "kling-4.0",
  "input": {
    "prompt": "A short film in three shots. The woman from the first picture cycles through the city from the second picture at dawn, stops at the cafe, and orders a coffee in the cup from the third picture. Same face and jacket in every shot. Street sounds, bicycle bell, cafe chatter.",
    "image_urls": [
      "https://example.com/character.jpg",
      "https://example.com/city.jpg",
      "https://example.com/cup.jpg"
    ],
    "resolution": "1080p",
    "aspect_ratio": "16:9",
    "duration": 30
  },
  "max_cost_usd": 10
}

首帧和尾帧

将开场图片作为 image_url 传入,结尾图片作为 end_image_url 传入。一段 5 秒、1080p 的转场价格为 $1.00。

请求体
{
  "model": "kling-4.0",
  "input": {
    "prompt": "The sneaker box opens and the shoe rises out of it, turning slowly under a soft spotlight. A low whoosh, then a click.",
    "image_url": "https://example.com/box-closed.jpg",
    "end_image_url": "https://example.com/sneaker-reveal.jpg",
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "duration": 5
  },
  "max_cost_usd": 2
}

Kling 4.0 提示词技巧

  • 把长视频按镜头来写。20 到 30 秒的视频,请按顺序列出镜头(“首先”“然后”“最后”),每个镜头只写一个动作。
  • 给每张参考图片命名。说明哪张图片是角色,哪张是场景,哪张是产品。
  • 对白放在引号里。按顺序写明谁在说话,台词保持简短。
  • 描述声音。每段视频都有声音,所以请告诉模型声音应该是什么样:雨声、人群声,或是单人说话。
  • 草稿用短时长和 720p。先用 5 秒的 720p 版本调好画面效果,再渲染长视频或 1080p 版本。

路由与回退

Kling 4.0 目前在 Revana 上有三条线路。路由器会先把每个任务发往最便宜的线路;如果失败或超时,任务会自动转到下一条线路。无论由哪条线路处理,你都按标价付费,且只有成功的线路才会计费。

回退并不等于保证可用。如果所有线路都失败,任务会以 failed 和一条错误信息结束,且不收费;请在你的应用中处理这种情况。

在模型页面将 Kling 4.0 与其他模型对比,在文档中查看字段参考,或获取 API 密钥。

常见问题

Kling 4.0 API 多少钱?

2026 年 11 月,Kling 4.0 在 720p 下每秒 $0.135,1080p 下每秒 $0.20,均含声音。一段 10 秒的 720p 视频为 $1.35。

Kling 4.0 的视频最长能有多长?

每次请求 3 到 30 秒。用 duration 字段设置时长。

Kling 4.0 能生成 9:16 竖版视频吗?

可以。将 aspect_ratio 设为 9:16。它也支持 16:9、1:1 和 21:9。

Kling 4.0 每次都会生成声音吗?

是的。每段视频都带有立体声,每秒价格已包含声音。请在提示词中描述你想要的对白、音效和环境声。

Kling 4.0 支持多少张参考图片?

最多十张,通过 image_urls 传入。可用它们在不同镜头中保持人物、产品或场景一致。

我可以在 Claude 或 ChatGPT 中调用 Kling 4.0 吗?

可以。Revana 提供 MCP 服务器:在 Claude 或 ChatGPT 中连接后,直接用自然语言请求生成 Kling 4.0 视频即可。它会在生成任何内容之前先报价。

一个密钥调用 Kling 4.0

Kling、Veo、Seedance、Wan 以及目录中的其他模型使用同一个密钥和同一种请求格式。预付额度 $10 起。