How minimax-ai/minimax-h3 works
Purpose and Entry Points
MiniMax H3 is a multimodal generative-model distribution for video plus native stereo audio. It ships two locally deployable 768p H3-Base checkpoint families—first/last-frame (FL2VA/) and multimodal-reference (Ref2VA/)—plus API-driven Context-IR and 2K regeneration workflows. Primary repository entry metadata is model_index.json; task-specific model manifests are FL2VA/model_index.json and Ref2VA/model_index.json.
Deployment Boundary
This is a model/checkpoint repository, not an application service implementation. Inference is supplied by external runtimes: SGLang, vLLM, Diffusers, or ComfyUI. The documented local serving entry is SGLang with a task variant, while reproducible request clients are shell scripts such as scripts/readme/reproducible-768p-t2va-request.sh and scripts/readme/reproducible-768p-ref2va-request.sh.
Checkpoint Families
FL2VA/ supports text-to-audio-video and optional first/last-frame conditioning. Ref2VA/ supports text plus images, video, and audio references. Both are self-contained Hugging Face-style component bundles, with duplicated architectural implementations and distinct transformer weights:
• FL2VA/transformer/config.json
• Ref2VA/transformer/config.json
• FL2VA/processor/preprocessor_config.json
Multimodal Input Processing
A processor/tokenizer and pretrained text encoder convert prompt and structured multimodal context into text/vision representations, including special dialogue tokens required by the model. Primary artifacts:
• FL2VA/processor/chat_template.json
• FL2VA/tokenizer/tokenizer_config.json
• FL2VA/text_encoder/config.json
For Ref2VA, input references are bounded externally by the API/workflow contract; modality interpretation and context refinement belong to hosted Context-IR rather than this repository.
Latent Encoding and Decoding
Visual and audio data cross explicit VAE boundaries before and after generation. The visual VAE is temporally causal and contains convolutional, attention, normalization, and ViT/CNN decoder components:
• FL2VA/video_vae/minimax_h3_video_vae.py
• FL2VA/video_vae/klvae.py
• FL2VA/video_vae/vae_vit.py
Audio is independently encoded/decoded per stereo channel through the DAC-based AudioVAE:
• FL2VA/audio_vae/minimax_h3_audio_vae.py
• FL2VA/audio_vae/dac_audio_vae.py
• FL2VA/audio_vae/dac_bigvgan.py
Joint Generation Core
Encoded text, visual, and audio context is packed into one multimodal sequence for the H3 Omni Transformer. The transformer jointly predicts video and audio latents; modality-specific behavior is concentrated at I/O and conditioning branches rather than separate transformer trunks. Weight shard indexes identify externally stored model tensors:
• FL2VA/transformer/model.safetensors.index.json
• Ref2VA/transformer/model.safetensors.index.json
• transformer/diffusion_pytorch_model.safetensors.index.json
Schedulers define the diffusion-generation control schedule:
• scheduler/scheduler_config.json
• audio_scheduler/scheduler_config.json
Full 2K Workflow and External Services
The 2K path is orchestrated across boundaries: hosted H3-Context-IR transforms raw multimodal intent into generation-ready context; local H3-Base produces 768p video/audio; hosted H3-Regenerate-2K consumes the base result plus original context. Context-IR and regeneration are not included locally and require MiniMax Open Platform APIs. Request examples encode this handoff:
• scripts/readme/full-2k-t2va-h3-context-ir.sh
• scripts/readme/full-2k-t2va-h3-base.sh
• scripts/readme/full-2k-t2va-h3-regenerate-2k.sh
Prompt-Authoring Layer
The skills/ hierarchy is an independent prompt-authoring package for users or agents, not inference code. It standardizes structured H3 prompting and style-specific planning before requests reach Context-IR or H3-Base:
• skills/h3-prompt-writing/SKILL.md
• skills/h3-prompt-writing/references/base-en.txt
• skills/h3-prompt-writing/references/ref-en.txt
Components 18
Local H3-Base distribution
Deployable 768p checkpoint families and components.
- Distribution manifest · Top-level model entry metadata.
model_index.json - FL2VA manifest · First/last-frame audio-video variant.
FL2VA/model_index.json - Ref2VA manifest · Multimodal-reference audio-video variant.
Ref2VA/model_index.json - FL2VA input processor · Formats prompts and structured conditioning.
FL2VA/processor/chat_template.json - Tokenizer · Defines special dialogue tokens.
FL2VA/tokenizer/tokenizer_config.json - Text encoder · Converts tokenized prompts to representations.
FL2VA/text_encoder/config.json - Temporal video VAE · Causally encodes and decodes video latents.
FL2VA/video_vae/minimax_h3_video_vae.py - Stereo AudioVAE · Independently processes stereo-channel latents.
FL2VA/audio_vae/minimax_h3_audio_vae.py - FL2VA Omni Transformer · Jointly predicts video and audio latents.
FL2VA/transformer/model.safetensors.index.json - Ref2VA Omni Transformer · Distinct weights for multimodal-reference generation.
Ref2VA/transformer/model.safetensors.index.json - Video scheduler
scheduler/scheduler_config.json - Audio scheduler
audio_scheduler/scheduler_config.json
External runtime and APIs
Inference and 2K services outside this repository.
- Inference runtimes · SGLang, vLLM, Diffusers, or ComfyUI execute local inference.
- Local request scripts · Reproducible 768p task requests.
scripts/readme/reproducible-768p-t2va-request.sh - H3-Context-IR · Refines raw multimodal intent into generation-ready context.
scripts/readme/full-2k-t2va-h3-context-ir.sh - H3-Base 768p generation · Produces base video and native stereo audio.
scripts/readme/full-2k-t2va-h3-base.sh - H3-Regenerate-2K · Consumes base output and original context.
scripts/readme/full-2k-t2va-h3-regenerate-2k.sh
Prompt authoring
Independent structured-prompt package.
- H3 prompt-writing skill · Standardizes structured and style-specific prompts.
skills/h3-prompt-writing/SKILL.md
Connections 20
- Distribution manifest → FL2VA manifest: indexes
- Distribution manifest → Ref2VA manifest: indexes
- FL2VA manifest → FL2VA input processor: configures
- FL2VA input processor → Tokenizer: uses
- Tokenizer → Text encoder: tokens to embeddings
- Text encoder → FL2VA Omni Transformer: text context
- Temporal video VAE → FL2VA Omni Transformer: video latents
- Stereo AudioVAE → FL2VA Omni Transformer: audio latents
- Video scheduler → FL2VA Omni Transformer: video diffusion control
- Audio scheduler → FL2VA Omni Transformer: audio diffusion control
- FL2VA Omni Transformer → Temporal video VAE: predicted video latents
- FL2VA Omni Transformer → Stereo AudioVAE: predicted audio latents
- Ref2VA manifest → Ref2VA Omni Transformer: configures
- Local request scripts → Inference runtimes: submits requests
- Inference runtimes → FL2VA manifest: loads task variant
- Inference runtimes → Ref2VA manifest: loads task variant
- H3 prompt-writing skill → H3-Context-IR: structured prompts
- H3 prompt-writing skill → Local request scripts: structured prompts
- H3-Context-IR → H3-Base 768p generation: generation-ready context
- H3-Base 768p generation → H3-Regenerate-2K: base result and context