MiniMax M4
MiniMax’s flagship model accepts text, images, and video, with a 1M-token context window for tasks such as working across a codebase or debugging from a screen recording. You can start with the official pay-as-you-go API.
- Official API model ID
MiniMax-M4- Context window
- 1M tokens
- API input / output
- $0.80 / $3.10 Per 1M tokens
Release & Access
Last checked
| Channel | Current status |
|---|---|
| MiniMax M Plan | Go, Explore, Build, and Scale include M4. Sign in to MiniMax Code or use an M Plan key in a compatible coding tool. |
| Official API | MiniMax documents MiniMax-M4 and lists pay-as-you-go rates. Use a key from the MiniMax API platform. MiniMax official website. |
| Model weights | The technical report is public. MiniMax’s official repository says the weights will follow. |
| DeepSeek V4 Hub | The Multi-Model Coding Plan lists M4 as minimax-m4 or m4 at 10 points per token for eligible Singapore gateway keys. The Germany gateway used by Ultra excludes M4. |
Compare MiniMax M4 subscriptions for plan prices, usage limits, and pay-as-you-go cost examples.
API Pricing & Quickstart
| Model | Input | Output | Cache read |
|---|---|---|---|
| MiniMax M4 | $0.80 | $3.10 | $0.05 |
| MiniMax M3.1 Flash | $0.15 | $0.60 | $0.015 |
At these rates, 100,000 uncached input tokens and 20,000 output tokens cost $0.142 on M4.
Make your first API call
Set MINIMAX_API_KEY to your MiniMax API key, then run this request in Bash or Zsh.
curl https://api.minimax.io/anthropic/v1/messages \
-H "Authorization: Bearer $MINIMAX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMax-M4",
"max_tokens": 2048,
"output_config": { "effort": "low" },
"messages": [
{ "role": "user", "content": "Write a Python function that deduplicates a list while preserving order." }
]
}'M4’s thinking is always enabled. Use output_config.effort to control thinking depth. Thinking tokens count toward max_tokens.
Sources: MiniMax pricing and Anthropic API reference.
Specs & Architecture
| Specification | MiniMax M4 |
|---|---|
| Architecture | Mixture of experts (MoE), with 2.74T total parameters and 66B active per token. |
| Context window | 1,000,000 tokens. Useful when a task needs code, tests, and documentation in one conversation. |
| Supported inputs | Text, images, and video on the Anthropic-compatible API. Send a screenshot or short recording alongside a bug report. |
| Reasoning | Five effort levels from low through max. The API defaults to max when omitted. |
Sources: MiniMax M4 technical report and API reference.
Benchmarks & Comparisons
MiniMax’s technical report evaluates M4 on long-running coding and agent tasks. A direct ranking against M3.1 Flash and DeepSeek V4.1 Flash requires results from the same benchmark version, agent harness, and effort settings. The table compares published API rates and context windows.
| Model | Context | Input | Output | Cache read |
|---|---|---|---|---|
| MiniMax M4 | 1M | $0.80 | $3.10 | $0.05 |
| MiniMax M3.1 Flash | 1M | $0.15 | $0.60 | $0.015 |
| DeepSeek V4.1 Flash · off-peak | 1M | $0.15 | $0.60 | $0.003 |
| DeepSeek V4.1 Flash · peak | 1M | $0.30 | $1.20 | $0.006 |
For a multi-file change, run the same issue and tests with each model. Compare whether the tests pass, how much review the patch needs, and the cost of the full run.
Sources: MiniMax and DeepSeek API pricing. DeepSeek V4.1 Flash guide.
Latest Updates & FAQ
- · MiniMax lists M4 in its release notes.
- Related reading · DeepSeek V4.1 versus MiniMax M4.
- Related reading · MiniMax M3.1 Flash vs DeepSeek V4.1 Flash.
When was MiniMax M4 released?
MiniMax dates the release to December 3, 2026 in its model release notes.
Where do I get an API key for MiniMax M4?
Get an API key in the MiniMax API platform, then send MiniMax-M4 as the model ID. See the quickstart request.
Is MiniMax M4 open weight? Can I run it locally?
MiniMax describes M4 as an open-weight model and says the download will follow. Check its official repository for the files, license, and deployment guidance.
Does the DeepSeek V4 Hub Coding Plan include MiniMax M4?
Yes, for eligible Singapore gateway keys. Use minimax-m4 or m4. Check the Base URL and model list in your dashboard. See prices and eligible tiers.