1M-Token Context
Read large repositories, long specifications, and extended agent histories in one context window. Budget input and generated output together against the route’s live context limit.
export GPTPROTO_API_KEY="your_api_key"curl --request POST "https://gptproto.com/v1/chat/completions" \
--header "Authorization: Bearer $GPTPROTO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "MiniMax-M4",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'Connectez Minimax M4 à votre application ou à votre agent de programmation avec une clé API GPTProto.
Chat, agents de codage et travail documentaire. Facturé par million de tokens — l'entrée, l'entrée en cache et la sortie sont facturées séparément. GPTProto est 15 % en dessous des tarifs officiels.
| Scénario | Liste MiniMax | Crédits GPTProto utilisés | Économies / mois |
|---|---|---|---|
| Personnel10M tokens / mois (4.8M en cache) | $9.00 | $7.65 | −$1.35≈ $16.20 / an |
| Équipe100M tokens / mois (48M en cache) | $90.00 | $76.50 | −$13.50≈ $162.00 / an |
| Entreprise500M tokens / mois (240M en cache) | $450.00 | $382.50 | −$67.50≈ $810.00 / an |
Run MiniMax’s flagship reasoning model through GPTProto for large-codebase work, multi-step agents, image and video understanding, and structured knowledge tasks. MiniMax M4 combines a 1M-token context window with interleaved tool reasoning and five effort levels, from low to max.
1M-Token Context
Read large repositories, long specifications, and extended agent histories in one context window. Budget input and generated output together against the route’s live context limit.
Interleaved Tool Reasoning
M4 can reason between tool calls and use each result to plan the next step. Preserve the complete assistant response in conversation history to keep multi-step reasoning intact.
Native Image and Video Understanding
Official MiniMax endpoints accept text, image, and video input and return text. Confirm the enabled GPTProto input badges before depending on multimodal requests in a deployed workflow.
Five Reasoning Effort Levels
Choose low, medium, high, xhigh, or max. Reasoning cannot be disabled, and max is the default, so lighter tasks may benefit from a lower effort setting.
The MiniMax M4 API gives developers programmatic access to MiniMax’s December 2026 flagship model. M4 is a natively multimodal Mixture-of-Experts model with 2.74 trillion total parameters, 66 billion active parameters per token, and a 1,000,000-token context window. MiniMax positions it for long-horizon coding, computer use, tool-driven agents, and professional knowledge work.
The architecture introduces MiniMax Sparse Attention 2 (MSA2) and MFlashKV. MiniMax reports that MSA2 cuts per-token KV-cache requirements by 4× versus the previous design, while MFlashKV can offload most of the cache to SSD. Applications must still control prompt size, output length, and reasoning effort.
On GPTProto, one account and balance let you compare M4 with MiniMax M3, Kimi K3.1 Pro, DeepSeek V4 Pro, Gemini 4 Hydrogen, and GPT-6.2 Astra using the same test harness.
| Specification | MiniMax M4 |
|---|---|
| Provider | MiniMax |
| Model class | Natively multimodal Mixture-of-Experts reasoning model |
| Total / active parameters | 2.74T total / 66B active per token |
| Context window | 1,000,000 tokens |
| Official input / output | Text, image, and video input / text output |
| Reasoning behavior | Always on; cannot be disabled |
| Reasoning effort | low, medium, high, xhigh, max; defaults to max |
| Agent features | Function tools, streaming, interleaved thinking, OpenAI- and Anthropic-compatible formats |
| Attention and KV system | MSA2 with MFlashKV |
| Weight status at launch | Announced as open-weight; downloadable weights were not yet released at launch |
Route note: the official MiniMax API supports text, image, and video input. Use the input badges and API Usage tab on this GPTProto page as the source of truth for the modalities enabled on the GPTProto route.
Repository-scale coding: Inspect architecture, tests, configuration, and cross-file dependencies before planning, editing, running tools, and verifying a change.
Long-horizon agents: Call tools, inspect results, revise a plan, and continue toward acceptance criteria. Return the full assistant message in the next request to preserve reasoning continuity.
Multimodal analysis: Examine screenshots, diagrams, charts, and video alongside text for visual-to-code work, interface debugging, document review, and evidence extraction when the route exposes those inputs.
Structured knowledge work: Combine long source material with tools for financial analysis, technical reports, and research synthesis. Validate calculations, evidence, and domain conclusions before downstream use.
Both official model entries list a 1M-token window. The upgrade is reasoning and agent behavior: M4 always reasons and offers five effort levels, while M3 keeps optional thinking and ignores the newer effort control.
| Decision factor | MiniMax M4 | MiniMax M3 |
|---|---|---|
| Context window | 1M tokens | 1M tokens |
| Reasoning default | Always on | Off by default |
| Can reasoning be disabled? | No; disabled returns an error |
Yes |
| Effort control | low through max; default max |
Not supported |
| Official multimodal input | Text, image, and video | Text, image, and video |
| Best reason to test it | New long-horizon coding, multimodal analysis, and multi-tool agents | Existing M3 integrations or tasks that need optional reasoning |
If an M3 workflow disables reasoning, M4 is not a model-name-only swap. Remove that setting, select an effort level, and test latency, output-token use, tool calls, and response parsing.
MiniMax’s launch chart shows a mixed profile rather than a universal win. M4 leads Kimi K3.1 Pro on several long-horizon and professional-work tests, while Kimi leads Terminal Bench 4.1. Several proprietary models remain ahead on difficult coding tests.
| Reported benchmark | MiniMax M4 | Kimi K3.1 Pro | GPT-6.2 Sol | Gemini 4 Neon | What it suggests |
|---|---|---|---|---|---|
| Terminal Bench 4.1 | 56.6 | 68.2 | 60.1 | 65.2 | M4 is not the leader on this terminal task set |
| SWE-Marathon v1.2 | 44.0 | 39.2 | 69.2 | 58.3 | M4 exceeds Kimi here but trails the listed proprietary models |
| Finance Agent v2.1 | 66.7 | 61.5 | 58.9 | 68.6 | M4 is competitive on the reported finance-agent test |
| Tax Agent Bench | 44.5 | 33.8 | 44.1 | 41.9 | M4 leads these three listed comparators in the launch chart |
| OSWorld v2.1 | 80.0 | 79.6 | — | — | Reported computer-use results are close between M4 and Kimi |
MiniMax reported these values with M4 at maximum reasoning effort; GPTProto did not independently reproduce them. Compare models with the same prompt, tools, repository, time budget, and acceptance checks.
The chart uses DeepSeek V4.1 Flash, GPT-6.2 Sol, and Gemini 4 Neon—not DeepSeek V4 Pro, GPT-6.2 Astra, or Gemini 4 Hydrogen. Run those exact variants directly instead of transferring scores between model names.
Do not disable thinking. thinking.type: "disabled" and a none effort return an error on the official interface.
Set effort intentionally. The default is max; test a lower level for routine extraction, classification, or formatting.
Preserve tool-call history. Return the full assistant response, including reasoning and tool calls, before adding each tool result.
Check sampling assumptions. MiniMax’s Anthropic-compatible interface fixes temperature at 1 and top_p at 0.95.
Use the live model ID. Copy the exact value from GPTProto’s API Usage or Quick Start panel.
Verify modalities. The base model accepts images and video, but the GPTProto route may expose a narrower input set.
Choose M4 for large repositories, repeated tool calls, multimodal evidence, or a long plan–execute–verify loop. Keep MiniMax M3 in the test when optional reasoning matters; compare Kimi K3.1 Pro, DeepSeek V4 Pro, Gemini 4 Hydrogen, and GPT-6.2 Astra for different latency, modality, and budget needs.
Explore the full MiniMax API model catalog to compare current routes, input badges, context limits, and billing units.
Guides, comparaisons et mises à jour liés à ce modèle.
Tous les articles
GLM-5.4 uses a Loop Transformer for deeper coding and 1M-token tasks. See benchmarks, API pricing, real uses, early reviews, and key limits.

Switch your Claude API integration to a cheaper provider. Compare 2026 token prices, update the endpoint and key, then test caching, tools, and streaming.

What is GPT-6.2 Astra? See its real-world uses, API pricing, early reviews, Astra vs Sol and Fable 5.2, plus 20% off on GPTProto.

We tested Claude Fable 5.2. See what's improved in coding, design, and creative tasks, plus API costs and whether it's worth the upgrade.