Mage API · Video model
MiniMax-H3 API
Fast open video with stereo sound
POST https://api.mage.space/v1/minimax_h3/generateAt a glance
The MiniMax-H3 API runs Pika H3 Flex and 2 other variants through Mage at POST https://api.mage.space/v1/minimax_h3/generate. A request at the default settings costs 45 Gems (about $0.045), with no subscription. MiniMax-H3 takes saved characters, references, audio references by @handle in the prompt.
- VideoOutput
- 3Variants
- 45Gems per clip, default
- $0.045About, in USD
Overview
What the MiniMax-H3 API does
A fast open video model that generates picture and stereo audio together. Start and end frames or up to 8 references (longer clips take fewer), 5 to 15 seconds at up to 768p.
A fast open video model that generates video and stereo audio together.
It accepts first_image, last_image, image, additional_images, videos as inputs.
Quick start
Call the MiniMax-H3 API
Set MAGE_API_KEY, submit to /minimax_h3/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/minimax_h3/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "5",
"model_id": "pika-h3-flex"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('minimax_h3', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '16:9',
duration: '5',
model_id: 'pika-h3-flex',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("minimax_h3", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "5",
"model_id": "pika-h3-flex",
})
print(request["result"]["url"])Models
MiniMax-H3 model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| minimax-h3-turbo | MiniMax-H3 Turbo | |
| pika-h3-flex | Pika H3 Flex | Yes |
| minimax-h3 | MiniMax-H3 |
Options
MiniMax-H3 parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 480p, 544p, 720p, 768p |
| duration | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 |
Inputs
Media inputs MiniMax-H3 accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| first_image | The first frame image. |
| last_image | The last frame image. |
| image | The reference image. |
| additional_images | Additional reference images. |
| videos | The source videos. |
Rules
What the MiniMax-H3 API enforces
- First and last frames cannot be combined with reference images or videos: send one kind or the other.
- Up to 9 reference images and 3 reference videos of 2 to 15 seconds each.
- References share a 21-second budget with the clip: `duration`, plus 2 seconds for each reference image, mentioned character, and mentioned reference, plus 1.15 seconds for each second of each reference video (counted up to `duration`), must come to at most 21.
More video models
Other video generation APIs on Mage
Plum API
Sound on every clip, up to 2K
Raspberry API
Characters brought to life from a first frame
Seedance API
Seedance, with a strict filter
Wan 3.0 API
Wan 3.0, with a strict filter
Wan Video v2.2 API
Open-weights video with a Lightning variant
Berry API
Video that stays true to your references
FAQ
Frequently asked questions
How much does the MiniMax-H3 API cost?
What is the MiniMax-H3 API endpoint?
Which MiniMax-H3 models can I call?
Does MiniMax-H3 support reference images or characters?
Can I use MiniMax-H3 from Claude or ChatGPT?
How long are MiniMax-H3 results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.