PopNowAPI ドキュメント
本文

MiniMax H3 Edit API リファレンス

クリップの光・天気・画風を変更、人物と動きはそのまま

PopNow の API キー 1 つで、MiniMax H3 Edit を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
MiniMax
出力
動画
最安
$0.03 USD 出力 1 秒あたり
目安の所要時間
約 96 秒

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

動画を編集

minimax/h3-edit/video-edit

料金

オプションUSD
480p$0.03 出力 1 秒あたり
540p$0.045 出力 1 秒あたり
768p$0.066 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string—5,000 文字までThe change to make: lighting, weather, style, setting or specific elements. Name references as <Picture 1> or <Audio 1>.
video_url必須string (uri)——The clip to edit (MP4), up to 15 seconds; longer clips are refused before any charge. It keeps driving who is in it, the composition and the motion.
reference_image_urls任意array<string (uri)>—9 件までOptional reference images, up to nine, named <Picture 1> to <Picture 9> in the prompt. Each one adds a per-reference charge.
reference_audio_urls任意array<string (uri)>—3 件までOptional reference audio clips, up to three, named <Audio 1> to <Audio 3> in the prompt. Each one adds a per-reference charge.
aspect_ratio任意string—16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21Output aspect ratio. Leave it out to keep the source clip's shape.
resolution任意string768p480p, 540p, 768pOutput resolution. 768p is H3's own canvas; 480p and 540p are lower-cost, quicker tiers.
duration_seconds任意integer53〜15Length of the edited clip in whole seconds, 3 to 15. Set it to your source clip's length to edit the whole clip.
generate_audio任意booleantrue—On: H3 generates a new soundtrack for the edit. Off: the source clip's own audio is kept.
seed任意integer—0〜2147483647Random seed for controlled comparisons.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の video_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。

POST /api/v1/jobs/createTask
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/h3-edit/video-edit",
  "input": {
    "prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "duration_seconds": 5,
    "resolution": "768p"
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

次に読む

このページの内容