MiniMax H3 Max API guide
MiniMax H3 Max API: Generate video using text, frame images, or multimodal references with MiniMax H3 Max. First-frame, last-frame, paired-frame, and reference scenarios have different input requirements.
Model overview
Generate video using text, frame images, or multimodal references with MiniMax H3 Max. First-frame, last-frame, paired-frame, and reference scenarios have different input requirements.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | minimax-h3-max |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Text prompt describing the video to generate.
Length: minimum 1; maximum 7000.
Required for First Frame, First and Last Frames.
Additional requirements depend on other values. See model rules.
URL of the first-frame image.
Media types: image/*.
Required for First and Last Frames, Last Frame.
Additional requirements depend on other values. See model rules.
URL of the last-frame image.
Media types: image/*.
Additional requirements depend on other values. See model rules.
Reference image URLs. Up to 9 images.
Item count: maximum 9.
Media types: image/*.
Up to three public media URLs. Each clip must be 2-15 seconds, and the combined duration of this media type must not exceed 15 seconds.
Item count: maximum 3.
Media types: video/*.
Up to three public media URLs. Each clip must be 2-15 seconds, and the combined duration of this media type must not exceed 15 seconds. Reference audio requires a reference image or video.
Item count: maximum 3.
Media types: audio/*.
Output video resolution. Supports 480P, 768P (default), and 1080P; 2K is not supported.
Allowed values: "480P", "768P", "1080P".
Studio preset: "768P".
Video duration in seconds. Must be between 5 and 15 seconds; defaults to 5.
Value: minimum 5; maximum 15.
Studio preset: 5.
Output aspect ratio. Text-to-video uses a listed ratio and falls back from adaptive to 16:9. Frame-guided generation follows the source image; reference generation supports the listed ratios or adaptive.
Allowed values: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16", "adaptive".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
AIGC watermark; only supported for 480P/768P and must be omitted at 1080P.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Video | No reference media required |
| First Frame | first_frame_image |
| First and Last Frames | first_frame_image, last_frame_image |
| Last Frame | last_frame_image |
| Reference to Video | No reference media required |
- When
audio_urlsis provided andimage_urlsis omitted andvideo_urlsis omitted, provideimage_urls; keepimage_urls, when supplied, at least 1 items. - When
first_frame_imageis provided, omitaudio_urls; omitimage_urls; omitvideo_urls. - When
last_frame_imageis provided, omitaudio_urls; omitimage_urls; omitvideo_urls. - When the input mode is First Frame, provide
first_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls; omitlast_frame_image. - When the input mode is First and Last Frames, provide
first_frame_image,last_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls. - When the input mode is Last Frame, provide
last_frame_image; omitaudio_urls; omitimage_urls; omitvideo_urls; omitfirst_frame_image. - When the input mode is Text to Video, omit
last_frame_image; omitfirst_frame_image. - When the input mode is Reference to Video, omit
last_frame_image; omitfirst_frame_image.
Parameter meaning
- Reference audio requires reference imagery or video. Video and audio duration budgets are evaluated separately.
- The Max variant has its own minimum duration. Use its item-specific range instead of the standard H3 range.
- Provide a nonempty prompt in every generation mode, including media-conditioned requests.
- Reference audio must be accompanied by reference imagery or video. Audio alone is not a complete visual-generation input.
Dependencies
- At the 1080P tier, omit watermark entirely, including a false value. An omitted field and an explicitly false field have different validity here.
- Reference-media mode and explicit first/last-frame mode are distinct and cannot be mixed.
- Check video and audio durations separately. Trim reference clips to the permitted range before submission; a valid URL alone does not make an overlong clip valid.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-h3-max",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "768P",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: duration · batch_size · resolution · prompt.
First and Last Frames
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-h3-max",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "768P",
"prompt": "A paper city under soft morning light",
"first_frame_image": "YOUR_FIRST_FRAME_IMAGE",
"last_frame_image": "YOUR_LAST_FRAME_IMAGE"
}
}'Parameters used: duration · batch_size · resolution · prompt · first_frame_image · last_frame_image.
Last Frame
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-h3-max",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "768P",
"prompt": "A paper city under soft morning light",
"last_frame_image": "YOUR_LAST_FRAME_IMAGE"
}
}'Parameters used: duration · batch_size · resolution · prompt · last_frame_image.
Reference to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-h3-max",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "768P",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: duration · batch_size · resolution · prompt.
1080P first-frame generation without a watermark field
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-h3-max",
"parameters": {
"duration": 5,
"batch_size": 1,
"resolution": "1080P",
"prompt": "The camera slowly moves through the paper city.",
"first_frame_image": "https://example.com/first-frame.png"
}
}'Parameters used: duration · batch_size · resolution · prompt · first_frame_image.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.