Skip to content
Back to skills

Xiaomi Mimo Api

ASecurity

Call Xiaomi MiMo via the free-ai bootstrap + chat endpoints. Covers auth flow, headers, model IDs, streaming, and known failure modes.

  • 15 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
ai-agentsbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add clowlove/Hermes-House --skill xiaomi-mimo-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xiaomi Mimo Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xiaomi Mimo Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/clowlove-xiaomi-mimo-api/badge)](https://www.skillsdirectory.com/skills/clowlove-xiaomi-mimo-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
title: Xiaomi MiMo Free AI API
name: xiaomi-mimo-api
description: Call Xiaomi MiMo via the free-ai bootstrap + chat endpoints. Covers auth flow, headers, model IDs, streaming, and known failure modes.
---

# Xiaomi MiMo Free AI API

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

## Preconditions

- The target environment allows outbound HTTPS to `api.xiaomimimo.com`.
- The provider must be invoked with the free-ai bootstrap flow; standard `Authorization: Bearer sk-...` or `tp-...` keys are invalid here.

## Core workflow

1. Bootstrap a session JWT:

```bash
curl -s -X POST 'https://api.xiaomimimo.com/api/free-ai/bootstrap' \
  -H 'Content-Type: application/json' \
  -d '{"client":"haha"}'
```

- Parse JSON and read `jwt`.
- The returned `jwt` is short-lived; bootstrap once per logical session.

2. Call chat:

```bash
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.

- `model` is always reported as `mimo-auto`.
- Each chunk may contain `reasoning_content`, then `content`.
- Final chunk may contain `usage` when `stream=true`.

A representative successful body:

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

## Pitfalls

- Wrong endpoint: `/v1/chat/completions` returns 401 even with bootstrap JWT.
- Missing header: omit `X-Mimo-Source: mimocode-cli-free` and the call will reject.
- Model ID: docs mention `mimo-v2.5-pro-ultraspeed`, but the working free-ai endpoint uses `mimo-auto`.
- Key reuse: do not reuse prior `sk-...` or `tp-...` credentials with this endpoint.

## Verification

After bootstrap, a minimal successful call is:

- `model` in response: `mimo-auto`
- First non-empty assistant output in `content`
- `finish_reason`: `stop`

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

Files in this skill

  • SKILL.md2.4 KB
  • skill.json610 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…