Skip to main content
POST
Model selection: Use MiniMax-H3-Max for fast text-to-video, first/last-frame control, or multimodal reference generation at 480P, 768P, or 1080P. For 2K or middle frames, use MiniMax-H3.

Authentication

string
required
All endpoints require Bearer Token authentication. Get your key from the API Key page.

Choose the right model

MiniMax-H3-Max does not support 2K and its output cannot be used as the source for Regeneration. Use MiniMax-H3 when you need either capability.

Generation modes

The request fields determine the mode automatically; do not send a mode field.
First/last-frame fields cannot be combined with reference media. Reference audio must accompany at least one reference image or video. Invalid combinations return HTTP 400 synchronously; no task is created or charged.

Request parameters

string
required
Fixed value: MiniMax-H3-MaxModel IDs are case-insensitive; minimax-h3-max is also accepted.
string
required
A non-empty description of the video. Required in every mode.Maximum: 7000 characters.
integer
default:"5"
Video duration in seconds.
  • Integer from 5 to 15
  • Default: 5
  • 4 seconds is not supported
string
default:"768P"
Output resolution: 480P, 768P (default), or 1080P.At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
2K, 1440P, and 2048P are not supported. Invalid values return HTTP 400 and are not silently downgraded.
string
Output aspect ratio. The aliases size and ratio are also accepted.Text-to-video values: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
  • T2V without this field, or with adaptive: falls back to 16:9
  • I2V: determined by the input image; this field is ignored
  • Multimodal references: optional; defaults to adaptive, or specify an explicit ratio
string
Public image URL used as the video’s first frame.
string
Public image URL used as the video’s last frame. It can be used alone or together with first_frame_image.
object[]
Role-based image array that can replace first_frame_image, last_frame_image, or image_urls.Up to one first frame and one last frame. Reference images in this array and image_urls together must not exceed 9. Frame roles cannot be mixed with reference-image roles.
string[]
Public reference-image URL array. Together with reference images in image_with_roles, at most 9 images. All images are treated as references, never automatically as first/last frames. For first-frame control, use first_frame_image or the first_frame role.
string[]
Public reference-video URL array; a single video can also use video_url (string). At most 3 clips, each 2–15 seconds, with a combined reference-video duration of at most 15 seconds.Reference-video duration is read at submission for billing. If it cannot be read, HTTP 400 is returned synchronously; no task is created or charged.
string[]
Public reference-audio URL array; a single clip can also use audio_url (string). At most 3 clips, each 2–15 seconds, with a combined reference-audio duration of at most 15 seconds. Must accompany at least one reference image or video; audio alone is not supported.
boolean
default:"false"
Whether to add an AIGC watermark. Alias: aigc_watermark.Watermarks are only supported at 480P / 768P. At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
string
Receives a notification when the task reaches a successful or failed terminal state.
Use webhook, not MiniMax’s callback_url. The gateway reserves callback_url for internal polling acceleration.

Parameter constraints

The following invalid parameters or combinations return HTTP 400 before task creation and billing: Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.
At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.
For 2K, middle frames, or a 4-second video, use MiniMax-H3 and adjust the parameters accordingly.

Input media limits

The total request body must not exceed 64 MB. Use public URLs for images, videos, and audio; do not use Base64.

Images

Reference videos

Reference audio

Reference audio must accompany a reference image or video. Video and audio duration totals are calculated separately; each must not exceed 15 seconds. Media that does not meet these requirements may fail during generation; failed tasks are refunded automatically.

Examples

First-frame image-to-video

First-and-last-frame image-to-video

1080P text-to-video

At 1080P, omit both watermark and its alias aigc_watermark, even when the value is false.

Multimodal reference generation

Each reference video and audio clip must be 2–15 seconds. Video and audio totals are calculated separately, each at most 15 seconds. Trim overlong media before submission; it is not valid input.

Query a task

Submission returns a task_id. Poll Task Status every 5–10 seconds; use a client timeout of 15 minutes.
Generated video URLs typically expire after about 24 hours. Download and store the result promptly.

Pricing

Total cost includes generated video, additional input images, and reference video:
First frames, last frames, and reference images are counted together. The first 2 images are free; additional images are charged individually. Total reference-video duration must not exceed 15 seconds. All rates are subject to model pricing. In the 1080P example with 2 reference images and reference audio, the images and audio are free. The estimated amount is reserved at submission. Failed tasks receive a full automatic refund; the task response’s cost field is authoritative.

Errors

Generation failures return status = failed with details in error.message and are refunded automatically.

Response

integer
Response status code; 200 on success
array
Submission result containing the initial task status and task ID