MiniMax Video API
Resolutions, ratios, duration, reference media, first and last frames, media requirements and billing components for the MiniMax H3 video models (self-hosted minimax-h3, official flagship minimax-h3官方版, official fast minimax-h3-max官方版).
This page specifies the MiniMax H3 video models: the self-hosted minimax-h3, the official flagship minimax-h3官方版 and the official fast edition minimax-h3-max官方版. They share the POST /v1/videos create and GET /v1/videos/{id} polling flow with the other video models; authentication, media upload, polling states, downloads and error handling are covered in the Complete Video API Standard. This page lists only the fields and rules specific to H3.
Model comparison
| Model | Highlights | Resolution | Duration |
|---|---|---|---|
minimax-h3 | Self-hosted; offers a 1080P tier; 2K is upscaled | 768P, 1080P, 2K; default 768P | 4–15s, default 5s |
minimax-h3官方版 | Official flagship, quality first; 2K is native 2560×1440 output | 768P, 2K; default 768P | 4–15s, default 5s |
minimax-h3-max官方版 | Official fast edition, usually ready in about 1 minute; use the official flagship when image quality matters most | 480P, 768P; default 768P | 5–15s, default 5s |
The three models do not share exactly the same parameters and media rules. The sections from "Text-to-video example" through "Media requirements" apply to the self-hosted minimax-h3; the rules for the two official editions are in "H3 Official and H3 Max Official" at the end of this page. See the model square for the current price of each model.
Refine your prompt before generating
Before generating, we recommend refining your prompt with MiniMax's official Skill h3-prompt-writing for better video results. It works with AI coding assistants that can read local files, such as Claude Code and Codex: for text-to-video, first frame, first and last frames, or reference media, it rewrites a short idea into the shot-by-shot prompt H3 recommends, covering the framing, action, camera movement and sound of each shot. It applies to all three H3 models.
- The rewritten prompt is in English; dialogue, lyrics and on-screen text stay in their original language.
- The total duration described should match the
durationof your request. - Put the result straight into
prompt; no other parameters need to change.
Text-to-video example
curl --request POST 'https://api.88api.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "minimax-h3",
"prompt": "A silver sports car in a rainy city at night, low tracking shot, neon reflections, cinematic",
"duration": 5,
"resolution": "1080p",
"ratio": "16:9"
}'Save the id from the response, poll GET /v1/videos/{id} until it completes, then download the video from the url in the completed response. Only polling is supported; do not send callback_url.
Parameters
The self-hosted minimax-h3 has a single model name. Choose the output tier with resolution (billing follows the tier) and the frame shape with ratio:
| Parameter | Values |
|---|---|
resolution | 768p, 1080p, 2k; defaults to 768p. 480p and 4k have been retired and return 400 |
ratio | 768p: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9; 1080p and 2k: 16:9, 9:16. Defaults to 16:9 |
duration | whole seconds from 4 to 15; defaults to 5. 1–3 seconds is not supported and returns 400 |
- 2K is produced by an upscaling workflow, not native generation.
- Do not pass the ratio in
size.sizeonly accepts a tier such as1080por dimensions such as1920x1080;16:9is read as a resolution and rejected. - Results always include an audio track; there is no generated-audio switch. The delivered duration is usually 0.1–0.6 seconds longer than requested.
- Invalid parameters (tier, ratio, duration, media count or combination) return
400at submission; no task is created and nothing is billed.
Features by resolution
| Feature | 768P | 1080P, 2K |
|---|---|---|
| Ratio | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | 16:9, 9:16 |
| Text-to-video | Supported | Supported |
| Reference images | Up to 9 | Up to 6 |
| Reference audio | Up to 3 clips, with at least one reference image | Same |
| First and last frame | Supported | Not supported |
| First frame only | Supported, longer queue | Not supported |
| Reference video | Not supported | Not supported |
| Direct file upload (multipart) | Supported for 16:9, 9:16 and 1:1; not for 4:3, 3:4, 21:9 or a first frame only — use URLs or Base64 | Supported |
Combinations outside this table return 400 at submission, with a message that explains the reason and how to fix it; no task is created and nothing is charged.
Generation time and polling
The self-hosted minimax-h3 generates through a queue, so generation time varies a lot and is noticeably slower at peak times:
- 768P usually finishes in 3–10 minutes, mostly within 20 minutes.
- 1080P and 2K usually take 5–20 minutes; at peak times they can take close to an hour.
- The
4:3,3:4and21:9ratios and a first frame only wait longer in the queue, usually 10–30 minutes and sometimes more than an hour at peak times.
Polling recommendations:
- A polling interval of 15–30 seconds is enough; for tasks that have been waiting a while you can gradually widen it to 60 seconds.
- Do not give a task a short timeout; wait at least 1 hour and keep polling until the task reports completed or failed. Every task gets a result within 24 hours. Failed generations are not billed.
- Do not resubmit the same request while a task is still running, or it will be generated and billed twice; keep polling the original
id.
Reference media
Put reference images in metadata.referenceImages and reference audio in metadata.referenceAudios. Up to 9 reference images at 768P and 6 at 1080P and 2K; up to 3 reference audio clips, which must be accompanied by at least one reference image; at most 12 images and audio clips in total.
{
"model": "minimax-h3",
"prompt": "The person from the reference image dances to the rhythm of the reference audio as the camera slowly circles",
"duration": 6,
"resolution": "768p",
"ratio": "16:9",
"metadata": {
"referenceImages": ["https://cdn.example.com/dancer.jpg"],
"referenceAudios": ["https://cdn.example.com/music.mp3"]
}
}First and last frames
Use metadata.firstFrame and metadata.lastFrame. They cannot be combined with reference images or reference audio. First and last frames are supported at 768P only; 1080p or 2k with a first or last frame returns 400. Providing both frames gives the fastest results; you can also provide only a first frame, but it waits longer in the queue.
{
"model": "minimax-h3",
"prompt": "The camera glides from the coast at dawn to the same bay at dusk",
"duration": 5,
"resolution": "768p",
"ratio": "16:9",
"metadata": {
"firstFrame": "https://cdn.example.com/start.jpg",
"lastFrame": "https://cdn.example.com/end.jpg"
}
}Top-level images
When top-level images (or input_reference) contains 2 images, they are read as the first and last frames. With 1 image or 3 or more, the purpose is not fixed (they may be treated as reference images or a first frame). Use metadata.referenceImages or metadata.firstFrame/lastFrame to state the purpose explicitly.
Media requirements
- Provide images and audio as publicly accessible HTTPS URLs or Base64 data URLs; you can also upload local image and audio files directly in a multipart form, except for requests with a
4:3/3:4/21:9ratio or with a first frame only — use URLs or Base64 for those. - Images are JPG, PNG or WebP, preferably no larger than 10 MB each; audio is MP3 or WAV, up to 20 MB per clip; inline Base64 media may total up to 32 MB.
- Do not use local file paths, private network addresses or browser
blob:URLs. - Result URLs expire (after at least 24 hours); download and save the video promptly once the task completes.
H3 Official and H3 Max Official
minimax-h3官方版 (official flagship) and minimax-h3-max官方版 (official fast edition) follow the same flow as the other video models: create a task with POST /v1/videos, save the id from the response, then poll GET /v1/videos/{id} until it completes. The model name must match the id returned by GET /v1/models exactly, including the 官方版 suffix.
curl --request POST 'https://api.88api.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "minimax-h3官方版",
"prompt": "A misty lake at the foot of snowy mountains at dawn, the camera slowly pushes toward a wooden cabin, cinematic",
"duration": 5,
"resolution": "2k",
"ratio": "16:9"
}'When the task completes, the response includes official_task_id, the official MiniMax task number, in addition to the video url. If you need a generation issue checked, provide both the task id and the official_task_id. The video link is an official MiniMax link that stays valid for 24 hours from generation and cannot be opened after it expires; expires_at in the response is the link's expiry time (Unix seconds). Download and save the video soon after the task completes.
Parameters
| Parameter | minimax-h3官方版 | minimax-h3-max官方版 |
|---|---|---|
resolution | 768p, 2k (native 2560×1440); 768P when omitted | 480p, 768p; 768P when omitted |
duration or seconds | Integer seconds from 4 to 15; 5 seconds when omitted | Integer seconds from 5 to 15; 5 seconds when omitted |
ratio | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive | Same as left |
prompt | Required, up to 7,000 characters | Same as left |
resolutionis case-insensitive:2Kand2kare equivalent.- The ratio can also be sent as
aspect_ratio, or assizein width×height form such as1344x768. adaptivefollows the aspect ratio of the input media and requires an image or video.- Without a ratio the default is
16:9; with a first or last frame the default follows the image's aspect ratio.
First/last frames and reference media
| Field | Purpose | Count and duration |
|---|---|---|
metadata.firstFrame | First-frame image | 1 |
metadata.lastFrame | Last-frame image | 1 |
metadata.referenceImages | Reference images | Up to 9 |
metadata.referenceVideos | Reference videos | Up to 3 clips, each at least 2 seconds, 15 seconds in total at most |
metadata.referenceAudios | Reference audio, MP3 or WAV | Up to 3 clips, 15 seconds in total at most |
- The purpose of top-level
imagesdepends on the count: 1 image is the first frame, 2 images are the first and last frames, 3 or more are all reference images. - First/last frames cannot be combined with reference images, videos or audio.
The content array form is also supported, either at the top level as content or as metadata.content; if both are present, metadata.content wins. Each item's type is image_url, video_url or audio_url, and its role is first_frame, last_frame, reference_image, reference_video or reference_audio; an image without a role is treated as a reference image. You can also send one { "type": "text", "text": "..." } item instead of the top-level prompt, but only one prompt is allowed. This example sends a first and a last frame in a top-level content:
{
"model": "minimax-h3官方版",
"prompt": "The camera glides from a coastline at dawn to the same bay at dusk",
"duration": 5,
"content": [
{ "type": "image_url", "role": "first_frame", "image_url": { "url": "https://cdn.example.com/start.jpg" } },
{ "type": "image_url", "role": "last_frame", "image_url": { "url": "https://cdn.example.com/end.jpg" } }
]
}The two models differ in these media rules:
| Rule | minimax-h3官方版 | minimax-h3-max官方版 |
|---|---|---|
| Last frame only | Supported | Not supported; a first frame is also required |
| Reference audio only | Supported | Not supported; add reference images or videos |
| Total reference media | Per-type limits | At most 12 reference images, videos and audio clips in total |
Reference media example:
{
"model": "minimax-h3官方版",
"prompt": "The person in the reference image walks around the street corner following the camera move of the reference video, in time with the reference audio",
"duration": 8,
"resolution": "768p",
"ratio": "9:16",
"metadata": {
"referenceImages": ["https://cdn.example.com/person.jpg"],
"referenceVideos": ["https://cdn.example.com/camera-move.mp4"],
"referenceAudios": ["https://cdn.example.com/beat.mp3"]
}
}First and last frame example:
{
"model": "minimax-h3-max官方版",
"prompt": "A flower bud slowly opens in the morning sunlight",
"duration": 5,
"resolution": "768p",
"metadata": {
"firstFrame": "https://cdn.example.com/bud.jpg",
"lastFrame": "https://cdn.example.com/bloom.jpg"
}
}Media formats
- Images, videos and audio can be HTTP(S) links or Base64 data URLs; with
multipart/form-datayou can also upload files directly. - External image links occasionally fail to download. Base64 data URLs, or object storage links directly reachable from mainland China, are recommended.
- Do not use local paths, private network addresses or browser
blob:links.
Billing components
- Billed by the seconds of generated video, priced per resolution.
- With reference videos, their duration is billed separately at the reference video price for the same resolution. At the same resolution, the reference video price may differ from the generated video price.
- Images (first frame, last frame and reference images combined) beyond the free allowance are billed per image: from the 6th image for
minimax-h3官方版and from the 3rd forminimax-h3-max官方版. Reference audio is not billed. - With reference videos, 15 seconds of reference video are held at submission; after the task completes, the actual duration is charged and the difference refunded.
- Failed tasks are refunded in full.
See the model square for the current prices of generated video, reference video and images.
Google Video API
Resolution, duration, keyframe, reference media, video editing and extension rules for Veo 3.1, Veo 3.1 Fast, Gemini Omni Flash and Gemini Omni 1.1.
Wan Video API
Resolution, duration, ratio, keyframe, multi-reference (media array), Responses API usage and official billing rules for wan3.0-video and wan3.0-video-prime.