# MiniMax M4

> MiniMax-M4 是 MiniMax 推出的 3T 参数开源权重旗舰多模态大语言模型，拥有 100 万 token 上下文窗口，在长程编程与智能体工作流方面实现显著突破，同时具备接近 Flash 级别的推理效率。支持文本、图像与视频输入，内置默认开启的可调深度思考能力。

- Model ID: `minimax/minimax-m4`
- Manufacturer: MiniMax
- Context length: 1M tokens
- Max output: 512K tokens
- Input: text, image, video
- Output: text
- Capabilities: tools, reasoning, streaming, vision, caching
- Released: 2026-12-03
- Page: https://amux.ai/zh/models/minimax/minimax-m4

## Providers and prices

Prices in USD, base tier. Route to a specific provider with `model: "<model id>:<provider slug>"`; without a suffix Amux AI picks among healthy providers (weighted random by default; a price-first strategy can be set per API key) and fails over to the next one on errors. Long-context and time-of-day tiers, where they apply, are listed on the page.

- **MiniMax** (`minimax`) (promotion): cache_read $0.045/1M tokens · input_text $0.72/1M tokens · output_text $2.79/1M tokens

## Example request

`POST https://gateway.amux.ai/v1/chat/completions`

```bash
curl https://gateway.amux.ai/v1/chat/completions \
  -H "Authorization: Bearer $AMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -H "anthropic-beta: <value>" \
  -d '{
    "model": "minimax/minimax-m4",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'
```
