APIMart
Back to all models

MiniMax M3 API

MiniMaxModel ID minimax-m3Text modelReleased June 1, 2026

Use MiniMax M3 to find why a page layout breaks from a screenshot and the CSS, list the steps a screen recording shows, or trace where a setting comes from across a whole repository.

Max input
1,000,000 tokens
Max output
131,072 tokens
Input → output
Text, Image, Video → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

MiniMax M3 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 M3.

Try MiniMax M3 with your own material

Layout bugs from screenshots

Send a screenshot of the broken page with the relevant CSS and have MiniMax M3 point to the rule that causes it. Check the fix in the browser at the same screen width.

Example: Why does the button wrap onto two lines?

Material

Screenshot (390 px wide)
The “Start free trial” button text breaks into two lines and the button is taller than the input next to it.
styles.css
.signup-row { display: flex; } .signup-row input { flex: 1 0 280px; } .signup-row button { padding: 0 24px; }

PromptUsing the screenshot description and the CSS, explain why the button text wraps on mobile and give the smallest fix.

Sample answer · written by hand to show the reasoning

The input has a 280 px flex basis and cannot shrink (flex-shrink 0), so on a 390 px screen only about 110 px is left for the button, and its text wraps. Let the input shrink with flex: 1 1 0 and min-width: 0, and add white-space: nowrap to the button. Check again at 390 px and 320 px widths.

About the MiniMax M3 API

  • Coding, 1M context and multimodal

    MiniMax released M3 on June 1, 2026 as an open-weight model that combines frontier coding and agent work, a 1M-token context window and native image and video input.

  • Faster at long context

    MiniMax Sparse Attention makes M3 9x faster at prefill and 15x faster at decoding than M2 at a 1M-token context, with per-token compute cut to 1/20, according to MiniMax.

  • Thinking you can switch off

    Set thinking to disabled for fast replies or adaptive to let the model decide. Temperature and top_p are fixed at 1 and 0.95 on MiniMax’s API.

  • MiniMax M3 API key and access

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

MiniMax M3 official benchmark results

Selected results MiniMax published at launch.

  • SWE-Bench Pro

    59.0%

    Real software engineering tasks from professional codebases, solved end to end.

  • Terminal-Bench 2.1

    66.0%

    Multi-step tasks completed in a command-line terminal.

  • MCP Atlas

    74.2%

    Tool use through MCP servers across many real tools.

  • OSWorld-Verified (100 steps)

    68.7%

    Operating a desktop computer to finish tasks; 70.06% with up to 200 steps.

  • Video-MME (512 frames)

    84.6

    Understanding and answering questions about videos.

  • PostTrainBench

    0.37

    Running a model post-training project as an agent. Claude Opus 4.7 scores 0.42 and GPT-5.5 scores 0.39.

How to call the MiniMax M3 API

To call MiniMax M3, 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-m3",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

MiniMax M3 access details

Model IDminimax-m3
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 M3 API request parameters

MiniMax M3 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-m3 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 M3 API pricing

The MiniMax M3 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%
Cached input0.48Credits~$0.0480.456Credits~$0.04560.432Credits~$0.04320.6Credits~$0.0620%
Output9.6Credits~$0.969.12Credits~$0.9128.64Credits~$0.86412Credits~$1.220%

Prices are for reference only. View full pricing

Why call MiniMax M3 API through APIMart

  • 20% below official pricing

    MiniMax M3 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below MiniMax's official prices, and cached input costs just $0.048 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    MiniMax M3, 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 M3 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 M3 API key works for every model in the table; just change the model parameter.

Differences between MiniMax models
ComparisonMiniMax M3 CurrentMiniMax M2.5
Best forCoding agents, Image and video input, 1M-token contextCoding agents, Tool use and search, Open weights
Input typesText, Image, VideoText
Max input1,000,000 tokens204,800 tokens

MiniMax M3 FAQ

Can I turn off thinking on MiniMax M3?

Yes. According to MiniMax’s API docs, the thinking parameter accepts disabled (no thinking, for lower latency and higher throughput) and adaptive (the model decides when to think); with the OpenAI SDK, pass it in extra_body. MiniMax’s OpenAI-compatible and Anthropic-compatible docs describe different defaults when the parameter is omitted, so set it explicitly. Thinking tokens count toward the max_tokens limit, so leave enough room for the answer.

How should I keep conversation history when MiniMax M3 calls tools?

Keep the whole assistant message, including its reasoning, in the history for the next turn. MiniMax’s docs say the reasoning returned with a tool call must be passed back unchanged, especially in tool-use conversations, so the model can continue from where it stopped. With reasoning_split set to true, the reasoning comes back in the reasoning_content field; otherwise it is wrapped in think tags inside content.

Why don’t temperature and top_p change MiniMax M3’s output?

MiniMax fixes them on its API: temperature is always 1 and top_p is always 0.95, which match the values recommended in the model card, and values you send are ignored (top_p must still be greater than 0 and at most 1). presence_penalty, frequency_penalty and logit_bias are also ignored, and n must be 1. Control output with the prompt, the thinking setting and max_tokens instead.

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

Set the model parameter to minimax-m3; the endpoint and API key stay the same. M3 adds image and video input and a 1M-token context, so test long prompts and tool-calling flows again, and set the thinking parameter to match the latency you need.

MiniMax M3 has open weights. Why call it through an API?

MiniMax published the weights on Hugging Face under the MiniMax community license, and the model has about 428 billion parameters, so self-hosting it needs a multi-GPU server and someone to run it. Through the API you pay per token with no hardware, and you can switch to other models with the same key. Self-hosting makes sense when data must stay on your own machines or usage is high and steady.

Why is the APIMart output limit different from MiniMax’s documentation?

MiniMax publishes the 1M-token context window but not a fixed output limit for MiniMax M3, and thinking tokens count toward whatever limit you set. For calls through APIMart, use the limit shown on this page: 131,072 tokens per request.

How can I try this model online?

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

Which model ID does the MiniMax M3 API use?

Set model to minimax-m3. 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 M3?

On APIMart, MiniMax M3 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

MiniMax M3 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 M3 API cost?

The MiniMax M3 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.