MiniMax H3 Max APIドキュメント
コードからMiniMax H3 Maxを呼び出すために必要な情報をすべて掲載しています。ベースURLはhttps://cheapergen.com/api/v1です。まずプレイグラウンドでお試しください。
コーディングエージェントを使いますか?
これをClaude Code、Cursor、Codex、または任意のコーディングエージェントに貼り付けてください。プロジェクトにAPIを追加し、キーをCHEAPERGEN_API_KEYに保存して、支払いが発生する前に無料見積もりでテストします。
Add MiniMax H3 Max (CheaperGen endpoint minimax/ h3-max/ 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_KEYMiniMax H3 Max テキストから動画を生成 API
POST
/api/v1/run/minimax/h3-max/text-to-video非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。
入力パラメーター
| 名前 | 種類 | 説明 | 料金に影響 |
|---|---|---|---|
prompt必須 | string | ショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。 | いいえ |
aspect_ratio | string (enum) | 出力フレームの形状。 値:16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9 デフォルト:16:9 | はい |
resolution | string (enum) | 出力解像度。高解像度では秒単価が上がります。 値:480P · 768P デフォルト:768P | はい |
duration | integer | 生成クリップの長さ(5〜15秒)。秒単位で課金されます。 範囲:5~15s デフォルト:6 | はい |
seed | integer | 同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。 | いいえ |
enable_safety_checker | boolean | trueに設定すると、安全性チェッカーが有効になります。どちらの設定でも、当社の利用規定で禁止されているコンテンツはブロックされます。 デフォルト:true | いいえ |
webhook_url | string (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-max/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-max",
"endpoint": "minimax/h3-max/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 Max 画像から動画を生成 API
POST
/api/v1/run/minimax/h3-max/image-to-video非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。
入力パラメーター
| 名前 | 種類 | 説明 | 料金に影響 |
|---|---|---|---|
prompt必須 | string | ショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。 | いいえ |
image_url必須 | string (URL) | 開始フレームに使う画像。JPG/PNG/WebP、URLまたはアップロード。 | いいえ |
end_image_url | string (URL) | 任意の終了フレーム。モデルが2つのフレームの間を動画にします。 | いいえ |
resolution | string (enum) | 出力解像度。高解像度では秒単価が上がります。 値:480P · 768P デフォルト:768P | はい |
duration | integer | 生成クリップの長さ(5〜15秒)。秒単位で課金されます。 範囲:5~15s デフォルト:6 | はい |
seed | integer | 同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。 | いいえ |
enable_safety_checker | boolean | trueに設定すると、安全性チェッカーが有効になります。どちらの設定でも、当社の利用規定で禁止されているコンテンツはブロックされます。 デフォルト:true | いいえ |
webhook_url | string (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-max/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-max",
"endpoint": "minimax/h3-max/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"
}結果を取得する
生成処理は非同期です。statusがsucceeded、failed、またはcanceledになるまでポーリングしてください。送信時にwebhook_urlを指定する方法もあります。失敗した生成は自動返金されます。
curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY"その他:ジョブのライフサイクル · Webhook · エラー
MiniMax H3 Maxの料金
従量課金: 動画1秒あたりを使った分だけ支払えます。サブスクリプションは不要です (月額プランは任意)。生成に失敗した場合は自動で返金されます。
| プラン | 公式価格 | CheaperGen | 節約額 |
|---|---|---|---|
480P 秒あたり | $0.0396/s | −21% | |
768P 秒あたり | $0.06/s | −25% |
- 公式価格:MiniMax国際API公開価格(platform.minimax.io、480Pで1秒あたり$0.05、768Pで$0.08)。価格確認日:2026年10月18日。