Skip to main content
Xiaomi MiMo serves its models through an OpenAI-compatible API, so you drive them through Agno like any other OpenAI-compatible provider. The 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 your MIMO_API_KEY environment variable.

Example

Use MiMo 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 the use_thinking flag: