Baltor Get started

Models

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

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Minimax through OpenRouter0.255 USD1.02 USD204,800OpenRouter endpoints, read
Google through OpenRouter0.300 USD1.20 USD196,608OpenRouter endpoints, read
Hugging Face direct0.300 USD1.20 USD204,800 older than 30 days; check the providermodels.dev, read
Novita through OpenRouter0.300 USD1.20 USD204,800OpenRouter 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.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-TQ1_052.5 GiB57.6 GiB63.4 GiB
UD-IQ1_S59.6 GiB65.0 GiB70.8 GiB
UD-IQ1_M64.0 GiB69.6 GiB75.5 GiB
UD-IQ2_XXS68.9 GiB74.8 GiB80.6 GiB
UD-IQ2_M72.7 GiB78.8 GiB84.6 GiB
Q2_K77.6 GiB83.9 GiB89.7 GiB
Q2_K_L77.7 GiB84.0 GiB89.9 GiB
UD-Q2_K_XL79.9 GiB86.3 GiB92.1 GiB
UD-IQ3_XXS87.2 GiB94.0 GiB99.8 GiB
Q3_K_S91.9 GiB98.9 GiB105 GiB
UD-Q3_K_XL94.5 GiB102 GiB107 GiB
Q3_K_M102 GiB109 GiB115 GiB
IQ4_XS114 GiB122 GiB127 GiB
IQ4_NL120 GiB129 GiB134 GiB
Q4_0121 GiB129 GiB135 GiB
Q4_K_S121 GiB130 GiB135 GiB
UD-Q4_K_XL123 GiB131 GiB137 GiB
Q4_K_M129 GiB138 GiB144 GiB
Q4_1133 GiB142 GiB148 GiB
Q5_K_S147 GiB156 GiB162 GiB
UD-Q5_K_XL151 GiB161 GiB167 GiB
Q5_K_M151 GiB161 GiB167 GiB
Q6_K175 GiB186 GiB192 GiB
UD-Q6_K_XL181 GiB192 GiB198 GiB
Q8_0226 GiB240 GiB246 GiB
UD-Q8_K_XL243 GiB258 GiB264 GiB
BF16426 GiB450 GiB456 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.