MiMo Chat API Integration Guide

To call MiMo in an AI client, you can use AI Chat MCP. First, check the MiMo models currently available through the tool using aichat_list_models, then submit a text conversation. AI Chat MCP Integration Guide

MiMo 2.6 Pro and MiMo 2.6 Flash are models in Xiaomi's MiMo series. This API uses the OpenAI Chat Completions format and charges for input, output, and cache-hit tokens.

Models and API

Model Purpose
mimo-v2.6-pro Complex analysis, reasoning, and tool calls
mimo-v2.6-flash Everyday conversations and lightweight tasks

Sign in to the application list, open General Application, and click the copy button on the right side of the API KEY field. Save the Key in the server-side environment variable ACEDATACLOUD_API_KEY.

Get an Ace Data Cloud API Key

Confirm that the application can access MiMo, then send requests to https://api.acedata.cloud/mimo/chat/completions. The OpenAI SDK's base_url can be set to https://api.acedata.cloud/mimo. The unified /v1/chat/completions endpoint also requires the corresponding service permissions.

The initial API scope covers text Chat Completions; images, audio, video, web search, Responses, Messages, Batch, and UltraSpeed are not included in this release.

Python Example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ACEDATACLOUD_API_KEY"],
    base_url="https://api.acedata.cloud/mimo",
)
response = client.chat.completions.create(
    model="mimo-v2.6-pro",
    messages=[{"role": "user", "content": "解释彩虹形成的原因。"}],
    max_completion_tokens=256,
    extra_body={"thinking": {"type": "disabled"}},
)
print(response.choices[0].message.content)
print(response.usage)

The example shows how to write a request; an actual response example will be added after service validation.

Streaming, Reasoning, and Tool Calls

Set stream=true to receive SSE; to obtain final usage, pass stream_options={"include_usage": true}. The client should handle content, reasoning content, and tool call deltas, as well as the final usage event.

Use thinking.type=enabled to enable reasoning and disabled to disable it. reasoning_content is returned separately from the final content; when continuing a tool call, retain the reasoning content, complete tool_calls, and corresponding tool_call_id in the assistant message.

Only submit tool declarations with type=function; tool_choice only supports auto. The application is responsible for executing tools and returning results; a tool call returned by the model does not itself mean that the tool has been executed. The service's built-in web search is not yet available.

Billing

prompt_tokens includes cache-hit input; prompt_tokens_details.cached_tokens is charged at the cache price, and the remaining input is charged at the regular input price. completion_tokens includes reasoning output; do not add reasoning tokens again. Streaming calls are also billed based on final actual usage.

Prices are subject to those in the console, and the USD cost of Credits depends on the purchased plan. Failed requests should not be considered successfully completed; to verify charges, provide the trace identifier in the response.

Error Handling

For parameter errors, check the request format; for authentication or permission errors, check the credentials and service activation status; for 429 errors, retry with backoff. A 503 may be returned when no healthy model capacity is available. If an interruption occurs after a streaming response has started, first check the results and usage already received to avoid blindly repeating the request.