MiniMax M2.7: Retirement Dates, Migration, Specs, Pricing, and License

MiniMax M2.7 is a text-and-tool-use model released by MiniMax on March 18, 2026 for software engineering, agent workflows, and professional document tasks. 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, so pay-as-you-go integrations need a new model ID: MiniMax-M3.1-Flash or MiniMax-M3.

MiniMax M2.7 retirement status

Last verified: November 8, 2026 (retirement status, current models, prices, and the code example). Other details on this page were last checked July 17, 2026.

MiniMax announced the retirement of its M2.5 and M2.7 model families on its official Model List. The schedule covers both MiniMax-M2.7 and MiniMax-M2.7-highspeed, and the same page lists both in its Retired Models table.

DateWhat MiniMax set for its M2.5 and M2.7 models
October 19, 2026Closed to new users. On M Plan and Token Plan, requests that name these models are routed automatically to M3.1 Flash.
November 18, 2026Retirement date. After it, pay-as-you-go API requests to these models no longer work.

What the retirement means for you depends on how you use M2.7:

  • Pay-as-you-go API users: integrations that use a standard API Key need a new model ID, because after November 18, 2026, requests that name M2.7 or M2.7-highspeed fail. Switch to MiniMax-M3.1-Flash or MiniMax-M3 and re-test; the migration steps are below.
  • M Plan and Token Plan subscribers: MiniMax has routed requests that name an M2.5 or M2.7 model to M3.1 Flash since October 19, 2026. The old model names keep working for backward compatibility, and plan usage allowances are unchanged. Those requests are answered by M3.1 Flash, so re-check prompts and tool flows you tuned on M2.7. Our M Plan guide explains the tiers and the Subscription Key.
  • New users: M2.7 has been closed to new users since October 19, 2026, so a new integration starts on M3.1 Flash or M3.
  • Self-hosted deployments: the notice is about MiniMax’s hosted API and does not mention the open weights. MiniMax’s own Deploy MiniMax-M2.7 guide covers self-hosting for an existing M2.7 workflow and points new projects that need multimodal input or a 1M-token context to MiniMax-M3.

Product status, account access, prices, limits, and license terms can change; verify them with the linked MiniMax sources before deployment.

MiniMax M2.7 at a glance

Official model IDMiniMax-M2.7
Faster hosted variantMiniMax-M2.7-highspeed
Release dateMarch 18, 2026
Hosted API statusBoth IDs closed to new users on October 19, 2026; retirement date November 18, 2026, after which pay-as-you-go API requests to them no longer work. MiniMax’s Model List shows both under Retired Models.
Context limit204,800 tokens combined across input and output
Compatible input typesText and tool-call content; no image or video input for M2.x through the compatible interfaces
Documented hosted speedApproximately 60 tokens/second for M2.7 and 100 tokens/second for highspeed; these were documentation figures, not a latency guarantee
Hosted accessReplaced on MiniMax’s API by MiniMax-M3.1-Flash and MiniMax-M3; M Plan and Token Plan requests that name M2.7 are routed to M3.1 Flash
Local accessPublic weights from MiniMax’s official repository and Hugging Face organization
Weight licenseNon-commercial license with MIT-style permissions for permitted non-commercial uses; commercial use requires prior written authorization

The retirement status comes from MiniMax’s Model List and the release date from its model release notes. The context limit and speed figures come from the model catalog and API overview as checked on July 17, 2026; those pages no longer list M2.7.

What MiniMax M2.7 is designed to do

MiniMax presents M2.7 as a model for complex agent harnesses and professional productivity tasks. Its official repository highlights software engineering work such as log analysis, bug investigation, refactoring, code-security review, machine-learning tasks, terminal operation, and multi-step tool use. It also describes Word, Excel, and presentation workflows that require editable deliverables and repeated revision.

The phrase “recursive self-improvement” in MiniMax’s release materials refers to how an internal version of M2.7 participated in parts of the model-development process. MiniMax says the system updated memory, built skills for reinforcement-learning experiments, analyzed failures, modified a programming scaffold, ran evaluations, and decided whether to keep or revert changes. It does not mean that every API request retrains the deployed model or allows it to alter its own production weights.

M2.7 status versus M3.1 Flash, M3, and older M2 models

Model familyHosted API statusCombined contextCompatible content input
MiniMax-M3.1-FlashAvailable; released October 19, 20261,000,000 tokensText, images, video, and tool content; text output
MiniMax-M3Available; released June 1, 20261,000,000 tokensText, images, video, and tool content; text output
MiniMax-M2.7 / M2.7-highspeedReleased March 18, 2026; closed to new users October 19, 2026; retirement date November 18, 2026204,800 tokensText and tool-call content
MiniMax-M2.5 / M2.5-highspeedSame retirement schedule as M2.7204,800 tokensText and tool-call content
M2.1, M2.1-highspeed, and M2Listed as Retired on the Model List, with no retirement date given204,800 tokensText and tool-call content

For hosted work, the choice is between MiniMax M3.1 Flash and MiniMax M3; the migration section below compares their prices and the request changes. M2.7 itself matters only if you self-host the public weights under the license terms or need earlier M2.7 results as a baseline for the replacement.

If another MiniMax page names an M2.x model, for example in a list of models that support a feature, go by the Model List: its Retired Models table includes M2.7, M2.5, M2.1, and M2, and MiniMax gives no retirement date for M2.1 or M2.

Context window: what 204,800 tokens means

MiniMax documented a 204,800-token context window for both M2.7 variants and explicitly defined it as the combined total of input and output tokens. It is not a promise that an application can always send 204,800 input tokens and still request a large completion.

Plan the token budget as:

system instructions + conversation history + tool definitions + tool results + user input + model reasoning and answer ≤ 204,800 tokens

Long-context capacity does not ensure that every detail receives equal attention. For repository analysis or document workflows, split the task, retrieve only relevant material, label sources, and verify that the answer cites the supplied evidence. Monitor actual token usage rather than estimating from character count alone.

MiniMax M2.7 API pricing: the last published rates

These are the last pay-as-you-go rates MiniMax published for M2.7, from its price list as archived on October 14, 2026. MiniMax’s price list no longer includes M2.7. Prices are in U.S. dollars per 1 million tokens.

ModelInputOutputPrompt-cache readPrompt-cache write
MiniMax-M2.7$0.30$1.20$0.06$0.375
MiniMax-M2.7-highspeed$0.60$2.40$0.06$0.375

For prompts within M2.7’s 204,800-token limit, both replacements charge per-token rates equal to or below M2.7’s: MiniMax-M3.1-Flash is $0.15 per 1M input tokens and $0.60 per 1M output tokens, and MiniMax-M3 Standard is $0.30 and $1.20 up to 512K input tokens. The migration section compares the rates side by side. Check MiniMax’s pricing overview before budgeting, and use billed token usage rather than a word-count estimate. Our separate MiniMax pricing guide explains the difference between pay-as-you-go keys and M Plan or Token Plan subscription keys.

M2.7 versus M2.7-highspeed

MiniMax described the highspeed variant as having the same performance profile with faster inference. Its API overview gave approximate output speeds of 60 tokens per second for M2.7 and 100 tokens per second for M2.7-highspeed. Highspeed cost twice as much for input and output tokens, while the two cache rates in the pricing table were identical.

Both variants follow the same retirement schedule, so moving to highspeed is not a workaround. If you used highspeed for lower latency, test M3.1 Flash at a lower effort level, which MiniMax documents as the way to cut thinking latency and token use, or M3 with Priority admission. Measure time to first token, output speed, end-to-end tool-loop duration, failure rate, cache hit rate, and total cost with your prompts. A provider figure is not a service-level guarantee, and tool latency may dominate model-generation time.

How to migrate from M2.7 to M3.1 Flash or M3

On the pay-as-you-go API, moving off M2.7 is mostly a model-ID change followed by a re-test. The replacements use the same base URLs and request formats: https://api.minimax.io/anthropic for the Anthropic-compatible route, which MiniMax’s documentation labels as recommended, and https://api.minimax.io/v1 for the OpenAI-compatible route, which suits applications built around Chat Completions.

M3.1 Flash is where MiniMax sends M Plan and Token Plan requests for M2.7, and it is the cheaper of the two on the pay-as-you-go API, so it is the natural first test. Choose M3 instead if you need Priority admission or answers without a thinking step. For a closer look at how M3 differs from M2.7 in coding, context, price, and license terms, see our MiniMax M3 vs M2.7 comparison.

Price per 1M tokensInputOutputCache readVersus M2.7’s last rates
MiniMax-M3.1-Flash$0.15$0.60$0.015Half the input and output price and a quarter of the cache-read price; 75% below M2.7-highspeed on input and output
MiniMax-M3 Standard, up to 512K input tokens$0.30$1.20$0.06The same as M2.7
MiniMax-M3 Standard, over 512K input tokens$0.60$2.40$0.12Twice M2.7, for prompts longer than M2.7’s 204,800-token context could hold

MiniMax lists no cache-write price for either replacement; M2.7’s last rate was $0.375 per 1M tokens. M3 also offers Priority admission at 1.5 times the Standard price when you set service_tier to priority; M3.1 Flash does not support service_tier.

What to change in your requests

  • Model ID: replace MiniMax-M2.7 or MiniMax-M2.7-highspeed with MiniMax-M3.1-Flash or MiniMax-M3 in code, configuration files, and environment variables.
  • Thinking on M3.1 Flash: it always thinks, as M2.7 did, and adds an effort level of low, medium, high, xhigh, or max; max applies when you leave it out. Set it with reasoning_effort on the OpenAI-compatible route or output_config.effort on the Anthropic-compatible route. Remove any thinking: {"type": "disabled"} left in M2.7 code: M2.x accepted and ignored it, but M3.1 Flash returns a 400 error.
  • Thinking on M3: there is no effort setting. Thinking is off by default on the Anthropic-compatible route (send "thinking": {"type": "adaptive"} to enable it) and on by default on the OpenAI-compatible route, where "thinking": {"type": "disabled"} skips it.
  • Output limit: thinking tokens count toward it, so leave room. A limit that is too small ends with finish_reason: "length" or stop_reason: "max_tokens" and no answer text. On the OpenAI-compatible route, use max_completion_tokens for new code.
  • Sampling settings: MiniMax documents temperature, top_p, top_k, stop_sequences, and the penalty parameters as ignored for both models, which always use temperature 1 and top_p 0.95. Remove them so your code does not suggest settings that have no effect.
  • Reasoning output: on the OpenAI-compatible route, M3.1 Flash returns thinking in reasoning_content and only the final answer in content, so the reasoning_split flag from M2.7 examples is not needed. M3.1 Flash does not support setting it to false. On M3, send reasoning_split: true to get the same split.
  • Context: both models have a 1,000,000-token context, so prompts sized for M2.7’s 204,800-token budget fit with room to spare.
  • Re-test: run your M2.7 evaluation set on the replacement (on M3.1 Flash, at one or two effort levels) and compare accepted results, latency, and cost before you move production traffic.

Updated Node.js example with the OpenAI-compatible endpoint

Here is a typical M2.7 request moved to M3.1 Flash. The model ID changes, reasoning_effort sets the thinking depth, and the output limit leaves room for thinking. The ignored temperature and top_p settings are gone, and so is the reasoning_split flag.

const response = await fetch("https://api.minimax.io/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.MINIMAX_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    model: "MiniMax-M3.1-Flash",
    reasoning_effort: "high",
    messages: [
      {
        role: "system",
        content: "You are a careful software-engineering assistant."
      },
      {
        role: "user",
        content: "Review this function and propose a tested patch."
      }
    ],
    max_completion_tokens: 131072 // MiniMax's recommended limit for M3.1 Flash; thinking counts toward it
  })
});

if (!response.ok) {
  throw new Error(`MiniMax API error ${response.status}: ${await response.text()}`);
}

const data = await response.json();
const message = data.choices[0].message;
if (message.reasoning_content) {
  console.log(message.reasoning_content); // thinking, returned separately
}
console.log(message.content); // final answer only

To call M3 instead, change model to MiniMax-M3 and drop reasoning_effort, which MiniMax documents for M3.1 Flash only. Add reasoning_split: true so the thinking comes back in reasoning_content, separate from content, and add service_tier: "priority" if you need Priority admission.

Store the key on the server, never in browser JavaScript or a public repository. Add timeouts, retries with backoff, rate-limit handling, request identifiers, spend limits, and output validation before production use. See the official OpenAI-compatible documentation and our independent MiniMax API guide.

Reasoning and multi-turn tool calls

The multi-turn rules carry over from M2.7. With OpenAI-compatible tool conversations, preserve the complete assistant response—including tool calls and reasoning content—when you append it to conversation history. With the Anthropic-compatible format, preserve every content block, including thinking, text, and tool-use blocks. Removing those blocks can break reasoning continuity.

M2.7 accepted only text and tool-call content through the compatible APIs. To add images or video on M3.1 Flash or M3, use image_url and video_url content parts on the OpenAI-compatible route, or image and video content blocks on the Anthropic-compatible route.

Hosted replacement versus self-hosting M2.7

Decision areaMiniMax-hosted API (M3.1 Flash or M3)Self-hosted M2.7 weights
OperationsMiniMax operates model serving; you operate the application and integrationYou operate or contract for inference, scaling, updates, monitoring, and incident response
Commercial termsOpen Platform terms and API billing applyThe weight license applies; commercial use requires prior written MiniMax authorization
Data pathPrompts and outputs pass through the MiniMax service under the applicable terms and privacy policyData handling depends on your runtime, host, logs, telemetry, storage, backups, and access controls
CapacityNo model-weight infrastructure to provision; account limits and provider availability applyLarge public weights require substantial compute, storage, and inference engineering
UpdatesProvider manages serving changes and model retirementsYou control versions and must validate every change

The official MiniMax M2.7 repository links the weights and deployment guides for SGLang, vLLM, Transformers, and ModelScope. Self-hosting is not equivalent to calling the hosted API: behavior can differ with quantization, inference engine, kernels, prompt template, sampling settings, tool implementation, and available hardware.

MiniMax M2.7 license explained

The public weights are not distributed under an unrestricted MIT license. MiniMax’s repository labels the file a Non-Commercial License. It permits specified non-commercial uses under MIT-style terms, including personal self-hosting and non-commercial research or education. The license says commercial use requires separate prior written authorization from MiniMax and requires a prominent “Built with MiniMax M2.7” notice.

The license also contains prohibited-use conditions and an “as is” warranty disclaimer. Read the official M2.7 license before downloading, modifying, fine-tuning, serving, or embedding the weights in a product.

Do not assume the weight license governs a paid request sent to MiniMax’s hosted API. Hosted service use is governed by the Open Platform agreement and applicable service rules. Likewise, paying API fees does not grant permission to commercially self-host the weights.

Officially reported M2.7 benchmarks

MiniMax reports the following results in its official repository. These are provider-reported figures, not tests conducted by MiniMax-AI.chat. Benchmark versions, agent scaffolds, tool access, compute budgets, prompts, pass counts, and scoring rules can materially affect results.

BenchmarkMiniMax-reported M2.7 resultWhat it evaluates broadly
SWE-Pro56.22%Professional software-engineering tasks
SWE Multilingual76.5Software tasks across languages
Multi SWE Bench52.7Repository-level software work
VIBE-Pro55.6%Real-world coding-agent work
Terminal Bench 257.0%Terminal and environment interaction
Toolathon46.3%Tool-use tasks
MM Claw end-to-end62.7%Complex skills and agent workflows
GDPval-AA1495 ELOProfessional-work deliverables

Use these numbers to select tests, not to declare a universal winner. When you replace M2.7, run M3.1 Flash or M3 on the same private task set you used for M2.7, with the same tools, time limits, retry policy, review rubric, and cost accounting. Measure task completion, correctness, regressions, human correction time, latency, and total spend.

Practical use cases

M2.7 was built for the workloads below. On MiniMax’s hosted API they move to M3.1 Flash or M3; a self-hosted M2.7 deployment can serve them where the license allows.

  • Repository maintenance: bug investigation, refactoring plans, test generation, log correlation, and patch review.
  • Tool-using agents: multi-step workflows that call search, terminal, database, or internal application tools.
  • Document workflows: drafting and revising structured reports, spreadsheets, and presentation content with human approval.
  • Long-document analysis: source-grounded synthesis within a 204,800-token combined budget.
  • Model research: permitted non-commercial evaluation of agent scaffolds, self-hosting, sampling, and inference trade-offs.

Human review remains necessary for security patches, financial or legal material, production commands, data changes, and decisions that can affect people. Tool access should follow least privilege, with sandboxing, approval gates, audit logs, and reversible actions.

Evaluation checklist before deployment

  • Find every MiniMax-M2.7 and MiniMax-M2.7-highspeed reference in code, configuration, and environment variables, and confirm that the replacement model ID works for the intended account and region.
  • Compare M3.1 Flash or M3 with your M2.7 baseline on the same task set.
  • Budget input, output, reasoning, tool results, and cache operations.
  • Preserve complete assistant reasoning and tool-call messages in multi-turn history.
  • Validate every tool argument before execution.
  • Block secrets and sensitive data that the service contract does not permit.
  • Measure task success and human correction effort rather than relying only on benchmark scores.
  • For self-hosting, obtain commercial authorization when applicable and satisfy the attribution requirement.
  • Pin model, runtime, prompt-template, and evaluation versions.

Frequently asked questions

Is MiniMax M2.7 being retired?

Yes. MiniMax closed M2.7 and M2.7-highspeed to new users on October 19, 2026, and set November 18, 2026 as their retirement date. After that date, pay-as-you-go API requests to them no longer work. On M Plan and Token Plan, requests that name M2.7 have been routed to M3.1 Flash since October 19, 2026, and MiniMax’s Model List shows both models in its Retired Models table.

What replaces M2.7?

On MiniMax’s API, MiniMax-M3.1-Flash or MiniMax-M3. M Plan and Token Plan requests that name M2.7 go to M3.1 Flash automatically. Pay-as-you-go users set the new model ID themselves: M3.1 Flash costs half of M2.7’s last input and output rates, while M3 Standard matches them up to 512K input tokens. M3 also offers Priority admission at 1.5 times the Standard price. Self-hosted M2.7 deployments are not affected by the API retirement.

Does M2.7 have a 204,800-token input window?

The 204,800 figure is the combined maximum for input and output, not an input-only allowance. Reserve enough capacity for reasoning and the answer.

Can M2.7 accept images or video?

Not through the documented OpenAI- and Anthropic-compatible content formats. MiniMax documents text and tool-call blocks for M2.x; image and video input belong to M3.1 Flash and M3.

Can M2.7 thinking be disabled?

No. MiniMax’s compatible API documentation says thinking cannot be disabled for M2.x models. A disabled setting may be accepted, but M2.7 continues to use thinking. M3.1 Flash is stricter: it returns a 400 error for the same setting, so remove it when you migrate.

Is MiniMax M2.7 open source under MIT?

No. The weights are publicly available, but the repository uses a non-commercial license with MIT-style permissions for specified non-commercial uses. Commercial use requires prior written authorization and the required “Built with MiniMax M2.7” notice.

Should a new project use M2.7 or M3?

Not M2.7 on MiniMax’s API: MiniMax closed it to new users on October 19, 2026, and pay-as-you-go requests to it stop working after November 18, 2026. Start a hosted project on M3.1 Flash, or on M3 if you need Priority admission or answers without a thinking step. M2.7 fits a new project only as a permitted self-hosted deployment, and MiniMax’s own M2.7 deployment guide points new projects that need multimodal input or a 1M-token context to M3. Use a controlled test rather than the model name alone.

Conclusion

MiniMax built M2.7 for text, tool use, coding agents, and professional workflows, and set November 18, 2026 as its API retirement date. Its documented limits were a 204,800-token combined context, no image or video input through the compatible interfaces, and mandatory thinking. The M2.7 weight license restricts commercial self-hosting.

For pay-as-you-go integrations, change the model ID to MiniMax-M3.1-Flash or MiniMax-M3, set an effort level on M3.1 Flash, and re-run your M2.7 test set on the replacement before you move production traffic. If you self-host the public weights instead, the weight license applies, not the hosted API terms.