Kling 4.0 API:料金、30秒クリップ、動作するコード
Kling 4.0はKuaishouの最新動画モデルです。720pまたは1080pで最大30秒、常にステレオ音声付きのクリップを、テキスト、最初と最後のフレーム、最大10枚の参照画像から生成します。このガイドでは、できること、1秒・1クリップあたりの料金、そのまま実行できるリクエストを紹介します。
Kling 4.0の得意なこと
Kling 4.0は2026年10月末にRevanaに加わりました。Kling 3.0と比べると、最長クリップが2倍になり、メインモデルで参照画像と動画から動画への変換が使え、フレームの形も選べます。
- 1リクエストで最大30秒。クリップをつなぎ合わせなくても、複数のショットを含む短いシーンを作れる長さです。
- どのショットでも同じキャラクター。人物、商品、場所の参照画像を最大10枚渡すと、モデルが一貫性を保ちます。
- すべてのクリップに音声。セリフ、効果音、環境音が映像と同時にステレオで生成されます。無音の料金設定はありません。
- 縦型、正方形、シネマ。16:9、9:16、1:1、21:9に対応し、TikTokやReels向けのクリップも適切な形で出力されます。
- 最初と最後のフレーム。ショットの開始と終了を固定でき、商品の見せ場やトランジションに向いています。
現行のすべての動画モデルと同様に、画面上の正確な文字は安定しないため、タイトルやキャプションは編集で追加してください。
入力と制限
| オプション | Kling 4.0 |
|---|---|
| モデルID | kling-4.0 |
| タスク | テキストから動画、画像から動画、最初と最後のフレーム、参照画像、動画から動画 |
| 解像度 | 720pと1080p |
| 長さ | 3〜30秒 |
| アスペクト比 | 16:9, 9:16, 1:1 and 21:9 |
| 参照画像 | 最大10枚、 image_urls |
| 音声 | 常にオン、ステレオ |
| ルート | 3ルート |
モデルが対応していないフィールドや値は、課金前に422で拒否されます。最新のオプションはKling 4.0のモデルページで確認できます。
Kling 4.0の料金(2026年11月)
Kling 4.0は出力動画の秒数に応じて課金され、音声が含まれます。動画を入力に使うジョブ(動画から動画)は料金が低くなります。
| 解像度 | 1秒あたり | 5 s | 10 s | 30 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を選んでください。短い16:9のクリップではKling 3.0がやや低価格で、4KにはKling 3.0を使います。他の選択肢はSeedance 2.5 vs Veo 3.1 vs Kling 3.0をご覧ください。
縦型のKling 4.0動画を生成する
POST /v1/generationsを"model": "kling-4.0"とともに送信します。このリクエストは、セリフ付きの720p、9:16、10秒のクリップを依頼するもので、料金は$1.35です。
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"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に最大10枚の画像を渡し、プロンプトでそれぞれを指定します。この1080p、30秒のクリップは$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として渡します。1080p、5秒のトランジションは$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秒の場合は、「最初に」「次に」「最後に」のように、1ショットにつき1つの動作で順番に並べます。
- 参照画像にそれぞれ名前を付ける。どの画像がキャラクターで、どれが場所、どれが商品かを示します。
- セリフは引用符で囲む。誰が話すかを順番に示し、1行は短くします。
- 音を描写する。すべてのクリップに音声が付くので、雨、群衆、ひとりの声など、どんな音にするかを伝えます。
- 短く、720pでドラフトする。5秒、720pのテイクで見た目を固めてから、長尺版や1080p版をレンダリングします。
ルーティングとフォールバック
Kling 4.0には現在、Revana上に3つのルートがあります。ルーターは各ジョブをまず最も安いルートに送り、失敗またはタイムアウトした場合は自動的に次のルートへ移します。どのルートで処理されても掲載料金は同じで、成功したルートにのみ課金されます。
フォールバックは、稼働を保証するものではありません。すべてのルートが失敗した場合、ジョブはエラーを伴う failed で終了し、課金はありません。アプリ側で処理を用意しておいてください。
Kling 4.0とカタログ内の他のモデルはモデルページで比較できます。フィールドのリファレンスはドキュメントで確認し、APIキーを取得してください。
よくある質問
Kling 4.0 APIの料金はいくらですか?
2026年11月時点で、Kling 4.0は720pで1秒$0.135、1080pで$0.20です(音声込み)。720pの10秒クリップは$1.35です。
Kling 4.0で作れる動画の長さは?
1リクエストあたり3〜30秒です。長さはdurationフィールドで指定します。
Kling 4.0で縦型9:16の動画は作れますか?
はい。aspect_ratioを9:16に設定します。16:9、1:1、21:9にも対応しています。
Kling 4.0は常に音声を生成しますか?
はい。すべてのクリップにステレオ音声が付き、1秒あたりの料金に含まれています。ほしいセリフ、効果音、環境音はプロンプトに記述してください。
Kling 4.0は参照画像を何枚まで使えますか?
image_urlsで最大10枚まで渡せます。ショットをまたいで、キャラクター、商品、場所を一貫させるのに使います。
ClaudeやChatGPTからKling 4.0を呼び出せますか?
はい。RevanaにはMCPサーバーがあります。ClaudeまたはChatGPTで接続し、普通の言葉でKling 4.0の動画を依頼してください。生成前に料金を提示します。
1つのキーでKling 4.0を呼び出す
Kling、Veo、Seedance、Wan、そのほかのカタログのモデルで、同じキーとリクエスト形式を使えます。前払いクレジットは$10から。