It looks like you may prefer a different language. Switch anytime.

Video Kuaishou

Kling API

透過 RunAPI 使用 Kling API,包含 model skill、統一驗證與按用量計費。

runapi.ai
curl -X POST https://runapi.ai/api/v1/kling/motion_control \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-v3-turbo-text-to-video",
  "video_url": "https://cdn.runapi.ai/public/samples/video.mp4",
  "prompt": "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
}'
import { KlingClient } from "@runapi.ai/kling";

const client = new KlingClient();
const result = await client.motionControl.run({
    model: "kling-v3-turbo-text-to-video",
    video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
    prompt: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Kling\KlingClient;

$client = new KlingClient();
$result = $client->motionControl->run([
        'model' => 'kling-v3-turbo-text-to-video',
        'video_url' => 'https://cdn.runapi.ai/public/samples/video.mp4',
        'prompt' => 'Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.',
]);
require "runapi/kling"

client = RunApi::Kling::Client.new
result = client.motion_control.run(
    model: "kling-v3-turbo-text-to-video",
    video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
    prompt: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
)
npx skills add runapi-ai/kling -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/kling v1
概覽

關於 Kling

Kling 是 Kuaishou 的旗艦影片生成系列,專為鏡頭級控制而構建:鏡頭運動、主體動態,以及片段中一致的物理效果。它同時支援純文字提示詞與圖片驅動動畫,因此常被用於產品展示、短影音廣告及視覺預覽。

每個版本在新版本發布後仍持續提供,因此您可以鎖定版本以確保可重現性,或在品質比成本更重要時升級版本。v2.1 在動態連貫性與提示詞遵循方面表現最佳;v1.6 及以下版本仍適合大批量草稿製作。

提供商
Kuaishou
模態
Video

可用版本

版本計費方式定價
kling-3.0 second $0.430 / second 查看 →
kling-ai-avatar-pro second $0.160 / second 查看 →
kling-ai-avatar-standard second $0.080 / second 查看 →
kling-ai-avatar-v1-pro second $0.160 / second 查看 →
kling-o1 second $0.080 / second 查看 →
kling-v1-avatar-standard second $0.080 / second 查看 →
kling-v2.1-master-image-to-video second $0.610 / second 查看 →
kling-v2.1-master-text-to-video second $0.610 / second 查看 →
kling-v2.1-pro second $0.100 / second 查看 →
kling-v2.1-standard second $0.050 / second 查看 →
kling-v2.5-turbo-image-to-video-pro call $0.160 / call 查看 →
kling-v2.5-turbo-text-to-video-pro second $0.160 / second 查看 →
kling-v2.6 second $0.310 / second 查看 →
kling-v3-omni second $0.910 / second 查看 →
kling-v3-omni-edit second $0.910 / second 查看 →
kling-v3-omni-reference second $0.910 / second 查看 →
kling-v3-turbo-image-to-video second $0.180 / second 查看 →
kling-v3-turbo-text-to-video second $0.180 / second 查看 →

Kling 定價

Endpoint解析度時長價格
text_to_video 720p, 1080p 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s, 11s, 12s, 13s, 14s, 15s $0.18-$0.22 / second

顯示 kling-v3-turbo-text-to-video 的定價。較早版本依各自的每秒費率計費。

Agent 整合

從 Agent 執行 Kling

運作方式

Kling 快速入門

  1. 01

    建立 API Key

    註冊並從儀表板產生 API Key。

  2. 02

    選擇版本

    選擇 kling-v2.1 以獲得最佳品質,或選擇較早版本以降低成本。

  3. 03

    發送請求

    攜帶提示詞、時長及畫面比例,向 /api/v1/kling/text_to_video 發送 POST 請求。

  4. 04

    取得影片

    輪詢任務狀態或設定 webhook,任務完成後下載 MP4 檔案。

背景資訊

Kling 在 RunAPI 上的說明

Kuaishou 自 2024 年起以快速節奏推出影片模型,Kling 與 Veo、Seedance 及 Runway 並列,是少數能在生產規模下穩定輸出 1080p 動態影片的系列之一。在 RunAPI 上,它使用與所有其他影片模型相同的任務 API,因此切換模型系列只需修改一行程式碼。

提供商
Kuaishou
所有 Kuaishou 模型 →
模態
Video
影片 API →

為何透過 RunAPI 使用 Kling

一個 Key 涵蓋所有版本

使用同一個 Key、同一個 endpoint 及單一帳單,呼叫 v1.0 到 v2.1 以及所有其他影片模型。

具競爭力的定價

將整合用量所節省的費用回饋給您。無需訂閱、無最低消費,也不按使用者人數收費。

自動備援 + Webhook

提供商發生錯誤時請求自動重新路由,已完成的任務可推送至您的 webhook,無需輪詢。

Kling 常見問題

Kling 能生成什麼?

文字轉影片與圖片轉影片片段,最長 10 秒,解析度 720p 或 1080p,支援鏡頭與動態控制。

生成需要多長時間?

5 秒片段通常需要 60–120 秒;10 秒片段約需 2–3 分鐘。

各版本有何差異?

v2.1 的動態連貫性與提示詞遵循能力最強。較早版本更便宜且更快,且將無限期保持可用。

我可以為自己的圖片製作動畫嗎?

可以。使用 image_to_video 任務類型,並提供 image_url 及可選的動態提示詞。

影片如何計費?

依輸出影片秒數計費。kling-v2.1 上的 5 秒 1080p 片段費用為 $2.15。僅在成功完成時收費。

您是否會儲存我的提示詞或輸出內容?

輸出內容儲存 7 天供下載,之後將被刪除。提示詞不會用於訓練。

相似影片模型

開始使用 Kling 生成影片

與團隊共同開發?

我們提供企業設置、整合及技術問題的協助。

聯絡我們