Kuaishou · 影片

Hermes Agent x Kling

Kling 是快手的旗艦影片模型,支援 4K、AI 虛擬人像及多模態音訊。透過 RunAPI,所有 Kling 變體共用統一的 API 存取及計費。

18 variants 由 $0.05 / 秒 可商用

Prerequisite: npx runapi mcp install

Prompt

Prompt 模型

任務合適時使用 kling-3.0:原生 4K,最長 15 秒,多鏡頭分鏡。

You have access to RunAPI task tools for Kling.

Available Kling models:
- kling-3.0: 原生 4K,最長 15 秒,多鏡頭分鏡
  endpoints: /api/v1/kling/text_to_video, /api/v1/kling/motion_control
  request fields: model, prompt, duration_seconds, aspect_ratio, output_resolution
- kling-ai-avatar-pro: 1080p 增強對嘴 + 面部微表情
  endpoints: /api/v1/kling/ai_avatar
  request fields: model, source_image_url, source_audio_url, prompt
- kling-ai-avatar-standard: 720p 基本對嘴
  endpoints: /api/v1/kling/ai_avatar
  request fields: model, source_image_url, source_audio_url, prompt
- kling-ai-avatar-v1-pro: V1 Pro 虛擬人像生成,音訊驅動對嘴
  endpoints: /api/v1/kling/ai_avatar
  request fields: model, source_image_url, source_audio_url, prompt
- kling-o1: 支援圖片與影片參考的全能影片生成
  endpoints: /api/v1/kling/image_to_video, /api/v1/kling/text_to_video
  request fields: model, prompt, duration_seconds, aspect_ratio
- kling-v1-avatar-standard: V1 Standard 虛擬人像生成,高效製作說話人像
  endpoints: /api/v1/kling/ai_avatar
  request fields: model, source_image_url, source_audio_url, prompt
- kling-v2.1-master-image-to-video: 高級 V2.1 圖片生成影片,渲染更出色
  endpoints: /api/v1/kling/image_to_video
  request fields: model, prompt, first_frame_image_url
- kling-v2.1-master-text-to-video: 高級 V2.1 文字生成影片,渲染更出色
  endpoints: /api/v1/kling/text_to_video
  request fields: model, prompt, duration_seconds, aspect_ratio
- kling-v2.1-pro: 圖片生成影片,可選最後一幀控制
  endpoints: /api/v1/kling/image_to_video
  request fields: model, prompt, first_frame_image_url
- kling-v2.1-standard: 較低成本的 V2.1 圖片動畫,適合快速草稿
  endpoints: /api/v1/kling/image_to_video
  request fields: model, prompt, first_frame_image_url
- kling-v2.5-turbo-image-to-video-pro: 1080p 以圖片為基礎;輸入圖片作為首幀
  endpoints: /api/v1/kling/extend_video, /api/v1/kling/image_to_video
  request fields: model, prompt, first_frame_image_url
- kling-v2.5-turbo-text-to-video-pro: 1080p,最長 10 秒,30 fps;快速文字生成影片草稿
  endpoints: /api/v1/kling/text_to_video, /api/v1/kling/extend_video
  request fields: model, prompt, duration_seconds, aspect_ratio
- kling-v2.6: 文生及圖生影片一體化生成,支援同步原生音訊
  endpoints: /api/v1/kling/text_to_video, /api/v1/kling/image_to_video, /api/v1/kling/motion_control
  request fields: model, prompt, duration_seconds, aspect_ratio
- kling-v3-omni: Kling v3 Omni 全方位影片生成,原生 4K、影音同步,支援靈活的 3–15 秒片長。
  endpoints: /api/v1/kling/image_to_video, /api/v1/kling/text_to_video
  request fields: model, prompt, duration_seconds, aspect_ratio, output_resolution
- kling-v3-omni-edit: 使用可選參考圖編輯來源影片
  endpoints: /api/v1/kling/edit_video
  request fields: model, prompt, source_video_url, reference_image_urls, duration_seconds, output_resolution, aspect_ratio, enable_sound
- kling-v3-omni-reference: 以參考圖像或來源影片引導的可控影片生成
  endpoints: /api/v1/kling/text_to_video, /api/v1/kling/edit_video
  request fields: model, prompt, duration_seconds, aspect_ratio, output_resolution, reference_image_urls
- kling-v3-turbo-image-to-video: 以一張首幀圖片生成 3-15 秒圖片生成影片片段
  endpoints: /api/v1/kling/image_to_video
  request fields: model, prompt, first_frame_image_url
- kling-v3-turbo-text-to-video: 3-15 秒文字生成影片片段,720p 或 1080p
  endpoints: /api/v1/kling/text_to_video
  request fields: model, prompt, duration_seconds, aspect_ratio, output_resolution

Use the model ID and endpoint that match the user's request.
Example prompt: 製作一段 10 秒影片:一個人走過秋天的森林,樹葉飄落,電影感橫移鏡頭。
/api/v1/kling/text_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/text_to_video,並儲存回傳的 Task ID。
GET /api/v1/kling/text_to_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/kling/motion_control: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/motion_control,並儲存回傳的 Task ID。
GET /api/v1/kling/motion_control/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/kling/ai_avatar: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/ai_avatar,並儲存回傳的 Task ID。
GET /api/v1/kling/ai_avatar/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/kling/image_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/image_to_video,並儲存回傳的 Task ID。
GET /api/v1/kling/image_to_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/kling/extend_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/extend_video,並儲存回傳的 Task ID。
GET /api/v1/kling/extend_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/kling/edit_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/kling/edit_video,並儲存回傳的 Task ID。
GET /api/v1/kling/edit_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。

公開版本與端點

模型 ID 端點 起始價格 模型目錄
kling-3.0
/api/v1/kling/text_to_video /api/v1/kling/motion_control
$0.43 / 秒 模型詳情
kling-ai-avatar-pro
/api/v1/kling/ai_avatar
$0.16 / 秒 模型詳情
kling-ai-avatar-standard
/api/v1/kling/ai_avatar
$0.08 / 秒 模型詳情
kling-ai-avatar-v1-pro
/api/v1/kling/ai_avatar
$0.16 / 秒 模型詳情
kling-o1
/api/v1/kling/image_to_video /api/v1/kling/text_to_video
$0.08 / 秒 模型詳情
kling-v1-avatar-standard
/api/v1/kling/ai_avatar
$0.08 / 秒 模型詳情
kling-v2.1-master-image-to-video
/api/v1/kling/image_to_video
$0.61 / 秒 模型詳情
kling-v2.1-master-text-to-video
/api/v1/kling/text_to_video
$0.61 / 秒 模型詳情
kling-v2.1-pro
/api/v1/kling/image_to_video
$0.10 / 秒 模型詳情
kling-v2.1-standard
/api/v1/kling/image_to_video
$0.05 / 秒 模型詳情
kling-v2.5-turbo-image-to-video-pro
/api/v1/kling/extend_video /api/v1/kling/image_to_video
$0.16 / 秒 模型詳情
kling-v2.5-turbo-text-to-video-pro
/api/v1/kling/text_to_video /api/v1/kling/extend_video
$0.16 / 秒 模型詳情
kling-v2.6
/api/v1/kling/text_to_video /api/v1/kling/image_to_video /api/v1/kling/motion_control
$0.29 / 秒 模型詳情
kling-v3-omni
/api/v1/kling/image_to_video /api/v1/kling/text_to_video
$0.91 / 秒 模型詳情
kling-v3-omni-edit
/api/v1/kling/edit_video
$0.91 / 秒 模型詳情
kling-v3-omni-reference
/api/v1/kling/text_to_video /api/v1/kling/edit_video
$0.91 / 秒 模型詳情
kling-v3-turbo-image-to-video
/api/v1/kling/image_to_video
$0.18 / 秒 模型詳情
kling-v3-turbo-text-to-video
/api/v1/kling/text_to_video
$0.18 / 秒 模型詳情

驗證

輪詢,直到 Task 進入終態

選擇 <model-id> 後產生驗證命令。

設定

指南端點: <endpoint>

選擇 <model-id> 後,依端點的公開輸入契約產生請求。
使用流程

三步開始使用

  1. 選擇模型 ID

    選擇公開模型 ID,並查看其端點與目前起始價格。

  2. 設定 RunAPI

    呼叫端點前設定 RUNAPI_API_KEY。

  3. 驗證結果

    對非同步端點輪詢同一路徑,直到 Task 進入終態。

使用 Hermes Agent + Kling 可以建立甚麼

  • 較長的敘事內容

    把開場鏡頭和角色片段銜接起來,建立場景長度的素材,多個片段之間畫面風格保持一致。

  • 旅遊與自然內容

    生成環境逼真的旅遊空鏡和自然素材,包括水面、霧氣和氛圍光。

  • 商品示範影片

    把商品圖做成帶運鏡和自然光線轉場的短影片,用於電商商品頁和社交廣告。

為甚麼透過 RunAPI + Hermes Agent 使用 Kling

  • 18 個變體,一個 API 金鑰

    透過一個 RunAPI 連線選擇可用的模型變體,無需更改現有整合。

  • 清晰的用量價格

    發送請求前查看目錄中的目前價格,無需訂閱或最低消費。

  • 自動化工作流程

    透過一致的工作流程提交工作、查詢狀態並收集非同步結果,無需編寫手動輪詢程式碼。

Hermes Agent + Kling 常見問題

Hermes Agent 使用 Kling 影片需要另外的供應商嗎?

不需要。如果已在 Hermes Agent 中為聊天或圖片設定 RunAPI,同一個供應商和 API 金鑰也能用於 Kling 影片端點。

Kling 生成失敗會怎樣?

RunAPI 只對成功完成的生成計費。任務失敗或逾時時,預扣的金額會退回你的餘額。

Hermes Agent 能把 Kling 影片和音訊模型結合使用嗎?

可以。Hermes Agent 可以先用 Kling 生成片段,再透過 RunAPI 調用語音或音樂模型,在同一個工作流程中加上旁白或配樂。

應該使用哪個模型 ID?

從版本表選擇公開模型 ID。每個 ID 可用的端點均列於相應資料列。

本指南會設定聊天模型嗎?

不會。此 Model Line 使用頁面所示的端點流程,不會被描述為 Agent 聊天模型。

透過 Hermes Agent 開始使用 Kling

正在與團隊一起建立?

我們可以協助企業設定、整合和技術問題。

聯絡我們