MiniMax-H3 影片生成 API
透過 APIMaster 建立非同步 MiniMax-H3 影片任務、查詢狀態並下載 MP4。
MiniMax-H3 影片生成
透過 APIMaster 的 OpenAI 相容影片 API 使用 MiniMax-H3。生成工作採非同步處理。
Base URL:
https://apimaster.ai/v1是https://apimaster.ai/v1。使用POST https://apimaster.ai/v1/video/generations建立任務。
建立影片任務
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
model |
string | 是 | MiniMax-H3 |
prompt |
string | 是 | 影片內容描述 |
duration |
integer | 否 | 4–15 秒,預設 4 |
size |
string | 否 | 768P 或 2K,預設 768P |
ratio |
string | 否 | 畫面比例,預設 16:9 |
curl -s "https://apimaster.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"MiniMax-H3","prompt":"A calm ocean at sunrise, cinematic wide shot","duration":4,"size":"768P","ratio":"16:9"}'
回應會立即回傳 queued 狀態的 id 與 task_id。
查詢任務狀態
GET https://apimaster.ai/v1/videos/{task_id} 會回傳 queued、running、completed 或 failed。
curl -s "https://apimaster.ai/v1/videos/task_xxxxxxxx" -H "Authorization: Bearer YOUR_API_KEY"
提交後等待 10–20 秒,再每 3–5 秒輪詢一次。
下載影片
curl -L "https://apimaster.ai/v1/videos/task_xxxxxxxx/content" \
-H "Authorization: Bearer YOUR_API_KEY" -o output.mp4
狀態為 completed 後下載 MP4。duration 支援 4–15 秒,size 支援 768P 與 2K。