Xiaomi mimo api

From clowlove/Hermes-House · View interactive version

Xiaomi mimo api is an AI agent skill from the GitHub repository clowlove/Hermes-House. Call Xiaomi MiMo via the free-ai bootstrap + chat endpoints. Covers auth flow, headers, model IDs, streaming, and known failure modes.

How to use this skill

Skill file

Xiaomi MiMo Free AI API

Use this workflow whenever a task calls Xiaomi MiMo through api.xiaomimimo.com.

Preconditions

Core workflow

  1. Bootstrap a session JWT:
curl -s -X POST 'https://api.xiaomimimo.com/api/free-ai/bootstrap' \
  -H 'Content-Type: application/json' \
  -d '{"client":"haha"}'
  1. Call chat:
curl -X POST 'https://api.xiaomimimo.com/api/free-ai/openai/chat' \
  -H "Authorization: Bearer *** \
  -H 'X-Mimo-Source: mimocode-cli-free' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "mimo-auto",
    "messages": [{"role":"user","content":"..."}],
    "max_tokens": 128000,
    "stream": true,
    "temperature": 1.0
  }'

Response shape

Returns OpenAI-compatible SSE chunks.

A representative successful body:

{
  "id": "...",
  "object": "chat.completion.chunk",
  "model": "mimo-auto",
  "choices": [
    {
      "delta": {
        "reasoning_content": "用户要求我只回复...",
        "content": "我是MiMo,由小米大模型Core团队开发的智能助手!"
      },
      "finish_reason": "stop"
    }
  ]
}

Pitfalls

Verification

After bootstrap, a minimal successful call is:

If bootstrap succeeds but chat returns 401, the issue is headers/model or the JWT expired.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.