Skip to main content
POST

MiniMax-H3 Video Generation

OpenAI-compatible entry point. Uses a JSON request body and supports text-to-video, image-to-video, and multimodal reference-to-video. For the unified video format, see Create Video.

Method and Path

Generation Scenarios

Image-to-video and multimodal reference-to-video are mutually exclusive. The total request body size must not exceed 64 MB; for large files use a public URL instead of Base64.

Body

string
required
Model name. Currently only MiniMax-H3 is supported.
string
required
Non-empty prompt, up to 7000 characters.
integer
default:"5"
Duration in seconds, range 4–15. Out-of-range values are clamped to the boundary by the server.
string
default:"2K"
Output resolution: 768P or 2K. Case-insensitive; unrecognized values fall back to 2K.
string
A single input image used as the first frame. Takes precedence over images when both are present.Supports public URLs, mm_file://{file_id}, and Data URLs. Formats: JPG, JPEG, PNG, WEBP, HEIC, HEIF; max 30 MB per file; dimensions 256–5760 px; aspect ratio 0.4–2.5.
array<string>
Multiple input images. One image is the first frame, two are first and last frame, three or more are all treated as reference images; up to 9 reference images.
string
One of adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Text-to-video defaults to 16:9; image-to-video is forced to adaptive; multimodal reference defaults to adaptive.
string
A single reference video URL. Supports MP4, MOV, encoded H.264/H.265; max 50 MB per file; duration 2–15 seconds.
array<string>
Multiple reference video URLs, up to 3 with total duration ≤ 15 seconds. Takes precedence over reference_video when both are present.
string
A single reference audio URL. Supports WAV, MP3; max 15 MB per file; duration 2–15 seconds.
array<string>
Multiple reference audio URLs, up to 3 with total duration ≤ 15 seconds. Takes precedence over reference_audio when both are present.
boolean
default:"false"
Whether to add an AIGC watermark.

Response Example

Response

string
Task ID. Use this for subsequent queries.
string
Legacy task ID; same value as id. New integrations should use id.
string
Object type, always video.
string
Model name used by the task.
string
Task status: queued, in_progress, completed, or failed.
integer
Task progress percentage, 0–100.
integer
Task creation time, Unix timestamp (seconds).

Error Codes