Kling 2.6 API
快手 Kling 2.6:文字轉影片與圖片轉影片,動態流暢、畫面具電影感、提示詞遵循準確,提供 Standard 與 Pro 兩個等級,Pro 具備原生音訊,另有可從參考影片轉移動作的 motion-control 端點,以及用於自訂聲音的 create-voice 端點。
本 Kling 2.6 API 指南介紹 WaveSpeedAI 上已上線的 Standard 與 Pro 端點:文字轉影片、可選尾幀圖片的圖片轉影片、以參考影片進行的動作控制,以及 create-voice。下方的 Playground、範例、價格與 API 範例程式碼皆使用已上線的 Kling 2.6 端點。
概覽
關於 Kling 2.6 API
Kling 2.6 的功能、它在 Kuaishou 模型陣容中的定位,以及團隊選用它的原因。
Kling 2.6 是來自 Kuaishou 的影片生成模型,可透過 WaveSpeedAI REST API 使用。快手 Kling 2.6:文字轉影片與圖片轉影片,動態流暢、畫面具電影感、提示詞遵循準確,提供 Standard 與 Pro 兩個等級,Pro 具備原生音訊,另有可從參考影片轉移動作的 motion-control 端點,以及用於自訂聲音的 create-voice 端點。
本 Kling 2.6 API 指南介紹 WaveSpeedAI 上已上線的 Standard 與 Pro 端點:文字轉影片、可選尾幀圖片的圖片轉影片、以參考影片進行的動作控制,以及 create-voice。下方的 Playground、範例、價格與 API 範例程式碼皆使用已上線的 Kling 2.6 端點。
WaveSpeedAI 上的 Kling 2.6 系列提供 7 個 REST 端點,涵蓋 Voice-Cloning, Text-To-Video, Image-To-Video, Motion-Control 等工作流程。每個變體都有各自的定價、參數選項與範例輸出 — 請挑選符合您輸入模態與生產限制的版本,或使用同一組 API 金鑰呼叫多個變體,組合成多步驟的處理流程。
使用您呼叫其他 1,000+ 個 WaveSpeedAI AI 模型時相同的 API 金鑰、帳單帳戶與速率限制額度來執行 Kling 2.6。無需另外設定供應商、無需各家 SDK、無需處理各家不同的速率限制 — 一次整合,涵蓋從文字轉圖片、文字轉影片,到音訊合成、3D 生成、放大與編輯的所有功能。
規格
Kling 2.6 API 功能與上線狀態
開發者在選擇 API 前會查詢的模型專屬資訊:可用性、預期輸出長度、參考素材支援,以及目前可用的替代方案。
可用性
已上線
Kling 2.6 端點已在 WaveSpeedAI 目錄上線:Standard 與 Pro 的文字轉影片、圖片轉影片與動作控制,以及 create-voice,全部使用同一套 REST 預測流程。
等級
Standard 與 Pro
Standard 是高性價比等級;Pro 是追求畫質的頂級選擇。兩者的提示詞格式相同。
時長
5 或 10 秒
文字轉影片與圖片轉影片生成 5 或 10 秒的影片。
長寬比
1:1、9:16、16:9
文字轉影片支援方形、直式或橫式畫面;圖片轉影片以輸入圖片為準,圖片每邊至少 300 px,長寬比需介於 1:2.5 到 2.5:1 之間。
原生音訊
sound 開關
Pro 端點會同步生成聲音;可透過 sound 參數依每次請求開啟或關閉。
動作控制
3 到 30 秒的參考影片
motion-control 端點以參考影片的動作驅動角色圖片(角色跟隨影片時最長 30 秒),並可保留原始聲音。
端點
所有 Kling 2.6 API 端點
WaveSpeedAI 目前提供 7 個 Kling 2.6 端點 — 請選擇符合您工作流程的變體。
Kling v2.6 Create Voice
Kling 2.6 Create Voice is a model can generate custom voice. Upload an audio file to create a custom voice that can be used with the voice control feature in V2.6 video generation. The audio should be clean, noise-free, with a single voice, and duration between 5-30 seconds. Built for stable production use with a ready-to-use REST API, no cold starts, and predictable pricing.
/filters:quality(82)/media/images/20260408112909_ae99vm7x.webp)
Kling v2.6 Std Text To Video
Kling 2.6 Standard offers cost-effective text-to-video generation with smooth motion, cinematic visuals, and strong prompt adherence. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408113130_tkz00ayc.webp)
Kling v2.6 Pro Text To Video
Kling 2.6 Pro delivers top-tier text-to-video generation with smooth motion, cinematic visuals, strong prompt adherence, and native audio for ready-to-share clips. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
/filters:quality(82)/media/images/20260408112904_4flp22zf.webp)
Kling v2.6 Std Image To Video
Kling 2.6 Standard offers cost-effective image-to-video generation with smooth motion, cinematic visuals, and accurate prompt adherence. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408112906_umpco7iz.webp)
Kling v2.6 Std Motion Control
Kling 2.6 Standard Motion Control transfers motion from reference videos to animate still images. Upload a character image and a motion clip (dance, action, gesture), and the model extracts the movement to generate smooth, realistic video. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
/filters:quality(82)/media/images/20260408113125_76v9lo8m.webp)
Kling v2.6 Pro Motion Control
Kling 2.6 Pro Motion Control turns reference motion clips (dance, action, gesture) into smooth, realistic animations. Upload a character image (or source video) and a motion video; the model transfers the movement while preserving identity and temporal consistency. Ready-to-use REST API with fast response, native-audio option, no cold starts, and affordable pricing.
/filters:quality(82)/media/images/20260408113123_ifecsa8g.webp)
Kling v2.6 Pro Image To Video
Kling 2.6 Pro delivers top-tier image-to-video generation with smooth motion, cinematic visuals, accurate prompt adherence, and native audio for ready-to-share clips. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
範例
看看 Kling 2.6 的實際效果
由 Kling 2.6 API 生成的真實輸出。將滑鼠移到任一影片上即可預覽,點擊可開啟完整尺寸檢視器。
使用方式
如何使用 Kling 2.6 API
從註冊到完成生成,只要四個步驟。完整的 Python、Node.js 與 cURL 範例請見下方的 API 區段。
- 01
取得 API 金鑰
註冊 WaveSpeedAI 帳號,並從控制台複製您的 API 金鑰。新帳號會獲贈免費入門點數 — 足以在開始計費前執行數十次 Playground。
- 02
提交 prediction
將您的輸入以 JSON 格式 POST 到 https://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video。端點會立即回傳 prediction id — 生成是非同步進行的,因此推論期間您不需要保持連線。
- 03
輪詢完成狀態
GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result。狀態為 completed 時回傳輸出;狀態為 failed、cancelled、timeout 或 deleted 時停止並回報錯誤;其他狀態則持續輪詢。
- 04
讀取輸出網址
當狀態為 "completed" 時,從 data.outputs[0] 讀取網址。該網址指向 WaveSpeedAI CDN 上您生成的媒體 — 依您呼叫的 Kling 2.6 變體,可能是圖片、影片、音訊或 3D 檔案。
應用情境
您可以用 Kling 2.6 打造什麼
開發者與創作者使用 Kling 2.6 API 的常見工作流程。
以 Standard 用較低成本進行文字轉影片
kwaivgi/kling-v2.6-std/text-to-video 是高性價比的做法,可將提示詞轉為 5 或 10 秒的影片,動態流暢且提示詞遵循度高。
Pro 等級的頂級影片與原生音訊
kwaivgi/kling-v2.6-pro/text-to-video 生成具電影感的影片,聲音與畫面一同生成,不需另外處理音訊即可直接分享。
讓靜態圖動起來,還可指定尾幀圖片
kwaivgi/kling-v2.6-pro/image-to-video 及其 Standard 版本可依提示詞讓靜態圖動起來,Pro 端點還接受尾幀圖片,讓影片停在您選定的畫面。
以參考影片驅動角色
kwaivgi/kling-v2.6-std/motion-control 及其 Pro 版本會將參考影片中的動作(舞蹈、動作戲、手勢)轉移到角色圖片上。
在影片中使用您自己的聲音
kwaivgi/kling-v2.6/create-voice 可用一段乾淨的 5 到 30 秒錄音建立自訂聲音,image-to-video 可透過 voice_list 引用最多兩個聲音。
技巧
Kling 2.6 提示詞技巧
讓 Kling 2.6 產出更好結果的實用建議 — 整理自在實際生產流程中,影片模型通用的有效做法。
- 01
先用 Standard,再用 Pro 定稿
先在成本較低的 Standard 等級探索提示詞,再將滿意的結果用 Pro 重新生成,取得最終畫質與原生音訊。
- 02
打算自己配音訊時關閉 sound
sound 參數會在 Pro 上讓音訊與影片一同生成。如果影片之後要另配音樂或旁白,請關閉它。
- 03
為圖片轉影片提供尾幀圖片,精準落點
當最後一幀很重要時,在首幀之外再傳送一張尾幀圖片,讓動作落在您選定的構圖上。
- 04
讓動作影片與角色相符
使用動作控制時,參考影片中的表演者應完整入鏡,角色圖片應呈現全身,然後選擇角色跟隨圖片還是跟隨影片。
定價
Kling 2.6 API 定價
依輸出計費。最終費用會依您在各變體 Playground 中設定的參數(解析度、時長、輸出數量、參考素材)而調整。
| 端點 | 類型 | 起始價格 |
|---|---|---|
| kwaivgi/ | voice-cloning | $0.035 |
| kwaivgi/ | text-to-video | $0.042 |
| kwaivgi/ | text-to-video | $0.14 |
| kwaivgi/ | image-to-video | $0.042 |
| kwaivgi/ | motion-control | $0.07 |
| kwaivgi/ | motion-control | $0.112 |
| kwaivgi/ | image-to-video | $0.07 |
API
呼叫 Kling 2.6 API
請到 wavespeed.ai/accesskey 註冊取得 API 金鑰,然後透過 REST 提交 prediction。Playground 會為任何輸入組合產生可直接貼上的範例。
POSThttps://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"cfg_scale": 0.5,
"sound": true,
"aspect_ratio": "1:1",
"duration": 5
}')
TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
-H "Authorization: Bearer $WAVESPEED_API_KEY")
RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
case "$STATUS" in
completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneconst submitUrl = "https://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');
async function requestJson(url, options = {}) {
const response = await fetch(url, options);
if (!response.ok) throw new Error(await response.text());
return response.json();
}
// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"cfg_scale": 0.5,
"sound": true,
"aspect_ratio": "1:1",
"duration": 5
}),
});
const task = body.data ?? body;
const resultUrl = `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;
// 2. Poll until the prediction finishes.
while (true) {
const resultBody = await requestJson(resultUrl, {
headers: { "Authorization": `Bearer ${apiKey}` },
});
const result = resultBody.data ?? resultBody;
if (result.status === "completed") {
console.log(result.outputs);
break;
}
if (["failed", "cancelled", "timeout", "deleted"].includes(result.status)) throw new Error(JSON.stringify(result));
await new Promise(resolve => setTimeout(resolve, 2000));
}import json
import os
import time
from urllib.request import Request, urlopen
api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"cfg_scale": 0.5,
"sound": True,
"aspect_ratio": "1:1",
"duration": 5
}
def request_json(url, data=None):
request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
with urlopen(request) as response:
return json.load(response)
# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video", json.dumps(payload).encode())
task = body.get("data", body)
result_url = f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"
# 2. Poll until the prediction finishes.
while True:
result_body = request_json(result_url)
result = result_body.get("data", result_body)
status = result.get("status")
if status == "completed":
print(result.get("outputs", []))
break
if status in {"failed", "cancelled", "timeout", "deleted"}:
raise RuntimeError(result)
time.sleep(2)比較
Kling 2.6 與其他選擇比較
在 WaveSpeedAI 上,何時該選擇 Kling 2.6 而非類似的模型。
Kling 2.6 vs Kling 3.0
Kling 3.0 是較新的世代,有 Standard、Pro 與 4K 等級以及動作控制端點。Kling 2.6 仍是 5 秒與 10 秒 Standard、Pro 影片以及其專屬 create-voice 端點的選擇。
Kling 2.6 vs Wan 2.5
Wan 2.5 可生成 480p 到 1080p 的同步音訊影片,同系列還有 video-extend、image-edit 與 text-to-image。Kling 2.6 則多了動作控制端點與自訂聲音。
Kling 2.6 vs Veo 3.1
Veo 3.1 可在 Standard、Fast 與 Lite 等級生成具同步原生音訊的 1080p 影片。Kling 2.6 提供 Standard 與 Pro 等級,並具備動作控制與 create-voice。
常見問題
Kling 2.6 API — 常見問題
定價、授權、整合 — 關於在 WaveSpeedAI 上執行 Kling 2.6 的常見問題。
Kling 2.6 Standard 與 Pro 有什麼差別?
Standard 是高性價比等級,Pro 是頂級選擇。兩者都支援文字轉影片、圖片轉影片與動作控制;Pro 另外提供與影片一同生成的原生音訊。
Kling 2.6 會生成音訊嗎?
Pro 端點會:sound 參數讓音訊與影片一同生成,也可以關閉。動作控制可保留參考影片的原始聲音。
Kling 2.6 的影片最長多久?
文字轉影片與圖片轉影片生成 5 或 10 秒的影片。動作控制的時長跟隨參考影片,為 3 到 30 秒。
可以為 Kling 2.6 建立自訂聲音嗎?
可以。將一段乾淨的 5 到 30 秒單人聲音錄音傳送到 create-voice 端點,再於 image-to-video 請求的 voice_list 中引用回傳的聲音 id(最多兩個聲音)。
什麼是 Kling 2.6 API?
Kling 2.6 是 Kuaishou 的影片生成模型,在 WaveSpeedAI 上以 REST API 提供。快手 Kling 2.6:文字轉影片與圖片轉影片,動態流暢、畫面具電影感、提示詞遵循準確,提供 Standard 與 Pro 兩個等級,Pro 具備原生音訊,另有可從參考影片轉移動作的 motion-control 端點,以及用於自訂聲音的 create-voice 端點。您可以透過程式呼叫,也可以在上方連結的 Playground 試用。
如何呼叫 Kling 2.6 API?
註冊 WaveSpeedAI 帳號,從 /accesskey 複製您的 API 金鑰,然後將您的輸入以 JSON 格式 POST 到 https://api.wavespeed.ai/api/v3/kwaivgi/kling-v2.6-pro/text-to-video。端點會回傳 prediction id。請從約每 2 秒輪詢一次結果端點開始,長時間任務可拉長間隔,並在任何終止狀態時停止。上方提供適用於生產環境的 Python / Node.js / cURL 範例。
Kling 2.6 API 的費用是多少?
Kling 2.6 每次執行 $0.035 起。實際費用會依您設定的參數(解析度、時長、輸出數量、參考素材)而調整。Playground 中「生成」按鈕旁的即時費用預覽會顯示您目前輸入的確切價格。
有哪些 Kling 2.6 變體可用?
WaveSpeedAI 提供 7 個已上線的 Kling 2.6 端點:kwaivgi/kling-v2.6/create-voice, kwaivgi/kling-v2.6-std/text-to-video, kwaivgi/kling-v2.6-pro/text-to-video, kwaivgi/kling-v2.6-std/image-to-video, kwaivgi/kling-v2.6-std/motion-control, kwaivgi/kling-v2.6-pro/motion-control, kwaivgi/kling-v2.6-pro/image-to-video。每個變體都有各自的 Playground 頁面與定價。
Kling 2.6 的輸出可以商用嗎?
商業使用權依 Kuaishou 的模型授權而定。多數 Kuaishou 模型允許商用輸出;請參閱各模型 Playground 頁面中的授權摘要,以及 WaveSpeedAI 的服務條款了解平台層級的條件。
為什麼要在 WaveSpeedAI 上使用 Kling 2.6,而不是直接使用?
一組 API 金鑰、一個帳單帳戶,即可使用 Kling 2.6 以及來自其他供應商的 1,000+ 個 AI 模型。無需設定各家 SDK、無需處理各自獨立的速率限制、無需為每個供應商重寫整合程式碼。價格通常與 Kuaishou 的直接 API 相當或更低。
提供者
關於 Kuaishou
Kling 2.6 背後的團隊,以及 Kuaishou 在 WaveSpeedAI 上的完整模型陣容。
快手是中國大型短影音平台,也是 Kling 影片生成模型系列背後的團隊。Kling 3.0 提供 Standard、Pro 與 4K 等級,並具備原生音訊合成(每個版本皆有 sound 參數),另有專用的動作控制端點,可將參考影片中的動作轉移,讓靜態角色圖片動起來。
在 WaveSpeedAI 上開始使用 Kling 2.6 打造應用
註冊即贈免費入門點數。一組 API 金鑰,涵蓋來自 Kuaishou 與所有其他供應商的 1,000+ 個 AI 模型。