MiMo class defaults to mimo-v2.5-pro and points at https://api.xiaomimimo.com/v1.
Installation
Authentication
Sign in with a Xiaomi account (register at id.mi.com if you don’t have one), then create a key in the console under API Keys. Set yourMIMO_API_KEY environment variable.
Example
UseMiMo with your Agent:
View more examples here.
Parameters
MiMo extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.
Note: MiMo supports JSON mode but not native json_schema structured outputs, so supports_native_structured_outputs is set to False. Use use_json_mode=True for structured output.
Thinking mode
Control thinking mode with theuse_thinking flag: