# MiniMax M2

MiniMax M2 costs $0.2 per 1M input tokens and $1 per 1M output tokens on LLM API, with a 197K-token context window.

Model ID: `minimax-m2` · MiniMax · Text generation · Released October 23, 2025
Updated: 2026-10-13
Canonical: https://llmapi.ai/models/minimax-minimax-m2/

- Input: $0.2 per 1M tokens
- Output: $1 per 1M tokens
- Cache read: $0.03 per 1M tokens
- Context: 197K tokens
- Max output: 4K tokens

## Pricing

Served by MiniMax, the only provider.

| Price | Amount | Per |
| --- | --- | --- |
| Input | $0.2 | per 1M tokens |
| Output | $1 | per 1M tokens |
| Cache read | $0.03 | per 1M tokens |

**Volume pricing.** At higher monthly volume, MiniMax M2 may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Features

- Tools: Yes
- Parallel tool calls: No
- Image input: No
- Reasoning: Yes
- Prompt caching: Yes
- Structured outputs: Yes
- JSON mode: Yes
- Streaming: Yes
- Web search: No

## Call MiniMax M2

### Chat Completions (`POST /v1/chat/completions`)

Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="minimax-m2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
```

Docs: [Chat Completions docs](https://docs.llmapi.ai/api/v1/chat/completions)

## More from MiniMax

- [MiniMax-M3.1-Flash](https://llmapi.ai/models/minimax-m3-1-flash/): $0.15 / $0.6 per 1M input / output
- [MiniMax M3](https://llmapi.ai/models/minimax-m3/): $0.3 / $1.2 per 1M input / output
- [MiniMax M2.1 Lightning](https://llmapi.ai/models/minimax-m2-1-lightning/): $0.12 / $0.48 per 1M input / output

Prices synced 2026-11-03.

Next step: [Get API key](https://app.llmapi.ai/signup)
