The self-hosted models support unified parameters such as duration, image, and reference_image_urls. The platform automatically converts them to upstream fields, so there is no need to manually use native fields such as seconds or images.
1. Endpoints
| Operation | Request Method | Path |
|---|---|---|
| Submit a generation task | POST | /v1/video/generations |
| Submit a generation task (equivalent endpoint) | POST | /v1/videos |
| Query a task | GET | /v1/video/generations/{task_id} |
| Download the generated result | GET | /v1/videos/{task_id}/content |
Video generation uses an asynchronous task workflow: after submitting a generation request, use the returned task_id to query the task, and download the video after generation is complete.
This document uses {BASE_URL} to represent the platform API root URL.
2. Models and Capabilities
| Capability | MiniMax-H3 (Official) |
Three Self-Hosted Tiers |
|---|---|---|
| Model name | MiniMax-H3 |
minimax-h3-base / minimax-h3-base-fast / minimax-h3-mini |
| Video duration | 4–15 seconds, 5 seconds by default | 5–15 seconds |
| Resolution | 768P (default), 2K |
720p only; 768P is converted to 720p |
| First and last frames | Supported | Supported |
| Reference images | Up to 9 images | Up to 9 images, no more than 20 MB each |
| Reference videos | Up to 3 videos | Not supported |
| Reference audio | Up to 3 audio clips | Up to 3 audio clips, no more than 50 MB each |
| Output details | Includes native stereo audio | MP4, 24 fps |
The three self-hosted tiers have the same parameters and capabilities, differing only in generation speed and unit price.
Reference material URLs for all models must be publicly accessible from mainland China. Do not use direct overseas links that are inaccessible from mainland China.
3. Submit a Generation Task
POST {BASE_URL}/v1/video/generationsContent-Type: application/jsonYou can also use the equivalent path:
POST {BASE_URL}/v1/videos3.1 Common Parameters
| Parameter | Type | Description |
|---|---|---|
model |
string | Required. Specifies the model name |
prompt |
string | Video generation prompt; required for self-hosted models, with a maximum length of 30,000 characters |
duration |
number | Video duration in seconds; the official model supports 4–15 seconds, while self-hosted models support 5–15 seconds |
resolution |
string | The official model supports 768P and 2K; explicitly specifying 720p is recommended for self-hosted models |
aspect_ratio |
string | Output aspect ratio; see the rules below |
image |
string | URL of the first frame or a single reference image |
images |
array of strings | List of image URLs; compatibility field |
last_frame_image_url |
string | URL of the last-frame image; can be used together with image for first-and-last-frame generation |
reference_image_urls |
array of strings | List of reference image URLs, up to 9 images |
reference_video_urls |
array of strings | List of reference video URLs; supported only by the official model, up to 3 videos |
reference_audio_urls |
array of strings | List of reference audio URLs, up to 3 audio clips |
generation_mode |
string | Optional, t2v / i2v / r2v; if omitted, the platform automatically determines the mode based on the provided materials |
Explicitly setting duration and resolution is recommended to prevent differences in model defaults from affecting the results.
3.2 Aspect Ratio Settings
Official Model
- Text-to-video generation uses
16:9by default. adaptiveis recommended for first-and-last-frame generation or generation with multiple reference materials.
Self-Hosted Models
The following fixed aspect ratios are supported:
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 4:5, 5:4When aspect_ratio: "adaptive" is provided, the platform omits the aspect ratio field from the upstream request, allowing the upstream service to determine the final aspect ratio.
3.3 Self-Hosted-Specific Parameters and Restrictions
| Parameter or Material | Rule |
|---|---|
prompt_optimization |
Optional Boolean value, false by default; when set to true, the upstream service rewrites the prompt using the official H3 structure |
| Reference images | Up to 9 images, no more than 20 MB each |
| Reference audio | Up to 3 audio clips, no more than 50 MB each |
| Multiple references | At least one reference image or reference audio clip must be provided |
| First and last frames | Use image + last_frame_image_url as the first and last frames, respectively |
| Reference videos | Not supported; do not provide reference_video_urls |
Self-hosted services do not reject out-of-range parameters at the platform level. When unsupported configurations such as a 4-second duration, 2K resolution, or reference videos are submitted, the corresponding values or fields are passed upstream, where they may be ignored or cause an error. Billing is still deducted in advance based on the duration specified in the request.
Therefore, self-hosted requests should use 5–15 seconds, 720p, and no reference videos.
4. Request Examples
The following request bodies can be submitted to any POST endpoint. The asset URLs in the examples are placeholders only; replace them with valid, publicly accessible URLs.
4.1 Official Model: Generate from Reference Images
{ "model": "MiniMax-H3", "prompt": "The character from reference image 1 runs through the streets on a rainy night, cinematic shot", "resolution": "768P", "duration": 8, "aspect_ratio": "16:9", "reference_image_urls": [ "https://example.com/character.png" ]}4.2 Self-Hosted Model: Text-to-Video Only
{ "model": "minimax-h3-base-fast", "prompt": "At the seaside in the early morning, a seagull skims over the water as the camera slowly moves forward in soft natural light", "resolution": "720p", "duration": 8, "aspect_ratio": "16:9", "generation_mode": "t2v"}4.3 Self-Hosted Model: First-Frame-to-Video
{ "model": "minimax-h3-base", "prompt": "The character in the image runs through the streets on a rainy night, cinematic shot", "resolution": "720p", "aspect_ratio": "16:9", "duration": 8, "image": "https://example.com/character.png"}4.4 Self-Hosted Model: First- and Last-Frame Generation
{ "model": "minimax-h3-base", "prompt": "The character walks naturally from one end of the street to the other while maintaining a consistent appearance, with the camera following smoothly", "resolution": "720p", "duration": 8, "aspect_ratio": "adaptive", "image": "https://example.com/first-frame.png", "last_frame_image_url": "https://example.com/last-frame.png"}The platform passes the images upstream in first-frame, then last-frame order, and automatically sets the upstream mode to fl2va.
4.5 Self-Hosted Model: Multi-Reference Images and Audio
{ "model": "minimax-h3-mini", "prompt": "Maintain the character's appearance from image 1 and speak with the tone and rhythm of audio 1", "resolution": "720p", "duration": 10, "reference_image_urls": [ "https://example.com/character.png" ], "reference_audio_urls": [ "https://example.com/voice.mp3" ]}4.6 cURL Submission Example
Save the request body as request.json, then run:
curl --request POST "${BASE_URL}/v1/video/generations" \ --header "Content-Type: application/json" \ --data-binary @request.jsonIf the platform requires authentication, add the required authentication headers according to its specifications.
5. Query Tasks and Download Videos
5.1 Query a Task
Replace {task_id} with the task ID actually returned in the submission response:
GET {BASE_URL}/v1/video/generations/{task_id}cURL example:
curl "${BASE_URL}/v1/video/generations/${TASK_ID}"Use the query response to determine whether the task has completed. The exact status fields, status values, and failure message format depend on the platform's actual response.
5.2 Download the Result
After the task has completed, download the video directly:
GET {BASE_URL}/v1/videos/{task_id}/contentcURL example:
curl --location --fail \ "${BASE_URL}/v1/videos/${TASK_ID}/content" \ --output video.mp4Query and download requests must also include authentication information as required by the platform.
6. Self-Hosted Parameter Conversion Rules
The platform automatically performs the following conversions, allowing clients to consistently use unified fields.
| Meaning | Unified Field | Actual Upstream Input |
|---|---|---|
| Video duration | duration: 8 |
"seconds": "8" |
| Reference image or first frame | reference_image_urls, image, images, input_reference |
Merged in the listed order and deduplicated into images |
| Last frame | last_frame_image_url |
Appended to the image list, with mode=fl2va set automatically |
| Reference audio | reference_audio_urls |
audios |
| Generation mode | generation_mode |
Converted to mode; when omitted, it is automatically inferred from the provided media |
| Resolution | resolution: "768P" |
resolution: "720p"; there is no corresponding option for 2K |
| Adaptive aspect ratio | aspect_ratio: "adaptive" |
The aspect ratio field is omitted |
| Aspect ratio alias | ratio |
Normalized to aspect_ratio |
| Reference video | reference_video_urls |
Not supported; the platform will still pass it unchanged to the upstream service for processing |
When generating from first and last frames, it is recommended to specify the two frames only through image and last_frame_image_url. Avoid combining them with other image fields, as doing so may affect the image order.
7. Upstream-Native Field Compatibility
Self-hosted models also support submitting upstream-native fields directly. The platform does not modify these native fields.
| Native Field | Supported Formats or Values |
|---|---|
seconds |
String or number, such as "8" or 8 |
images |
List of image URLs |
audios |
List of audio URLs |
mode |
t2va / i2va / fl2va / l2va / ref2va |
For example:
{ "model": "minimax-h3-base", "prompt": "The character in the image runs through the streets on a rainy night, cinematic shot", "resolution": "720p", "aspect_ratio": "16:9", "seconds": "8", "images": [ "https://example.com/character.png" ], "mode": "i2va"}For new integrations, using unified fields is recommended. The existing documentation does not define conflict precedence when synonymous unified and native fields are submitted together. Avoid setting the same option more than once in a single request, such as providing both duration and seconds.
