Alibaba · 影片

Hermes Agent x Wan

Wan 是 Alibaba 的全方位影片與圖片模型套件,也是目前最完整的開放權重影片系列之一。透過 RunAPI,所有 Wan 版本共用一組金鑰與統一計費。

18 variants 起價 $0.05 / 次呼叫 可商用

Prerequisite: npx runapi mcp install

Prompt

Prompt 模型

任務合適時使用 wan-2.2-a14b-image-to-video-turbo:2.2 架構上以圖片為基準的影片生成。

You have access to RunAPI task tools for Wan.

Available Wan models:
- wan-2.2-a14b-image-to-video-turbo: 2.2 架構上以圖片為基準的影片生成
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.2-a14b-speech-to-video-turbo: 以音訊輸入驅動影片動作與對嘴
  endpoints: /api/v1/wan/speech_to_video
  request fields: model, source_image_url, source_audio_url, prompt
- wan-2.2-a14b-text-to-video-turbo: 開源 A14B MoE;基準品質
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.2-animate-move: 以 2.2 為基礎的專用動作動畫
  endpoints: /api/v1/wan/animate
  request fields: model, source_image_url, reference_video_url
- wan-2.2-animate-replace: 以 2.2 為基礎的主體替換動畫
  endpoints: /api/v1/wan/animate
  request fields: model, source_image_url, reference_video_url
- wan-2.5-image-to-video: 2.5 上以圖片為基準並附原生音訊
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url, duration_seconds, output_resolution
- wan-2.5-text-to-video: 原生音訊生成,動作真實感優於 2.2
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt, output_resolution
- wan-2.6-edit-video: 影片編輯,支援主體與鏡頭控制
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt
- wan-2.6-flash-edit-video: 針對速度最佳化的 2.6 影片編輯
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt, audio
- wan-2.6-flash-image-to-video: 針對速度最佳化的 2.6;成本更低、推論更快
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url, audio
- wan-2.6-image-to-video: 以圖片為基準,具備 2.6 的場景連續性
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.6-text-to-video: 改善場景連續性並支援複雜場景
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.7-edit-video: wan-2.7-edit-video
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt, source_video_url
- wan-2.7-image: 2.7 架構上的標準圖片生成
  endpoints: /api/v1/wan/text_to_image
  request fields: model, prompt
- wan-2.7-image-pro: 3×3 多角度圖片網格;最高品質的圖片輸出
  endpoints: /api/v1/wan/text_to_image
  request fields: model, prompt
- wan-2.7-image-to-video: 以圖片為基準,支援 2.7 多重參考
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.7-r2v: R2V 文字生成影片,支援角色外觀與聲音參考
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.7-text-to-video: 首尾影格控制;可同時使用 5 段參考影片
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt

Use the model ID and endpoint that match the user's request.
Example prompt: 生成一段 5 秒影片:一隻貓跳上書架,自然的室內光線,帶有手持攝影的感覺。
/api/v1/wan/image_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/image_to_video,並儲存回傳的 Task ID。
GET /api/v1/wan/image_to_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/wan/speech_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/speech_to_video,並儲存回傳的 Task ID。
GET /api/v1/wan/speech_to_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/wan/text_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/text_to_video,並儲存回傳的 Task ID。
GET /api/v1/wan/text_to_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/wan/animate: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/animate,並儲存回傳的 Task ID。
GET /api/v1/wan/animate/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/wan/edit_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/edit_video,並儲存回傳的 Task ID。
GET /api/v1/wan/edit_video/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。
/api/v1/wan/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/text_to_image,並儲存回傳的 Task ID。
GET /api/v1/wan/text_to_image/<task-id>,直到狀態為 completed 或 failed。
確認 completed 回應包含 API 參考中記載的端點專屬輸出。

公開版本與端點

模型 ID 端點 起始價格 模型目錄
wan-2.2-a14b-image-to-video-turbo
/api/v1/wan/image_to_video
$0.40 / 次呼叫 模型詳情
wan-2.2-a14b-speech-to-video-turbo
/api/v1/wan/speech_to_video
$0.24 / 秒 模型詳情
wan-2.2-a14b-text-to-video-turbo
/api/v1/wan/text_to_video
$0.40 / 次呼叫 模型詳情
wan-2.2-animate-move
/api/v1/wan/animate
$0.13 / 秒 模型詳情
wan-2.2-animate-replace
/api/v1/wan/animate
$0.13 / 秒 模型詳情
wan-2.5-image-to-video
/api/v1/wan/image_to_video
$0.12 / 秒 模型詳情
wan-2.5-text-to-video
/api/v1/wan/text_to_video
$0.12 / 秒 模型詳情
wan-2.6-edit-video
/api/v1/wan/edit_video
$0.14 / 秒 模型詳情
wan-2.6-flash-edit-video
/api/v1/wan/edit_video
$0.30 / 次呼叫 模型詳情
wan-2.6-flash-image-to-video
/api/v1/wan/image_to_video
$9.44 / 次呼叫 模型詳情
wan-2.6-image-to-video
/api/v1/wan/image_to_video
$0.58 / 秒 模型詳情
wan-2.6-text-to-video
/api/v1/wan/text_to_video
$0.58 / 秒 模型詳情
wan-2.7-edit-video
/api/v1/wan/edit_video
$0.16 / 秒 模型詳情
wan-2.7-image
/api/v1/wan/text_to_image
$0.05 / 次呼叫 模型詳情
wan-2.7-image-pro
/api/v1/wan/text_to_image
$0.12 / 次呼叫 模型詳情
wan-2.7-image-to-video
/api/v1/wan/image_to_video
$0.16 / 秒 模型詳情
wan-2.7-r2v
/api/v1/wan/text_to_video
$0.16 / 秒 模型詳情
wan-2.7-text-to-video
/api/v1/wan/text_to_video
$0.16 / 秒 模型詳情

驗證

輪詢,直到 Task 進入終態

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

設定

指南端點: <endpoint>

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

三步開始使用

  1. 選擇模型 ID

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

  2. 設定 RunAPI

    呼叫端點前設定 RUNAPI_API_KEY。

  3. 驗證結果

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

使用 Hermes Agent + Wan 可以打造什麼

  • 大量品牌內容

    藉助 Wan 的角色一致性大規模製作品牌影片,由 Hermes Agent 為不同產品線平行分派任務。

  • 口型同步的對白內容

    在一個 Hermes Agent 工作流程中把語音合成模型與 Wan 的語音轉影片端點串接,從腳本直接得到說話的影片。

  • 影視與代理商的預覽

    產生錨定關鍵幀的預覽片段,透過設定首幀和尾幀控制場景轉換,方便客戶審閱。

為什麼透過 RunAPI + Hermes Agent 使用 Wan

  • 18 個變體,一個 API 金鑰

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

  • 清楚的用量價格

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

  • 自動化工作流程

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

Hermes Agent + Wan 常見問題

在 Hermes Agent 中可以呼叫哪些 Wan 端點?

本頁列出的所有 Wan 端點。只要把 RunAPI 設定為提供者一次,之後每個請求都能切換端點和模型版本。

在 Hermes Agent 中使用 Wan 需要額外設定嗎?

不需要。你已用於聊天的 RunAPI 提供者可以直接存取所有 Wan 端點以及其他 RunAPI 模型,不需要額外外掛。

Hermes Agent 能把 Wan 的語音轉影片和 TTS 模型一起使用嗎?

可以。Hermes Agent 可以先用語音合成模型產生語音,再在同一個工作流程中把音訊 URL 交給 Wan 的語音轉影片端點。

應該使用哪個模型 ID?

從版本表選擇公開模型 ID。每個 ID 可用的端點都列在對應資料列。

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

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

開始在 Hermes Agent 中使用 Wan

正在與團隊一起打造?

我們可以協助企業接入、整合與技術問題。

聯絡我們