MiniMax H3 API documentation
Everything you need to call MiniMax H3 from your code. Base URL https://cheapergen.com/api/v1. Try it first in the playground.
Using a coding agent?
Paste this into Claude Code, Cursor, Codex or any coding agent. It adds the API to your project, keeps the key in CHEAPERGEN_API_KEY and tests with a free quote before anything is spent.
Add MiniMax H3 (CheaperGen endpoint minimax/ h3/ text-to-video) to this project by following https:/ / cheapergen.com/ agents/ integrate.mdAuthentication
Create a key in Dashboard → API keys and send it as a bearer token. Keep keys server-side.
export CHEAPERGEN_API_KEY="cg_live_…"
# every request
Authorization: Bearer $CHEAPERGEN_API_KEYMiniMax H3 Text to Video API
/api/v1/run/minimax/h3/text-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
aspect_ratio | string (enum) | Output frame shape. Values: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9 Default: 16:9 | Yes |
resolution | string (enum) | Output resolution. The price per second depends on the resolution. Values: 720P · 768P · 1080P · 2K Default: 768P | Yes |
duration | integer | Length of the generated clip in seconds (5–15s). You pay per second. Range: 5–15s Default: 6 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
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": "A hummingbird hovers at a red flower, wings frozen in a sliver of light, nature documentary",
"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);Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "minimax/h3",
"endpoint": "minimax/h3/text-to-video",
"mode": "text-to-video",
"status": "queued",
"input": {
"prompt": "A hummingbird hovers at a red flower, wings frozen in a sliver of light, nature documentary",
"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 Image to Video API
/api/v1/run/minimax/h3/image-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
image_urlrequired | string (URL) | Image used as the opening frame. JPG/PNG/WebP, URL or upload. | No |
end_image_url | string (URL) | Optional closing frame — the model animates between the two. | No |
resolution | string (enum) | Output resolution. The price per second depends on the resolution. Values: 720P · 768P · 1080P · 2K Default: 768P | Yes |
duration | integer | Length of the generated clip in seconds (5–15s). You pay per second. Range: 5–15s Default: 6 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
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": "The poster comes alive: confetti falls and the headline glows",
"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);Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "minimax/h3",
"endpoint": "minimax/h3/image-to-video",
"mode": "image-to-video",
"status": "queued",
"input": {
"prompt": "The poster comes alive: confetti falls and the headline glows",
"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 Reference to Video API
/api/v1/run/minimax/h3/reference-to-videoSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
reference_image_urls | string[] (URLs) | Up to 5 images for characters, products, style or scene. Refer to them in the prompt as @Image1, @Image2… Max items: 5 | No |
reference_video_urls | string[] (video URLs) | Up to 3 MP4/MOV clips for motion, camera moves or effects (2–15 s each, 15 s in total, ≤ 50 MB each). Refer to them as @Video1, @Video2… Reference-video seconds are billed like output seconds. Max items: 3 | Yes |
reference_audio_urls | string[] (audio URLs) | Up to 3 MP3/WAV clips for voice, music or sound (2–15 s each, 15 s in total, ≤ 15 MB each). Refer to them as @Audio1, @Audio2… Needs at least one reference image or video. Max items: 3 | No |
aspect_ratio | string (enum) | Output frame shape. Values: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9 Default: 16:9 | Yes |
resolution | string (enum) | Output resolution. The price per second depends on the resolution. Values: 720P · 768P · 1080P · 2K Default: 768P | Yes |
duration | integer | Length of the generated clip in seconds (5–15s). You pay per second. Range: 5–15s Default: 6 | Yes |
seed | integer | Use the same seed and settings to reproduce a result. Leave empty for random. | No |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
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": "The mascot from @Image1 dances in front of the storefront from @Image2, following the moves in @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);Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "minimax/h3",
"endpoint": "minimax/h3/reference-to-video",
"mode": "reference-to-video",
"status": "queued",
"input": {
"prompt": "The mascot from @Image1 dances in front of the storefront from @Image2, following the moves in @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"
}Get the result
Generations are asynchronous. Poll until status is succeeded, failed or canceled — or pass webhook_url when you submit. Failed generations are refunded automatically.
curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY"{
"status": "succeeded",
"output": {
"video": {
"url": "https://cdn.cheapergen.com/outputs/gen_8c2Q.mp4",
"content_type": "video/mp4"
}
}
}More: job lifecycle · webhooks · errors
MiniMax H3 pricing
Pay per second of video as you go, with no subscription required. Failed generations are refunded automatically.
| Tier | Official price | CheaperGen | You save |
|---|---|---|---|
720P per second · no official tier | — | $0.0258/s | — |
768P per second | $0.057/s With a monthly plan: Pro $0.0557Max $0.0544 | −29% | |
1080P per second · no official tier | — | $0.0335/s | — |
2K per second | $0.1068/s With a monthly plan: Pro $0.1033Max $0.0998 | −18% |
Monthly plans lower prices on most models (shown under each price); you can still pay as you go. Pro $499/month · Max $4,999/month.
- Official price: MiniMax international API list price, platform.minimax.io ($0.08 / s at 768P, $0.13 / s at 2K; reference-video seconds billed at the output rate, reference audio free). MiniMax sells no 720P or 1080P: those tiers have no official price.. Prices verified October 18, 2026.
- Reference-video seconds are billed at the output rate; reference audio is free.
- 720P and 1080P aren't sold by MiniMax's own API (768P and 2K only): they run on a separate inference deployment of the H3 model, so they have no official price to compare with. 1080P outputs 1920×1088 at 16:9; it isn't MiniMax's 2K. At 720P and 1080P a seed and reference videos aren't available.