Xiaomi’s MiMo V2.5 Pro is a strong budget pick for one specific reason: a very large context window (around 1M tokens) paired with low, cache-aware API pricing and — notably — no surcharge for using that big context. For agentic coding on large repositories, being able to feed a lot of code without a long-context penalty is genuinely useful, and it pairs well with Claude Code.
This covers connecting MiMo to Claude Code, the model lineup, and the pricing. For routing options generally, see use cheap AI models with Claude Code.
Step 1: Get a MiMo API key
Sign up on Xiaomi’s MiMo platform and create an API key. Watch for free trial windows — MiMo has been offered with free access through various coding tools at launch.
Step 2: Connect to Claude Code
Two paths, depending on what MiMo exposes:
Anthropic-compatible endpoint (if available — check the docs): point Claude Code straight at it:
export ANTHROPIC_BASE_URL="https://api.xiaomimimo.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="your-mimo-key"
export ANTHROPIC_MODEL="mimo-v2.5-pro"
claude
Otherwise, via Claude Code Router using MiMo’s OpenAI-compatible endpoint:
{
"Providers": [
{
"name": "mimo",
"api_base_url": "https://api.xiaomimimo.com/v1/chat/completions",
"api_key": "$MIMO_API_KEY",
"models": ["mimo-v2.5-pro"]
}
],
"Router": { "default": "mimo,mimo-v2.5-pro" }
}
Step 3: Lean on the big context
MiMo’s ~1M token context is the reason to choose it. With no long-context surcharge, you can load large portions of a codebase affordably. In a router setup, set a high longContextThreshold so big-repo requests stay on MiMo.
MiMo models (confirm on Xiaomi)
| mimo-v2.5-pro | Flagship coding model; ~1M context |
|---|---|
| mimo-v2.5 | Standard tier |
| mimo-v2-flash | Faster, lighter variant |
Pricing
Xiaomi’s official V2.5 price update lists MiMo-V2.5-Pro at $0.0036 cache-hit input / $0.435 cache-miss input / $0.87 output per 1M tokens. Standard MiMo-V2.5 is cheaper at $0.0028 / $0.14 / $0.28 per 1M tokens. Xiaomi says legacy MiMo-V2-Pro / Omni names auto-route to V2.5 pricing from June 1, 2026 and are deprecated on June 30, 2026. Full detail: Xiaomi MiMo pricing and free tiers.
Verify
claude
# then: "load these files and explain how the module fits together"
If it handles the large context cleanly, MiMo is serving Claude Code.
Troubleshooting
- Auth errors — key not set in the current shell.
- Format errors — confirm the Anthropic vs OpenAI endpoint matches your setup path.
- “Model not found” — verify the model ID on Xiaomi’s platform.
- Config not applied (router) — run
ccr restart.
MiMo + Claude Code checklist
- MiMo API key created (check for free trials)
- Claude Code installed
- Connected via Anthropic endpoint or Claude Code Router
- Model set to mimo-v2.5-pro (verify ID)
- Big context exploited for large repos
Wrapping up
Xiaomi MiMo V2.5 Pro with Claude Code is the setup for big-repo coding on a budget: connect via an Anthropic endpoint or Claude Code Router, set the model, and exploit the ~1M context window — which, with no long-context surcharge and cache-aware V2.5 pricing, stays cheap to fill. Verify the current endpoint and rates on Xiaomi’s platform.
To use MiMo with Codex, see MiMo V2.5 + Codex CLI on Windows; for the cost detail, see Xiaomi MiMo pricing and free tiers.