MiniMax H3
MiniMax video model: clips with sound of 4–15 seconds in 768p and 2K from text, from first and last frames and from references — up to 9 images, 3 videos and 3 audio clips.
Specifications
Capabilities
Description
What it does
- Text to video: describe the scene, the characters, the camera movement and the sound. The aspect ratio is required here (16:9, 9:16, 1:1, 4:3, 3:4, 21:9).
- Frames: a first frame, a last frame alone, or both. The video starts or ends on these images; the frame follows the image.
- Video from references: up to 9 images, up to 3 videos (2–15 s each, 15 s in total at most) and up to 3 audio clips (2–15 s, 15 s in total), 12 files at most. References set the character's appearance, motion, camera, style and voice. In the prompt, name files in order: Image 1, Video 1, Audio 1.
- Length: a whole number of seconds from 4 to 15. Resolution 768p or 2K. Aspect ratio: adaptive (default, from the files), 16:9, 9:16, 1:1, 4:3, 3:4, 21:9.
- The model creates the sound itself from the prompt and references: speech, music, effects.
- A prompt is always required, up to 7000 characters. English works best.
File requirements
- Images: JPG, PNG, WEBP, HEIC, HEIF, up to 30 MB, sides of 256–5760 px, proportions from 2:5 to 5:2.
- Videos: MP4 or MOV (H.264 or H.265), up to 50 MB, 23.976–60 fps, sides of 256–5760 px, proportions from 2:5 to 5:2.
- Audio: WAV or MP3, up to 15 MB.
How to call
POST /v1/videos/generations (or /v1/videos/references) with a JSON body. Files go in media: [{"type": "first_frame" | "last_frame" | "reference_image" | "reference_video" | "reference_audio", "url": "…"}] as an https link or a data URI. Frames and references cannot be combined in one request.
{"model": "minimax/h3-08130", "prompt": "A cinematic space-opera teaser: a fleet jumps into hyperspace above a purple nebula", "duration": 5, "resolution": "2k", "aspect_ratio": "16:9"}From references:
{"model": "minimax/h3-08130", "prompt": "The character performs street dance, following the motion in Video 1; the appearance follows Image 1.", "duration": 5, "resolution": "768p", "media": [{"type": "reference_image", "url": "https://example.com/hero.png"}, {"type": "reference_video", "url": "https://example.com/dance.mp4"}]}Response
The response arrives when the video is ready: usually in 3 to 10 minutes, longer for a 15-second 2K clip. Set a client timeout of at least 16 minutes and send an Idempotency-Key header: repeating a request with the same key does not start a second paid generation; it waits for and returns the clip already paid for. data[0].url is a link to the MP4 file (it lives one day, save the file right away), duration_seconds is the clip length.
Errors
- 400: invalid input; the error text names the field. Model rejection codes: input_moderation, output_moderation, input_download_failed (the model could not download a file), input_invalid_media (a file did not fit). Rejected requests are not billed.
- 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the video was not received; nothing is charged.
Price
You pay per second. The rate depends on the resolution (768p or 2K). Seconds of input video (references) are billed at the same rate, images beyond five separately. The prices are shown on this page.
Parameters
Endpoints
Code examples
Other MiniMax models
/v1 in base_url. For Anthropic SDK — without /v1.