MiniMax M2: Specs, Benchmarks, API, and Local Deployment Guide

Last update: November 10, 2026 (model status, API example, prices, and rate limits). Other details were last reviewed June 30, 2026.

MiniMax M2 is an earlier MiniMax M-series Mixture-of-Experts language model built for coding assistance, tool use, and agentic workflows. Written officially as MiniMax-M2, it combines a large sparse model design with about 230B total parameters and about 10B active parameters per token. M2 is best treated as a historical or comparison model, or as open weights you run yourself, rather than a MiniMax API option.

Status: MiniMax’s official Model List places MiniMax-M2 in its Retired Models table, under the line “The following models have been retired and are no longer available,” and gives no retirement date. The text models it lists as available are MiniMax M3.1 Flash (MiniMax-M3.1-Flash) and MiniMax M3 (MiniMax-M3), both multimodal with a 1,000,000-token context window. The retirement concerns MiniMax’s hosted API: the M2 weights on Hugging Face are unaffected and can be self-hosted.

This guide focuses on MiniMax M2 as a specific model profile. It covers the MiniMax M2 model architecture, parameter count, context window, benchmark snapshot, API status and migration, Hugging Face weights, local deployment, use cases, limitations, and comparison criteria.

MiniMax M2 at a Glance

ItemDetails
Model nameMiniMax-M2
Current statusRetired. MiniMax’s Model List shows MiniMax-M2 in its Retired Models table and gives no retirement date; the text models it lists as available are MiniMax-M3.1-Flash and MiniMax-M3
DeveloperMiniMax
Model typeMixture-of-Experts language model
Main focusCoding, tool use, agentic workflows, reasoning
Total parametersAbout 230B
Active parametersAbout 10B per token
Context window204,800 tokens as listed in MiniMax’s API docs before retirement; 192K native in the technical report
Access optionsHugging Face/model weights and local deployment; the MiniMax API route is retired, and MiniMax Agent references are launch-era context
Deployment frameworksvLLM, SGLang, Transformers, MLX, Docker Model Runner, and compatible quantization routes; check current official and framework-specific docs before deployment
Best fitCoding agents, multi-step automation, developer workflows, research, tool-using assistants
CaveatBenchmark, pricing, and deployment results vary by provider, setup, and evaluation date

MiniMax’s GitHub materials describe MiniMax-M2 as a 230B-parameter MoE model with 10B active parameters, while MiniMax’s API documentation listed MiniMax-M2 with a 204,800-token context window before the model was retired. The MiniMax-M2 technical report gives the more exact figures of 229.9B total parameters and 9.8B activated per token, with a 192K-token native context window in the base architecture.

What Is MiniMax M2?

MiniMax M2 is an AI language model from MiniMax, designed around practical coding and agentic workflows rather than simple single-turn chat alone. It is usually written in two forms: MiniMax M2 in search queries and MiniMax-M2 in official model IDs, GitHub documentation, and Hugging Face listings.

The model was introduced in MiniMax’s 2025 launch materials as a model for agents and code. MiniMax described its target workloads as end-to-end development, long-chain tool calling, shell operations, browser use, Python code execution, and MCP-style tool coordination.

It should not be confused with newer M-series models such as MiniMax M2.1, MiniMax M2.5, MiniMax M2.7, MiniMax M3, or MiniMax M3.1 Flash. MiniMax’s Model List shows MiniMax-M3.1-Flash and MiniMax-M3 as its available text models and MiniMax-M2 among its retired models; this article focuses specifically on MiniMax-M2.

MiniMax M2 Architecture: Why 230B Total and 10B Active Parameters Matter

MiniMax M2 is a Mixture-of-Experts model. In simple terms, an MoE model contains many expert subnetworks, but it does not activate all of them for every token. Instead, the model routes each token through a selected group of experts. This allows the model to have a large total capacity while keeping the per-token compute budget much lower than a dense model of the same total size.

For MiniMax-M2, the rounded public numbers are about 230B total parameters and about 10B active parameters per token. The technical report states the more exact architecture as 229.9B total parameters and 9.8B activated per token, implemented as a 62-layer decoder-only Transformer with 256 experts.

This matters because active parameter count affects serving efficiency. A model with fewer active parameters per token can be more practical for interactive agents, batch sampling, and repeated tool-use loops, although parameter count alone does not determine output quality. Data quality, post-training, tool integration, inference engine, context handling, and evaluation setup all affect results.

MiniMax’s own GitHub summary frames the design around lower latency, lower cost, and higher throughput for agentic and coding workloads, but users should validate those claims against their own workload before adoption.

Core Capabilities

Coding Assistance

MiniMax M2 is positioned as a coding model for developer workflows. Its most relevant coding tasks include code generation, multi-file editing, compile-run-fix workflows, test-validated repairs, repository-level refactoring, and CI-style automation. MiniMax’s GitHub page specifically highlights multi-file edits, coding-run-fix loops, and test-validated repairs as target strengths.

For teams building developer assistants, this makes MiniMax M2 most useful when the model is connected to a controlled environment: repository access, test runner, shell, linter, code search, issue tracker, and clear acceptance criteria. The model’s value increases when it can inspect errors, modify files, rerun tests, and make iterative fixes.

Agentic Workflows

MiniMax M2 is also designed for agentic workflows: tasks where the model plans multiple steps, calls tools, observes results, and adjusts its plan. Examples include shell-based debugging, browser-assisted research, retrieval pipelines, code-runner loops, and structured workflow automation.

MiniMax’s launch post describes long-chain tool-calling tasks that coordinate shell, browser, Python code interpreter, and MCP tools. Its GitHub materials also discuss shell, browser, retrieval, and code-runner workflows.

This does not mean MiniMax M2 will perform well in every agent setup. Tool-use quality depends heavily on scaffolding: how tools are exposed, how errors are returned, how memory is handled, how permissions are limited, and how success is verified.

Reasoning and Instruction Following

MiniMax M2 can also handle general reasoning and complex instruction following. However, benchmark scores are not guarantees. A model may perform strongly in a benchmark environment but struggle with a private codebase, unusual documentation, noisy data, or poorly designed tool wrappers.

For production use, MiniMax M2 should be tested with real tasks: bug reports, pull requests, internal documentation, code review workflows, support automations, and long-running agent jobs. That is more reliable than choosing a model based only on public leaderboard results.

MiniMax M2 Benchmarks and Performance Snapshot

MiniMax M2 benchmark data should be treated as a snapshot, not a permanent ranking. MiniMax’s GitHub repository lists benchmark areas such as SWE-bench Verified, Multi-SWE-Bench, SWE-bench Multilingual, Terminal-Bench, BrowseComp, GAIA, HLE with tools, τ²-Bench, FinSearchComp, and AgentCompany.

Artificial Analysis also evaluated MiniMax-M2 and highlighted its efficiency relative to active parameter count among open-weight models. The same analysis noted a practical caveat: MiniMax-M2 used 120M tokens to complete the Artificial Analysis Intelligence Index evaluations, which can reduce the cost advantage of low per-token pricing in verbose workflows.

Benchmark AreaWhat It TestsWhy It Matters for Users
SWE-bench VerifiedReal software issue resolutionUseful for coding agents and bug fixing
Multi-SWE-BenchMulti-language software tasksRelevant for polyglot engineering teams
Terminal-BenchCommand-line task executionImportant for shell-based agents
BrowseCompBrowser-assisted information retrievalUseful for research and web-navigation agents
GAIATool-assisted reasoning tasksHelps evaluate multi-step problem solving
τ²-BenchAgentic tool useRelevant for structured tool workflows
FinSearchCompFinancial search and reasoningUseful for domain-specific retrieval workflows

The safest interpretation is this: MiniMax M2 has credible reported performance in coding and agentic benchmarks, but benchmark results should be compared with real workload tests before committing to a model stack.

How to Use MiniMax M2

MiniMax Agent

MiniMax’s launch and Hugging Face materials referenced MiniMax Agent as a product built around MiniMax-M2 for agent-style workflows. Treat this as launch-era context. To test M2 itself, self-host the open weights (see Local Deployment below).

MiniMax API

MiniMax-M2 is no longer available on the MiniMax API. MiniMax’s Model List shows it as retired, so an integration that calls it needs a current model ID: MiniMax-M3.1-Flash or MiniMax-M3. Both are called the same ways M2 was, through HTTP requests, the Anthropic SDK path (base URL https://api.minimax.io/anthropic, which MiniMax recommends), or the OpenAI SDK path (https://api.minimax.io/v1).

Here is an OpenAI-compatible request with the model ID changed from MiniMax-M2 to MiniMax-M3.1-Flash and an optional reasoning effort added:

curl https://api.minimax.io/v1/chat/completions \
  -H "Authorization: Bearer <MINIMAX_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-M3.1-Flash",
    "reasoning_effort": "high",
    "messages": [
      {
        "role": "user",
        "content": "Review this function and suggest safer error handling."
      }
    ]
  }'

M3.1 Flash always reasons before it answers. Its reasoning_effort setting accepts low, medium, high, xhigh, or max, and MiniMax defaults to max when you leave it out; higher levels think more thoroughly but produce more output tokens at higher latency. On this endpoint the reasoning comes back in message.reasoning_content, and content holds only the final answer.

Check your request volume as well. MiniMax’s rate-limit page listed MiniMax-M2 at 500 RPM and 20,000,000 TPM; it has dropped the M2 rows and lists 200 RPM and 10,000,000 TPM for MiniMax-M3.1-Flash and MiniMax-M3. The API documentation also notes that the maximum token count refers to total input and output tokens.

MiniMax M2 API Pricing

MiniMax’s pay-as-you-go price list no longer includes MiniMax-M2. The last rates MiniMax published for it, under Legacy Models, were $0.30 per 1M input tokens and $1.20 per 1M output tokens, with prompt caching read at $0.03 per 1M tokens and prompt caching write at $0.375 per 1M tokens (archived copy of MiniMax’s price list from October 14, 2026).

For comparison, MiniMax-M3.1-Flash costs $0.15 per 1M input tokens, $0.60 per 1M output tokens, and $0.015 per 1M cache-read tokens, half of M2’s last rate in each case, and MiniMax lists no separate cache-write price for it. MiniMax-M3 Standard costs $0.30 input and $1.20 output per 1M tokens for requests up to 512K input tokens, and $0.60 and $2.40 above that. Every current rate is in our MiniMax pricing guide.

Hugging Face and Model Weights

The API retirement does not affect the MiniMax-M2 open weights, which MiniMax publishes through its Hugging Face presence. The Hugging Face model page lists the model as text generation, shows the model ID MiniMaxAI/MiniMax-M2, and displays the license label as modified-mit, while the linked GitHub license uses MIT-style terms with an added commercial-scale attribution condition.

For commercial deployment, review the license, model card, acceptable-use terms, and any provider-specific requirements. The GitHub license says commercial products or services using the software must prominently display “MiniMax M2” in the user interface if they exceed 100 million monthly active users or more than 30 million US dollars in annual recurring revenue. “Open-weight” availability does not remove the need for legal and security review.

Local Deployment

MiniMax-M2 can be deployed locally with inference frameworks such as vLLM and SGLang. The Hugging Face page provides examples for using MiniMaxAI/MiniMax-M2 with vLLM and SGLang, including OpenAI-compatible local server calls.

The vLLM MiniMax-M2 series guide lists MiniMaxAI/MiniMax-M2 among supported models and describes system requirements such as Linux, Python 3.10–3.13, and GPU compute capability 7.0 or higher for NVIDIA deployments. It also notes substantial memory requirements, including roughly 220 GB for weights and 240 GB per 1M context tokens, with example configurations such as 4×96GB GPUs or 8×144GB GPUs depending on the target KV cache capacity.

Local deployment is best suited for teams with GPU infrastructure, inference engineering experience, and a clear reason to control model serving. For many teams, calling M3.1 Flash or M3 on MiniMax’s API is simpler than serving M2 themselves.

MiniMax M2 Use Cases

MiniMax M2 is most relevant when the task benefits from coding ability, tool use, or long-horizon execution. Practical use cases include:

  • AI coding assistant for repository-level work.
  • Code review assistant for pull requests and diffs.
  • Automated bug fixing with test execution.
  • Repository-level refactoring and migration.
  • Tool-using research agent with browser and retrieval tools.
  • Internal developer automation for routine engineering tasks.
  • Technical documentation assistant for large codebases.
  • Batch generation or evaluation workflows.

The strongest use cases are not just “ask a question, get an answer.” MiniMax M2 is more compelling when paired with tools, verifiers, execution environments, and task-specific guardrails.

MiniMax M2 Limitations

MiniMax M2 is text-focused and should not be treated as a full native multimodal model. Hugging Face lists MiniMax-M2 under text generation, while MiniMax’s API docs describe MiniMax-M3.1-Flash and MiniMax-M3 as multimodal.

Its other limitations are practical rather than unusual:

  • Benchmarks do not guarantee performance on every private codebase.
  • Local deployment can require substantial GPU memory and engineering work.
  • MiniMax lists MiniMax-M2 as retired, so its own API no longer serves the model; any hosted route depends on a provider that runs the open weights.
  • Tool-use quality depends on integration design.
  • Long-context support depends on provider and deployment setup.
  • Licensing and usage terms should be checked before commercial use.
  • Verbose outputs can increase task-level cost even when token prices look low.

The Artificial Analysis note about high token usage is especially important for agentic workflows. A low price per million tokens does not always mean a low cost per completed task.

MiniMax M2 vs Other Models: How to Think About Comparisons

MiniMax M2 should not be evaluated through a single “best model” claim. For coding and agentic workloads, compare models using:

  • Coding accuracy.
  • Test-pass rate.
  • Tool-use reliability.
  • Latency.
  • Output token usage.
  • Cost per completed task.
  • Context window.
  • Deployment control.
  • License and provider availability.
  • Performance on real internal workflows.

Comparisons with Claude, Gemini, DeepSeek, Qwen, Kimi, or other models should be workload-specific and date-specific. A model that performs well on SWE-bench may not be the strongest choice for document processing, customer support, retrieval-heavy research, or constrained latency environments.

For MiniMax M2, the comparison should focus on whether its MoE efficiency, open-weight availability, and coding-agent orientation match the user’s workload.

MiniMax M2 vs M2.1, M2.5, M2.7, and M3

Searchers looking for “MiniMax M2” may also see references to MiniMax M2.1, MiniMax M2.5, MiniMax M2.7, and MiniMax M3. They are separate M-series models. MiniMax’s Model List shows MiniMax-M2 and MiniMax-M2.1 in its Retired Models table without a retirement date. MiniMax closed M2.5 and M2.7 to new users on October 19, 2026, and set November 18, 2026 as their retirement date; after that date, API requests to them no longer work.

This guide is specifically about MiniMax-M2. For new work on MiniMax’s API, start with one of the two text models MiniMax lists as available: MiniMax M3.1 Flash, the lower-cost option, or MiniMax M3 if you need its Priority tier. Both are multimodal and have a 1,000,000-token context window, compared with M2’s 204,800-token API context and text-focused design.

Who Should Use MiniMax M2?

With MiniMax’s API route retired, M2 fits people who run the open weights themselves, such as:

  • Developers building coding agents.
  • Teams experimenting with open-weight model deployment.
  • AI engineers comparing coding models.
  • Researchers studying MoE efficiency.
  • Businesses that need controllable model deployment.
  • Teams building shell, browser, retrieval, or code-runner agents.

It is especially relevant for teams that can create strong evaluation harnesses. A good harness turns vague model comparison into measurable results: issue solved or not, tests passed or not, patch accepted or not, cost per successful task, and time per successful task.

Who Should Avoid MiniMax M2?

MiniMax M2 may not be the right fit for:

  • Anyone who wants a hosted MiniMax API model; use M3.1 Flash or M3 instead.
  • Users needing native image, audio, or video understanding.
  • Non-technical users who only need a general chatbot.
  • Teams without deployment or inference engineering resources.
  • Projects that cannot tolerate provider or license review.
  • Workflows where verbose output creates unacceptable latency or cost.
  • Use cases that require guaranteed behavior without task-specific testing.

For basic chatbot use, a simpler hosted model may be easier. For high-stakes automation, MiniMax M2 should be wrapped with permissions, logs, approval gates, tests, and rollback paths.

Final Verdict

MiniMax M2 is best understood as an earlier efficient Mixture-of-Experts language model built for coding and agentic workflows. Its main value is the combination of coding/tool-use focus, open-weight availability, and an active-parameter design that made large-model capacity more practical to serve at the time of release.

The model’s reported strengths are most relevant to developer agents, software engineering workflows, tool-calling systems, and long-horizon automation. Its limitations are equally important: benchmark rankings can age, provider details can vary, local deployment is resource-intensive, and task-level cost depends on actual token usage.

MiniMax-M2 is no longer a MiniMax API option. For new work, start with M3.1 Flash or M3. If you need M2 itself, for self-hosting or to reproduce earlier results, test it on your own workload and review its license before commercial use.

FAQ

What is MiniMax M2?

MiniMax M2 is a Mixture-of-Experts language model from MiniMax, designed for coding assistance, tool use, reasoning, and agentic workflows. It is also written as MiniMax-M2 in official model IDs and documentation. MiniMax’s Model List shows it as retired; the text models MiniMax lists as available are MiniMax-M3.1-Flash and MiniMax-M3.

Is MiniMax M2 open source or open weight?

MiniMax’s launch and GitHub materials describe MiniMax-M2 as open sourced, while the Hugging Face model page lists the license as modified-mit. The linked GitHub license uses MIT-style terms with an added commercial-scale attribution condition: products or services using the software must prominently display “MiniMax M2” in the user interface if they exceed 100 million monthly active users or more than 30 million US dollars in annual recurring revenue. For production or commercial use, review the model card, license text, and provider terms directly.

How many parameters does MiniMax M2 have?

MiniMax M2 is commonly described as about 230B total parameters with about 10B active parameters per token. The technical report gives the more exact numbers: 229.9B total parameters and 9.8B activated per token.

What is the context window of MiniMax M2?

MiniMax’s API documentation listed MiniMax-M2 with a 204,800-token context window before the model was retired. The technical report describes the base architecture with a 192K-token native context window, so check context support against your own deployment setup.

Is MiniMax M2 good for coding?

MiniMax M2 is built for coding and agentic development workflows. MiniMax’s GitHub materials highlight multi-file edits, coding-run-fix loops, test-validated repairs, SWE-bench-style tasks, and Terminal-Bench-style tasks.

Can I use MiniMax M2 through an API?

Not through MiniMax’s own API. MiniMax’s Model List shows MiniMax-M2 in its Retired Models table and gives no retirement date, so an integration that calls it needs a current model ID: MiniMax-M3.1-Flash or MiniMax-M3. Both use the same Anthropic-compatible and OpenAI-compatible endpoints that M2 did. To run M2 itself, self-host the open weights from Hugging Face.

How much does MiniMax M2 cost through the official API?

MiniMax no longer lists a price for MiniMax-M2. The last pay-as-you-go rates it published were $0.30 per 1M input tokens and $1.20 per 1M output tokens, plus $0.03 for cache reads and $0.375 for cache writes per 1M tokens. MiniMax-M3.1-Flash costs half as much for input and output: $0.15 and $0.60 per 1M tokens.

Can MiniMax M2 run locally?

Yes. The API retirement does not affect the weights: MiniMax-M2 weights are available on Hugging Face, and the model page includes examples for local serving with vLLM and SGLang. Large MoE deployment can require substantial hardware, so consult deployment documentation before planning infrastructure.

What is MiniMax M2 best used for?

MiniMax M2 was built for coding agents, automated bug fixing, repository-level assistance, tool-using research agents, shell/browser workflows, and internal developer automation. Since MiniMax lists it as retired, it makes most sense for self-hosted versions of that work or for reproducing earlier results; for hosted use, pick M3.1 Flash or M3.

Is MiniMax M2 multimodal?

MiniMax M2 should be treated as text-focused. Hugging Face lists MiniMax-M2 as a text generation model, while MiniMax’s API docs describe MiniMax-M3.1-Flash and MiniMax-M3 as multimodal.

How is MiniMax M2 different from MiniMax M2.7?

MiniMax M2 and MiniMax M2.7 are separate M-series models, and M2.7 is the later release. MiniMax’s Model List shows MiniMax-M2 as retired without a date. MiniMax closed M2.7 to new users on October 19, 2026, and set November 18, 2026 as its retirement date; after that date, API requests to M2.7 no longer work. This article focuses on MiniMax-M2; our MiniMax M2.7 guide covers the later model.