MiniMax H3
import { experimental_generateVideo as generateVideo } from 'ai';
const result = await generateVideo({ model: 'minimax/minimax-h3', prompt: 'A serene mountain lake at sunrise.'});About MiniMax H3
MiniMax H3, released July 30, 2026, is MiniMax's video generation model. It takes a text prompt, a starting image, a pair of first and last frames, or reference material, and returns mp4 at 2K resolution.
Four generation modes cover most production needs. Text-to-video builds a clip from a description alone. First-frame image-to-video animates a still and follows that image's aspect ratio. First-to-last keyframe transitions define both endpoints and let MiniMax H3 generate the motion between them. Multimodal reference-to-video conditions a generation on reference images, video, or audio in a single request. Reference and keyframe modes are mutually exclusive, so choose one per request.
Reference mode uses ordering to hold a subject steady. Pass source material through inputReferences and refer to each item by its position in the prompt, such as Image 1. That gives you a way to carry a character or product across several clips.
Clips run from five to 15 seconds at 2K resolution in mp4. Aspect ratios include 21:9, 16:9, 4:3, 1:1, 3:4, and 9:16, or the output adapts to a supplied image. Pick the ratio at request time instead of cropping afterward.
Call MiniMax H3 with generateVideo from the AI SDK, imported as experimental_generateVideo. Set the model to minimax/minimax-h3, pass your prompt plus optional aspectRatio and duration, and add inputReferences when you condition on source material. Generation runs longer than a text completion, so raise pollTimeoutMs for longer clips.
AI Gateway routes MiniMax H3 across MiniMax, tracks usage and cost per request, and handles retries and failover. The listed video rate is N/A, and the pricing panel on this page shows the current rate and unit. AI Gateway reflects provider pricing with no markup and charges no platform fee on inference.