MiniMax M2
By MiniMax. 228.7 billion parameters, a context window of 204,800 tokens and the licence other.
Facts
- Released
- 2025-10-22 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- other the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 228.7 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- 11.0 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
- Knowledge cutoff
- Unknown
- Context window
- 196,608 tokens the maximum position embeddings in the model configuration model configuration, read
- 204,800 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 176,947 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls OpenRouter, read
- Inputs and outputs
- text in, text out Hugging Face, read
- Good for
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| Minimax through OpenRouter | 0.255 USD | 1.02 USD | 204,800 | OpenRouter endpoints, read | |
| Google through OpenRouter | 0.300 USD | 1.20 USD | 196,608 | OpenRouter endpoints, read | |
| Hugging Face direct | 0.300 USD | 1.20 USD | 204,800 | older than 30 days; check the provider | models.dev, read |
| Novita through OpenRouter | 0.300 USD | 1.20 USD | 204,800 | OpenRouter endpoints, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| UD-TQ1_0 | 52.5 GiB | 57.6 GiB | 63.4 GiB |
| UD-IQ1_S | 59.6 GiB | 65.0 GiB | 70.8 GiB |
| UD-IQ1_M | 64.0 GiB | 69.6 GiB | 75.5 GiB |
| UD-IQ2_XXS | 68.9 GiB | 74.8 GiB | 80.6 GiB |
| UD-IQ2_M | 72.7 GiB | 78.8 GiB | 84.6 GiB |
| Q2_K | 77.6 GiB | 83.9 GiB | 89.7 GiB |
| Q2_K_L | 77.7 GiB | 84.0 GiB | 89.9 GiB |
| UD-Q2_K_XL | 79.9 GiB | 86.3 GiB | 92.1 GiB |
| UD-IQ3_XXS | 87.2 GiB | 94.0 GiB | 99.8 GiB |
| Q3_K_S | 91.9 GiB | 98.9 GiB | 105 GiB |
| UD-Q3_K_XL | 94.5 GiB | 102 GiB | 107 GiB |
| Q3_K_M | 102 GiB | 109 GiB | 115 GiB |
| IQ4_XS | 114 GiB | 122 GiB | 127 GiB |
| IQ4_NL | 120 GiB | 129 GiB | 134 GiB |
| Q4_0 | 121 GiB | 129 GiB | 135 GiB |
| Q4_K_S | 121 GiB | 130 GiB | 135 GiB |
| UD-Q4_K_XL | 123 GiB | 131 GiB | 137 GiB |
| Q4_K_M | 129 GiB | 138 GiB | 144 GiB |
| Q4_1 | 133 GiB | 142 GiB | 148 GiB |
| Q5_K_S | 147 GiB | 156 GiB | 162 GiB |
| UD-Q5_K_XL | 151 GiB | 161 GiB | 167 GiB |
| Q5_K_M | 151 GiB | 161 GiB | 167 GiB |
| Q6_K | 175 GiB | 186 GiB | 192 GiB |
| UD-Q6_K_XL | 181 GiB | 192 GiB | 198 GiB |
| Q8_0 | 226 GiB | 240 GiB | 246 GiB |
| UD-Q8_K_XL | 243 GiB | 258 GiB | 264 GiB |
| BF16 | 426 GiB | 450 GiB | 456 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/unsloth/MiniMax-M2-GGUF:Q4_0 - LM Studio
lms get unsloth/MiniMax-M2-GGUF lms server start - llama.cpp server
llama-server -hf unsloth/MiniMax-M2-GGUF:Q4_0 --jinja - vLLM
vllm serve MiniMaxAI/MiniMax-M2 - SGLang
sglang serve --model-path MiniMaxAI/MiniMax-M2 --port 30000
Use it from your harness
Set up for Hugging Face with the model MiniMaxAI/MiniMax-M2. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"huggingface": {
"npm": "@ai-sdk/openai-compatible",
"name": "Hugging Face",
"options": {
"baseURL": "https://router.huggingface.co/v1",
"apiKey": "{env:HF_TOKEN}"
},
"models": {
"MiniMaxAI/MiniMax-M2": {
"name": "MiniMax M2",
"limit": {
"context": 204800,
"output": 176947
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"huggingface": {
"baseUrl": "https://router.huggingface.co/v1",
"api": "openai-completions",
"apiKey": "$HF_TOKEN",
"models": [
{
"id": "MiniMaxAI/MiniMax-M2"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Hugging Face documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Hugging Face documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- OpenRouter, model
minimax/minimax-m2 - Ollama, model
hf.co/unsloth/MiniMax-M2-GGUF:Q4_0
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by MiniMaxAI Hugging Face, read
Sources of this page
- huggingface.co/api/models/MiniMaxAI/MiniMax-M2, read
- huggingface.co/MiniMaxAI/MiniMax-M2/raw/main/config.json, read
- huggingface.co/api/models/unsloth/MiniMax-M2-GGUF/tree/main, read
- openrouter.ai/api/v1/models/minimax/minimax-m2/endpoints, read
- openrouter.ai/api/v1/models, read
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.