CheaperGen

MiniMax H3 APIドキュメント

コードからMiniMax H3を呼び出すために必要な情報をすべて掲載しています。ベースURLはhttps://cheapergen.com/api/v1です。まずプレイグラウンドでお試しください。

コーディングエージェントを使いますか?

これをClaude Code、Cursor、Codex、または任意のコーディングエージェントに貼り付けてください。プロジェクトにAPIを追加し、キーをCHEAPERGEN_API_KEYに保存して、支払いが発生する前に無料見積もりでテストします。

Add MiniMax H3 (CheaperGen endpoint minimax/h3/text-to-video) to this project by following https://cheapergen.com/agents/integrate.md
エージェントが参照する情報

認証

ダッシュボード → APIキーでキーを作成し、Bearerトークンとして送信してください。キーはサーバー側で管理してください。

export CHEAPERGEN_API_KEY="cg_live_…"

# every request
Authorization: Bearer $CHEAPERGEN_API_KEY

MiniMax H3 テキストから動画を生成 API

POST/api/v1/run/minimax/h3/text-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
aspect_ratiostring (enum)出力フレームの形状。
値:16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9
デフォルト:16:9
はい
resolutionstring (enum)出力解像度。高解像度では秒単価が上がります。
値:768P · 2K
デフォルト:768P
はい
durationinteger生成クリップの長さ(5〜15秒)。秒単位で課金されます。
範囲:5~15s
デフォルト:6
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/minimax/h3/text-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "赤い花の上でホバリングするハチドリ。わずかな光の筋に翼が止まった瞬間を捉えた自然ドキュメンタリー。",
    "aspect_ratio": "16:9",
    "resolution": "768P",
    "duration": 6
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "minimax/h3",
  "endpoint": "minimax/h3/text-to-video",
  "mode": "text-to-video",
  "status": "queued",
  "input": {
    "prompt": "赤い花の上でホバリングするハチドリ。わずかな光の筋に翼が止まった瞬間を捉えた自然ドキュメンタリー。",
    "aspect_ratio": "16:9",
    "resolution": "768P",
    "duration": 6
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

MiniMax H3 画像から動画を生成 API

POST/api/v1/run/minimax/h3/image-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
image_url必須string (URL)開始フレームに使う画像。JPG/PNG/WebP、URLまたはアップロード。いいえ
end_image_urlstring (URL)任意の終了フレーム。モデルが2つのフレームの間を動画にします。いいえ
resolutionstring (enum)出力解像度。高解像度では秒単価が上がります。
値:768P · 2K
デフォルト:768P
はい
durationinteger生成クリップの長さ(5〜15秒)。秒単位で課金されます。
範囲:5~15s
デフォルト:6
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/minimax/h3/image-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "ポスターに動きを付ける:紙吹雪が舞い、見出しが光る。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "resolution": "768P",
    "duration": 6
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "minimax/h3",
  "endpoint": "minimax/h3/image-to-video",
  "mode": "image-to-video",
  "status": "queued",
  "input": {
    "prompt": "ポスターに動きを付ける:紙吹雪が舞い、見出しが光る。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "resolution": "768P",
    "duration": 6
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

MiniMax H3 参照素材から動画を生成 API

POST/api/v1/run/minimax/h3/reference-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
reference_image_urlsstring[] (URLs)人物、商品、スタイル、シーン用の画像は最大5枚です。@Image1、@Image2…とプロンプト内で指定してください。
最大項目数:5
いいえ
reference_video_urlsstring[] (video URLs)動き、カメラワーク、効果用のクリップは最大3MP4/MOV本です(1本あたり2〜15秒, 合計15秒, 1ファイルあたり50 MB以下)。@Video1、@Video2…とプロンプト内で指定してください。参照動画の秒数は出力秒数と同じ料金です。
最大項目数:3
はい
reference_audio_urlsstring[] (audio URLs)声、音楽、効果音用のクリップは最大3MP3/WAV本まで指定できます(1本あたり2〜15秒, 合計15秒, 1ファイルあたり15 MB以下)。@Audio1、@Audio2…と参照してください 参照画像または動画を1つ以上追加してください。
最大項目数:3
いいえ
aspect_ratiostring (enum)出力フレームの形状。
値:16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9
デフォルト:16:9
はい
resolutionstring (enum)出力解像度。高解像度では秒単価が上がります。
値:768P · 2K
デフォルト:768P
はい
durationinteger生成クリップの長さ(5〜15秒)。秒単位で課金されます。
範囲:5~15s
デフォルト:6
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/minimax/h3/reference-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "@Image1のマスコットが@Image2の店先で、@Video1の動きに合わせて踊ります。",
    "reference_image_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.jpg",
      "https://cdn.cheapergen.com/samples/reference-2.jpg"
    ],
    "reference_video_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.mp4"
    ],
    "aspect_ratio": "16:9",
    "resolution": "768P",
    "duration": 6
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "minimax/h3",
  "endpoint": "minimax/h3/reference-to-video",
  "mode": "reference-to-video",
  "status": "queued",
  "input": {
    "prompt": "@Image1のマスコットが@Image2の店先で、@Video1の動きに合わせて踊ります。",
    "reference_image_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.jpg",
      "https://cdn.cheapergen.com/samples/reference-2.jpg"
    ],
    "reference_video_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.mp4"
    ],
    "aspect_ratio": "16:9",
    "resolution": "768P",
    "duration": 6
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

結果を取得する

生成処理は非同期です。statusがsucceeded、failed、またはcanceledになるまでポーリングしてください。送信時にwebhook_urlを指定する方法もあります。失敗した生成は自動返金されます。

curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY"

その他:ジョブのライフサイクル · Webhook · エラー

MiniMax H3の料金

従量課金: 動画1秒あたりを使った分だけ支払えます。サブスクリプションは不要です。生成に失敗した場合は自動で返金されます。

プラン公式価格CheaperGen
768P
秒あたり
$0.08/s$0.057/s
月額プランの場合: Pro $0.0557Max $0.0544
2K
秒あたり
$0.13/s$0.1068/s
月額プランの場合: Pro $0.1033Max $0.0998

月額プラン多くのモデルが割引価格になります(各モデルの料金の下に表示)。従量課金も引き続き利用できます。Pro $499/月 · Max $4,999/月。

  • 公式価格:MiniMax国際API公開価格(platform.minimax.io、768Pで1秒あたり$0.08、2Kで$0.13。参照動画の秒数は出力と同じ単価、参照音声は無料)。価格確認日:2026年10月18日。
  • 参照動画の秒数は出力と同じ単価です。参照音声は無料です。