# MiniMax M4

> MiniMax M4 is MiniMax's flagship multimodal reasoning model with 2.74T total and 66B active parameters. It takes text, image and video input, offers a 1M-token context and returns text, built for long-horizon coding and agent work.

**ID**: `minimax/m4`  
**Creator**: minimax  
**Category**: multimodal  
**Context**: 1M tokens  
**Pricing**: $0.80 / $3.10 per 1M · billed by your provider (BYOK)  
**Released**: 2026-12-03  
**Web page**: https://anyrouter.dev/model/minimax/m4

**Input modalities**: text, image, video  
**Output modalities**: text  

**Capabilities**: chat, coding, reasoning, agentic, vision, function-calling, structured-output, streaming

**Aliases**: `minimax/minimax-m4`, `minimax/MiniMax-M4`

## 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/m4",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| minimax-byok | $0.80/M (list) | $3.10/M (list) |
| openrouter-byok | $0.80/M (list) | $3.10/M (list) |
| vercel-byok | $0.80/M (list) | $3.10/M (list) |
| edenai-byok | $0.80/M (list) | $3.10/M (list) |
| aihubmix-byok | $0.88/M (list) | $3.41/M (list) |
| kenari-byok | $0.80/M (list) | $3.10/M (list) |

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

## Model card

- Architecture: mixture of experts [2]
- Total parameters: 2740B [2,1]
- Active parameters: 66B [2,1]
- Native context: 1000000 tokens [2,1]
- License: Open weights announced, not yet released [2]

### Strengths [1,2,3]

- Vendor-reported scores in MiniMax's own comparison: FrontierCode-AA 2.0 33.0, SWE-Marathon v1.2 44.0, Vibe Code Bench v1.1.1 76.4, OSWorld v2.1 80.0, Finance Agent v2.1 66.7. It is the top open-weight model on most of the 29 rows.
- Natively multimodal Mixture-of-Experts with MiniMax Sparse Attention 2 and MFlashKV, which offloads the KV cache to SSD to ease HBM limits
- Priced at $0.80 in, $3.10 out and $0.05 cache read per 1M tokens, and MiniMax quotes 100 tokens per second per user

### Known limits [2,1]

- Weights are announced but not released yet: the repository says they will follow soon
- Reasoning is always on (default effort max), so short answers still spend reasoning tokens
- MiniMax's own table shows it behind the top proprietary models on several rows, for example Terminal Bench 4.1 56.6 and SWE-Marathon v1.2 44.0

### Use cases [1]

- Long-horizon coding and software engineering agents across large codebases
- Finance, research and computer-use agents

### API notes [3]

- Reasoning effort accepts low, medium, high, xhigh and max; reasoning cannot be turned off
- Accepts text, image and video input; output is text; tool calling and structured output are supported
- Context is 1M tokens; the longest completion any hop lists is 524288 tokens

### Links

- announcement: https://x.com/MiniMax_AI/status/2128508504067436763
- model card: https://github.com/MiniMax-AI/MiniMax-M4
- paper: https://github.com/MiniMax-AI/MiniMax-M4
- docs: https://platform.minimax.io/docs/guides/text-generation
- pricing: https://platform.minimax.io/docs/pricing/overview
- Previous version: https://anyrouter.dev/model/minimax/m3

### Sources

1. [MiniMax M4 launch post](https://x.com/MiniMax_AI/status/2128508504067436763) (accessed 2026-12-03)
2. [MiniMax-M4 repository and technical report](https://github.com/MiniMax-AI/MiniMax-M4) (accessed 2026-12-03)
3. [MiniMax API pricing overview](https://platform.minimax.io/docs/pricing/overview) (accessed 2026-12-03)

## Source

- Upstream docs: https://platform.minimax.io/docs/pricing/overview
