This topic describes how to call Xiaomi's MiMo series models on Alibaba Cloud Model Studio.
Quick start
mimo-v2.5-pro is a hybrid reasoning model provided by Xiaomi. It runs in thinking mode by default (enable_thinking defaults to true). To disable thinking and get direct responses, explicitly pass enable_thinking: false. The following example calls mimo-v2.5-pro in thinking mode with streaming enabled.
Before you begin, make sure you have Obtain an API key and Configure API key as an environment variable. If you are using an SDK, you also need to Install the SDK.
- OpenAI-compatible
enable_thinking is not a standard OpenAI parameter. In the OpenAI Python SDK, pass it via extra_body. In the Node.js SDK, pass it as a top-level parameter.- Python
- Node.js
- HTTP
Sample code
Sample response
Supported features
Feature | Supported | Notes |
|---|---|---|
Supported | In thinking mode, you must include the | |
Supported |
| |
Supported | Implicit caching, automatically enabled | |
Supported |
| |
Not supported | — | |
Not supported | — | |
Multimodal input | Not supported | Passing image, audio, or video input returns an error |
top_k, reasoning_effort, thinking_budget, modalities, repetition_penalty, vl_high_resolution_images, preserve_thinking, tool_stream, enable_code_interpreter, parallel_tool_calls, seed, logprobs, top_logprobs, n,audio,enable_search,search_options,X-DashScope-DataInspection,skill. These parameters are ignored or return an error if passed.
Some parameter ranges and functional behaviors in MiMo differ from those in the Bailian platform. Please refer to the table below for details:
Full screen copy
Parameter | ModelStudio | MiMo |
|---|---|---|
| Range: [0, 2) | Range: [0, 1.5], Default: 1.0 |
| Range: (0, 1.0] | Range: [0.01, 1.0], Default: 0.95 |
| — | Range: [-2, 2], Default: 0 |
| — | Up to 4 sequences |
| Limits output length only (does not limit CoT length) | Limits both output and Chain-of-Thought (CoT) length |
Models and pricing
The MiMo series models are hybrid reasoning models provided by Xiaomi, supporting both thinking and non-thinking modes.
For context length and pricing details, refer to the Model Studio console.
Billing is based on input and output tokens.
In thinking mode, the chain-of-thought is billed as output tokens.
Error codes
The MiMo series models are provided directly by Xiaomi. Their error codes differ from the standard Model Studio error codes. When calling MiMo models, refer to the table below.
Error code | Cause | Solution |
|---|---|---|
400 | Invalid request body |
|
401 | Missing or invalid API Key, or incorrect Authorization header format | Verify your API Key and Authorization header format are correct |
402 | Insufficient account balance | Check your account balance and top up as needed |
403 | Service not available in the current region, or API Key is blocked | Create a new API Key and ensure your input content complies with safety policies |
404 | The endpoint or model does not support image input | Confirm that the model or endpoint supports multimodal image input |
421 | Content moderation triggered | Avoid inputting unsafe or sensitive content |
429 | Too many requests, or Token Plan quota exhausted |
|
500 | Internal server error | Retry later, or contact us for assistance |
503 | Server overloaded | Retry later |