How to use Xiaomi MiMo Token Plan models in OpenCode
Xiaomi has recently launched their Token Plan (monthly subscription) where you’ll get a fixed tokens with no 5-hour usage limits like others
👉 http://platform.xiaomimimo.com
If you want to use this in your OpenCode, you might need to create a custom provider and use it for now.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"mimo-token-plan": {
"npm": "@ai-sdk/openai-compatible",
"name": "MiMo (Token Plan)",
"options": {
"baseURL": "https://token-plan-sgp.xiaomimimo.com/v1",
"apiKey": "{env:MIMO_API_KEY}"
},
"models": {
"mimo-v2-pro": {
"name": "MiMo-V2-Pro",
"limit": {
"context": 1048576,
"output": 131072
},
"modalities": {
"input": ["text"],
"output": ["text"]
}
}
}
}
}
}