Skip to main content
POST
Model selection: Use MiniMax-H3-Max when speed matters and you only need text-to-video or first/last-frame control. For 2K, middle frames, reference images, reference videos, or reference audio, 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.
This model does not support image_urls, video_urls, audio_urls, or image_with_roles[].role = "reference_image". Any reference-media field returns 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:
  • 768P (default)
  • 480P
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
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 and last_frame_image.Each role accepts at most one image. role cannot be empty.
boolean
default:"false"
Whether to add an AIGC watermark. Alias: aigc_watermark.
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.

Unsupported parameters

The following values return HTTP 400 before task creation and billing:
For reference media, 2K, middle frames, or a 4-second video, change model to MiniMax-H3 and follow the MiniMax-H3 guide.

Image limits

The total request body must be 64 MB or less. Use public URLs; Base64 is not supported. Invalid images may fail during generation; failed tasks are refunded automatically.

Examples

First-frame image-to-video

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

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 equals the per-second rate multiplied by video duration. First and last frame images 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