> ## Documentation Index
> Fetch the complete documentation index at: https://docs.routerbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax Chat API

> MiniMax chat models — M2 (M2/M2.1/M2.5/M2.7) and M1-80k — via RouterBase, OpenAI-compatible chat completions.

## Overview

MiniMax chat models on RouterBase, served through the standard
OpenAI-compatible chat completions endpoint with streaming and tool
calling.

|              |                            |
| ------------ | -------------------------- |
| **Provider** | MiniMax                    |
| **Families** | `minimax-m2`, `minimax-m1` |
| **Modality** | Chat                       |
| **Input**    | Text                       |
| **Output**   | Text                       |

## Models

* `minimax/minimax-m2.7`
* `minimax/minimax-m2.5`
* `minimax/minimax-m2.1`
* `minimax/minimax-m2`
* `minimaxai/minimax-m1-80k`

Pricing is deliberately not reproduced here. Rates are set per model in the
RouterBase catalogue and can be overridden per account, so any figure copied
into this page is a snapshot that goes stale the next time a rate changes.
Fetch the current rate for any model from the [Models API](/api-reference/models):

```http theme={null}
GET /api/models/{model}/pricing
```

URL-encode the slash in the model id — e.g. `minimax%2Fminimax-m2.7`.

## Endpoint

```http theme={null}
POST https://routerbase.com/v1/chat/completions
```

Drop-in compatible with the OpenAI [Chat Completions API](https://platform.openai.com/docs/api-reference/chat) —
point your OpenAI client at `https://routerbase.com/v1` with your
RouterBase key. See the [Chat Completions reference](/api-reference/chat-completions)
for every supported parameter.

## Quickstart

```bash theme={null}
curl https://routerbase.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/minimax-m2.7",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```
