# MiniMax M2

> MiniMax M2 is a large language model for complex software engineering, agentic tool use, and office productivity workflows. Supports complex agent harnesses, dynamic tool search, Agent Teams, and high-fidelity coding and document-editing tasks.

**ID**: `minimax/m2`  
**Creator**: minimax  
**Category**: text  
**Context**: 200K tokens  
**Pricing**: BYOK — billed by your provider  
**Released**: 2025-09-01  
**Web page**: https://anyrouter.dev/model/minimax/m2

**Input modalities**: text  
**Output modalities**: text  

**Capabilities**: chat, streaming, coding, function-calling

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/m2",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| huggingface-byok | BYOK — billed by your provider | — |
| opencode-go-byok | BYOK — billed by your provider | — |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Source

- Upstream docs: https://huggingface.co/MiniMaxAI/MiniMax-M2
