mirror of https://github.com/openclaw/openclaw.git
2.8 KiB
2.8 KiB
| summary | read_when | title | ||
|---|---|---|---|---|
| Use Xiaomi MiMo models with OpenClaw |
|
Xiaomi MiMo |
Xiaomi MiMo
Xiaomi MiMo is the API platform for MiMo models. OpenClaw uses the Xiaomi
OpenAI-compatible endpoint with API-key authentication. Create your API key in the
Xiaomi MiMo console, then configure the
bundled xiaomi provider with that key.
Built-in catalog
- Base URL:
https://api.xiaomimimo.com/v1 - API:
openai-completions - Authorization:
Bearer $XIAOMI_API_KEY
| Model ref | Input | Context | Max output | Notes |
|---|---|---|---|---|
xiaomi/mimo-v2-flash |
text | 262,144 | 8,192 | Default model |
xiaomi/mimo-v2-pro |
text | 1,048,576 | 32,000 | Reasoning-enabled |
xiaomi/mimo-v2-omni |
text, image | 262,144 | 32,000 | Reasoning-enabled multimodal |
CLI setup
openclaw onboard --auth-choice xiaomi-api-key
# or non-interactive
openclaw onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"
Config snippet
{
env: { XIAOMI_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "xiaomi/mimo-v2-flash" } } },
models: {
mode: "merge",
providers: {
xiaomi: {
baseUrl: "https://api.xiaomimimo.com/v1",
api: "openai-completions",
apiKey: "XIAOMI_API_KEY",
models: [
{
id: "mimo-v2-flash",
name: "Xiaomi MiMo V2 Flash",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 8192,
},
{
id: "mimo-v2-pro",
name: "Xiaomi MiMo V2 Pro",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 1048576,
maxTokens: 32000,
},
{
id: "mimo-v2-omni",
name: "Xiaomi MiMo V2 Omni",
reasoning: true,
input: ["text", "image"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 32000,
},
],
},
},
},
}
Notes
- Default model ref:
xiaomi/mimo-v2-flash. - Additional built-in models:
xiaomi/mimo-v2-pro,xiaomi/mimo-v2-omni. - The provider is injected automatically when
XIAOMI_API_KEYis set (or an auth profile exists). - See /concepts/model-providers for provider rules.