APIMart
Back to all models

MiniMax M2.5 API

MiniMaxModel ID minimax-m2.5Text modelReleased February 12, 2026

Use MiniMax M2.5 to write a change plan before touching the code, work through a question step by step with search tools, or turn a sales export into a monthly summary sheet for Excel.

Max input
204,800 tokens
Max output
131,072 tokens
Input → output
Text → Text
  • Streaming
  • OpenAI SDK compatible

MiniMax M2.5 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on MiniMax M2.5.

Try MiniMax M2.5 with your own material

Plan first, then change the code

Give MiniMax M2.5 the requirement and the relevant files, and ask for a plan first: which files change and how. Approve the plan, then have it write the change, and run the tests before merging.

Example: Which files does this change touch?

Material

Requirement
Add a “discount” column to the order CSV export; use 0 when there is no discount.
src/export/orders.ts
const COLUMNS = ['id', 'date', 'total']; rows.map(o => [o.id, o.date, o.total])
tests/export.test.ts
expect(header).toEqual('id,date,total')

PromptBased on the requirement and the code below, write a change plan first: which files to edit, what changes in each, and how to verify it. Don’t write code yet.

Sample answer · written by hand to show the reasoning

1) src/export/orders.ts: append 'discount' to COLUMNS and add o.discount ?? 0 to each row, so orders without a discount output 0. 2) tests/export.test.ts: change the header assertion to 'id,date,total,discount' and add an order with no discount, asserting the last column is 0. 3) Verify: run the export tests, then export one discounted and one undiscounted order and open both in a spreadsheet. Generate the code once the plan is approved.

About the MiniMax M2.5 API

  • A spec before the code

    MiniMax says M2.5 breaks down the requirement and writes a spec before it codes, like an architect. It was trained on more than 10 programming languages, including Python, Java, TypeScript, Go, Rust and C++.

  • Parallel tool calls, fewer search rounds

    M2.5 can call several tools in parallel in one step. MiniMax says it needs about 20% fewer rounds than M2.1 on search tasks such as BrowseComp and Wide Search.

  • Word, PowerPoint and Excel tasks

    MiniMax worked with experts in finance, law and the social sciences to train it on documents, slides and Excel financial modeling. On MiniMax’s internal GDPval-MM office evaluation it had an average 59.0% win rate in pairwise comparisons with other mainstream models.

  • MiniMax M2.5 API key and access

    You don’t need a separate MiniMax M2.5 API key: one APIMart key works for every model. Check the MiniMax M2.5 pricing table on this page for current MiniMax M2.5 API pricing, then call an OpenAI Chat Completions-compatible endpoint with the model ID minimax-m2.5.

MiniMax M2.5 official benchmark results

Selected results MiniMax published at launch.

  • SWE-Bench Verified

    80.2%

    Resolving real issues in open-source projects. 79.7% on the Droid harness, where Claude Opus 4.6 scores 78.9%.

  • Multi-SWE-Bench

    51.3%

    Real software engineering tasks across multiple programming languages.

  • BrowseComp

    76.3%

    Finding hard-to-locate answers through multi-round search and browsing (with context management).

  • GPQA-Diamond

    85.2

    Graduate-level science questions. M2.1 scores 83.0.

  • AIME25

    86.3

    American Invitational Mathematics Examination problems. M2.1 scores 83.0.

  • AA-LCR

    69.5

    Long-context reasoning. M2.1 scores 62.0.

How to call the MiniMax M2.5 API

To call MiniMax M2.5, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-m2.5",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

MiniMax M2.5 access details

Model IDminimax-m2.5
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

MiniMax M2.5 API request parameters

MiniMax M2.5 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use minimax-m2.5 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

MiniMax M2.5 API pricing

The MiniMax M2.5 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input2.4Credits~$0.242.28Credits~$0.2282.16Credits~$0.2163Credits~$0.320%
Output9.6Credits~$0.969.12Credits~$0.9128.64Credits~$0.86412Credits~$1.220%

Prices are for reference only. View full pricing

Why call MiniMax M2.5 API through APIMart

  • 20% below official pricing

    MiniMax M2.5 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below MiniMax's official prices.

    See membership prices
  • One API key for 500+ models

    MiniMax M2.5, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try MiniMax M2.5 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which MiniMax model should you choose?

Base prices per 1M tokens (USD). Your MiniMax M2.5 API key works for every model in the table; just change the model parameter.

Differences between MiniMax models
ComparisonMiniMax M2.5 CurrentMiniMax M3
Best forCoding agents, Tool use and search, Open weightsCoding agents, Image and video input, 1M-token context
Input typesTextText, Image, Video
Max input204,800 tokens1,000,000 tokens

MiniMax M2.5 FAQ

Does MiniMax M2.5 accept image input?

No. MiniMax M2.5 takes text in and returns text. If your task starts from screenshots, images or video, MiniMax M3 in the same family adds image and video input; set the model parameter to minimax-m3, and the endpoint and API key stay the same.

What changes when I move from MiniMax M2.5 to MiniMax M3?

Change the model parameter from minimax-m2.5 to minimax-m3; the endpoint and API key stay the same. M3, released in June 2026, accepts image and video input, has a 1M-token context and lets you switch thinking off, while M2.5 is text only. Re-test your prompts and tool flows before switching, and compare the two models’ rates in the pricing tables on this site.

How does MiniMax M2.5 return its reasoning, and what matters in multi-turn tool calls?

M2.5 reasons before it answers. According to MiniMax’s docs, through the OpenAI-compatible API the reasoning comes back wrapped in think tags inside content. In multi-turn tool calls, put the whole assistant message back into the history unchanged, including what is inside the think tags, or the model loses its earlier reasoning. Strip the think tags and their contents before showing the reply to end users.

What sampling settings does MiniMax recommend for M2.5?

The model card recommends temperature 1.0, top_p 0.95 and top_k 40. Use these unless you have a reason not to; for steadier output, put the requirements in the prompt, such as a fixed output format and an example, rather than pushing temperature very low.

MiniMax M2.5 has open weights. Why use the API?

MiniMax published the weights on Hugging Face under a modified MIT license. At about 229B parameters, self-hosting needs a multi-GPU server and someone to run it. Through the API you pay per token with no hardware, and the same key works for other models. Consider self-hosting when data must stay on your own machines or your usage is large and steady.

MiniMax doesn’t list an output limit for M2.5. Which number applies?

MiniMax lists a 204,800-token context window for M2.5 but no fixed output limit, and reasoning counts toward the output. On APIMart, the per-request limit shown on this page, 131,072 tokens, applies; leave room for the reasoning.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select MiniMax M2.5 in the text category to start exploring.

Which model ID does the MiniMax M2.5 API use?

Set model to minimax-m2.5. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of MiniMax M2.5?

On APIMart, MiniMax M2.5 accepts up to 204,800 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

MiniMax M2.5 can output up to 131,072 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the MiniMax M2.5 API cost?

The MiniMax M2.5 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.24 per million input tokens and $0.96 per million output tokens. Diamond: $0.216 per million input tokens and $0.864 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.