APIMaster.ai

MiniMax-H3 動画生成 API

APIMaster で MiniMax-H3 の非同期動画タスクを作成し、状態を確認して MP4 をダウンロードします。

MiniMax-H3 動画生成

APIMaster の OpenAI 互換動画 API で MiniMax-H3 を利用できます。生成は非同期です。

Base URL: https://apimaster.ai/v1https://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 状態の idtask_id がすぐに返ります。

状態を確認

GET https://apimaster.ai/v1/videos/{task_id}queuedrunningcompletedfailed を返します。

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 秒、size768P2K に対応します。