> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# MiMo API

> 1 つの BeatAPI キーで Xiaomi の MiMo V2.6 Flash と V2.5 を呼び出せます。

# MiMo API

Xiaomi のモデル 2 種を、標準の Text API パススルーで利用できます。どちらも長期にわたるエージェントの処理を想定したモデルで、Text API が対応する 4 つすべてのリクエスト形式で呼び出せます。

| モデル               | 適した用途        |
| ----------------- | ------------ |
| `mimo-v2.6-flash` | 現在の大量処理向けモデル |
| `mimo-v2.5`       | 前世代の軽量モデル    |

## OpenAI Chat Completions

`POST https://api.beatapi.io/v1/chat/completions`

```typescript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.BEATAPI_API_KEY,
  baseURL: "https://api.beatapi.io/v1"
});

const completion = await client.chat.completions.create({
  model: "mimo-v2.6-flash",
  max_tokens: 2000,
  messages: [
    { role: "user", content: "Plan the migration of a monolith's auth module into a separate service, listing the cutover risks." }
  ]
});

console.log(completion.choices[0].message.content);
```

```bash
curl --request POST \
  --url https://api.beatapi.io/v1/chat/completions \
  --header 'Authorization: Bearer <BEATAPI_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "mimo-v2.6-flash",
  "messages": [
    {
      "role": "user",
      "content": "Plan the migration of a monolith's auth module into a separate service, listing the cutover risks."
    }
  ]
}'
```

どちらも 1M トークンを超えるコンテキストウィンドウを持ちます。

## その他の SDK 形式

同じモデルを `/v1/responses`、`/v1/messages`、Gemini 互換エンドポイントでも利用できます。各形式のリクエストとレスポンスの構造はテキストモデル間で共通のため、[Text API](/text-api) ページでまとめて説明しています。

## 認証と利用可能なモデル

このページの全モデルを 1 つの BeatAPI キーで利用できます。ベンダーごとのキー、ベース URL、個別の登録は不要です。`https://api.beatapi.io` へのリクエストに `Authorization: Bearer <BEATAPI_API_KEY>` を付けてください。