MiniMax H3
import { experimental_generateVideo as generateVideo } from 'ai';
const result = await generateVideo({ model: 'minimax/minimax-h3', prompt: 'A serene mountain lake at sunrise.'});Frequently Asked Questions
What can MiniMax H3 generate video from?
A text prompt, a starting image, a pair of first and last frames, or reference material. Reference mode accepts images, video, or audio in a single request.
What resolution and duration does MiniMax H3 output?
Output is mp4 at 2K resolution, from five to 15 seconds. Supported aspect ratios include 21:9, 16:9, 4:3, 1:1, 3:4, and 9:16, and the output adapts to the aspect ratio of a supplied image.
Can I combine reference material with first and last keyframes?
No. Reference and keyframe modes are mutually exclusive, so use one per request. Split the work across separate generations when you need both kinds of control.
How do I hold a subject consistent across clips?
Pass source material through
inputReferencesand refer to each item by its order in the prompt, such asImage 1. MiniMax H3 conditions the generation on that reference, which keeps a character or product steady across shots.How do I call MiniMax H3 from the AI SDK?
Use
generateVideo, imported asexperimental_generateVideo, with the model set tominimax/minimax-h3. Pass your prompt plus optionalaspectRatioandduration, and addinputReferencesfor reference-conditioned generations.Why do my requests time out before the video finishes?
Video generation takes longer than a text completion. Raise
pollTimeoutMsin the provider options and extend fetch timeouts in Node.js so the request survives until the clip is ready.What does MiniMax H3 cost?
The listed video rate is N/A. Check the pricing panel on this page for the current rate and unit. AI Gateway reflects provider pricing with no markup and charges no platform fee on inference.
Can I try MiniMax H3 before integrating it?
Yes. Open https://ai-sdk.dev/playground/minimax:MiniMax-H3 to generate clips interactively and compare prompts, durations, and aspect ratios.
Does MiniMax H3 support zero data retention?
Zero Data Retention is not currently available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.