MiniMax Hailuo 2.3 API リファレンス
1 枚の画像から無音クリップ。768p で 6 秒または 10 秒、1080p で 6 秒
PopNow の API キー 1 つで、MiniMax Hailuo 2.3 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- MiniMax
- 出力
- 動画
- 最安
- $0.163 USD 1 リクエストあたり
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
画像から動画
minimax/hailuo-2.3/image-to-video
料金
| オプション | USD |
|---|---|
fast | $0.163 1 リクエストあたり |
standard | $0.256 1 リクエストあたり |
duration_seconds = 10, generation_mode = fast | $0.264 1 リクエストあたり |
generation_mode = fast, resolution = 1080p | $0.266 1 リクエストあたり |
duration_seconds = 10, generation_mode = standard | $0.512 1 リクエストあたり |
generation_mode = standard, resolution = 1080p | $0.448 1 リクエストあたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 5,000 文字まで | Describe what happens after the opening frame: the action, the camera move and the mood. |
image_url必須 | string (uri) | — | — | Opening frame. The clip starts from this image and keeps its framing. JPEG, PNG or WebP, up to 10 MB. |
generation_mode任意 | string | standard | standard, fast | standard runs Hailuo 2.3; fast runs Hailuo 2.3 Fast, which renders sooner and costs less per clip. |
resolution任意 | string | 768p | 768p, 1080p | Output resolution. 1080p clips are 6 seconds long and cost more per clip. |
duration_seconds任意 | integer | 6 | 6, 10 | Clip length: 6 or 10 seconds. 10 seconds is available at 768p only. Billed per clip. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/hailuo-2.3/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 6,
"resolution": "768p",
"generation_mode": "standard"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
