OPENCLAW + HAILUO

在 OpenClaw 中使用 Hailuo。

Hailuo 是 MiniMax 的影片生成模型,可產出原生 1080p 畫面並精準模擬物理效果,共有 6 種變體 — Hailuo 02 與 2.3,各具備文生影片與圖生影片端點,分 pro 與 standard 兩個方案。OpenClaw agent 透過 RunAPI 呼叫,與聊天共用同一個 API key。

一個 API key · 文生影片 + 圖生影片 · 非同步任務輪詢
Use RunAPI to generate a video with MiniMax Hailuo 02 Pro.

Requirements:
- Call the RunAPI text_to_video endpoint at https://runapi.ai/api/v1/hailuo/text_to_video
- Set model to "hailuo-02-text-to-video-pro"
- Use the RUNAPI_API_KEY environment variable for authorization
- Include a detailed prompt describing camera movement and scene
- The response is async — poll the task status endpoint until the task completes, then retrieve the video URL
curl -X POST https://runapi.ai/api/v1/hailuo/text_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hailuo-02-text-to-video-pro",
    "prompt": "A glass marble rolls across a wooden desk, catches the edge, and falls in slow motion. Camera follows the marble. Soft window light, shallow depth of field."
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "hailuo-02-text-to-video-pro"
}
複製 curl 指令進行測試 hailuo
運作原理

三步驟在 OpenClaw 中使用 Hailuo

1

設定 RunAPI

設定 RUNAPI_API_KEY 環境變數。如果你已在 OpenClaw 中設定 RunAPI 作為聊天 provider,同一把 key 即可用於影片生成 — 無需額外設定。

export RUNAPI_API_KEY=runapi_xxx
2

呼叫 Hailuo text_to_video 或 image_to_video

向 /api/v1/hailuo/text_to_video 發送 POST 請求,將 model 設為 hailuo-02-text-to-video-pro 並附上描述場景的 prompt。若要以圖片為錨點生成影片,使用 image_to_video 端點並傳入 first_frame_image_url 以保留來源主體。

POST /api/v1/hailuo/text_to_video
3

輪詢結果

端點會立即回傳 task_id。輪詢任務狀態端點,直到狀態變為 completed,再從回應中取得生成的影片 URL。pro 方案的典型處理時間在兩分鐘以內。

GET /api/v1/hailuo/text_to_video/tsk_abc123
參數

Hailuo API 參數

參數 類型 說明
model string 必填。可選值:hailuo-02-text-to-video-pro、hailuo-02-text-to-video-standard、hailuo-02-image-to-video-pro、hailuo-02-image-to-video-standard、hailuo-2.3-image-to-video-pro、hailuo-2.3-image-to-video-standard。
prompt string 必填。影片場景、鏡頭運動與燈光的文字描述。
first_frame_image_url string image_to_video 端點必填。作為第一幀的來源圖片 URL。
last_frame_image_url string 選填。作為最後一幀的圖片 URL。僅適用於 Hailuo 02 image-to-video。
duration_seconds integer 選填。影片長度(秒)。可選值:6 或 10。standard 預設為 10,pro 固定。
output_resolution string 選填。輸出解析度。02 standard 可選 512p 或 768p;2.3 變體可選 768p 或 1080p。
callback_url string 選填。任務完成時接收 POST 通知的 Webhook URL。

OpenClaw 上的 Hailuo 是什麼?

MiniMax 的 Hailuo 是同類速度最快的影片生成器之一,能生成動態流暢、細節保留良好的原生 1080p 影片。它擅長物理模擬——物件持久性、動態連貫性和材質互動——並透過 Hailuo 2.3 提供動漫和風格化內容的專屬模式。OpenClaw 代理透過 RunAPI,使用與聊天相同的 API key 呼叫它。

Hailuo 使用情境

短篇社群內容

為 TikTok、Reels 或 YouTube 快速生成影片片段。Hailuo 的快速生成速度讓製作多個變體再挑選最佳版本成為實際可行的選項。

說明與行銷影片

從文字描述創建說明影片和行銷短片。Hailuo 保持主體一致性,並以逼真的光線處理商品特寫。

動漫與風格化內容

使用 Hailuo 2.3 變體生成動漫風格或插圖風格的影片,享受其他影片模型所沒有的專屬渲染模式。

FAQ

Hailuo + OpenClaw 常見問題

OpenClaw 通用設定

尚未設定?請從 OpenClaw 的 RunAPI 設定指南開始。

OpenClaw 設定指南 →

Hailuo 模型目錄

查看所有 Hailuo 變體、價格方案與 API 文件。

Hailuo 模型 →

立即在 OpenClaw 中試用 Hailuo。

取得免費 RunAPI key,將 prompt 貼入 OpenClaw,即可使用 MiniMax Hailuo 開始生成影片。