How to hit the Xiaomi MiMo API

Xiaomi's MiMo models are served at https://api.xiaomimimo.com/v1 with an OpenAI-compatible chat API. The key goes in an api-key header rather than Authorization.

Authentication

Create a key on the MiMo open platform and send it as the api-key header. In the examples it's written {{MIMO_API_KEY}}.

Full reference: https://mimo.mi.com/docs/en-US/quick-start/summary/first-api-call

Chat with MiMo V2.6 Pro

curl https://api.xiaomimimo.com/v1/chat/completions \
  -H "api-key: {{MIMO_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"model": "mimo-v2.6-pro", "messages": [{"role": "user", "content": "Explain what an API rate limit is in two sentences."}]}'
Run in PostTaco

Use MiMo V2.6 Flash

curl https://api.xiaomimimo.com/v1/chat/completions \
  -H "api-key: {{MIMO_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"model": "mimo-v2.6-flash", "messages": [{"role": "user", "content": "Summarize HTTP/2 in one sentence."}]}'
Run in PostTaco