chat.minimax_m2
chat.minimax_m2

MiniMax M2 is a newer-generation model built for agentic workflows and coding — calling tools, writing and fixing code, and running multi-step tasks end to end, fast and cheap under real traffic. Served on RouterBase over an OpenAI-compatible endpoint at $0.30 / 1M input and $1.20 / 1M output, with cached input at just $0.03, 5% under list; reach for it when tool use and coding matter more than one long answer.

Input
MiniMax M2
max_tokens4096
temperature1
top_p1
presence_penalty0
frequency_penalty0
MiniMax M2 Online
Hi! I'm a helpful AI assistant. What can I do for you?

MiniMax M2 API — Built for Agents and Coding

The MiniMax M2 API serves MiniMax M2, a newer-generation model tuned for agentic workflows and coding — fast, tool-savvy, and cheap.

MiniMax M2 is built for the work agents actually do: calling tools, writing and fixing code, and running multi-step tasks end to end. The MiniMax M2 API pairs that agent focus with an efficient design, so it stays fast and cheap under real traffic — $0.30 per 1M input tokens and $1.20 per 1M output, with cached input at just $0.03. It is the model to reach for when tool use and coding matter more than one long single answer.

You call the MiniMax M2 API through RouterBase on the OpenAI chat-completions protocol; set the model to minimax-m2 and your client is unchanged. The MiniMax M2 API bills $0.30 per 1M input, $1.20 per 1M output, and $0.03 for cached input — 5% under list, on one key that reaches the whole catalog.

Agents and code

What the MiniMax M2 API gives you

Tool loops and coding, fast and cheap.

Built for agents

The MiniMax M2 API is tuned for agentic workflows — tool calls, multi-step tasks, and long-running loops.

Strong at coding

Writing, fixing, and reasoning over code is where the MiniMax M2 API earns its place.

Fast and efficient

An efficient design keeps the MiniMax M2 API quick under real traffic, so it fits interactive and high-volume paths.

Low pricing

At $0.30 in and $1.20 out, the MiniMax M2 API is cheap enough for heavy agent loops — 5% below list.

Near-free cached reads

Cached input is just $0.03 per 1M, so repeated context on the MiniMax M2 API costs almost nothing.

OpenAI-shaped

One chat-completions endpoint, one RouterBase key — point at routerbase.com/v1, name the model, skip the MiniMax SDK.

RouterBase dashboard preview
Get going

First call to the MiniMax M2 API in three steps

Quick to wire, ready to drive a tool loop.

  1. Create a key

    One RouterBase key reaches the MiniMax M2 API and every other model in the catalog.

  2. Point and name

    Send any OpenAI client to routerbase.com/v1 with model=minimax/minimax-m2. Streaming and function calling work out of the box.

  3. Wire your tools

    Give the MiniMax M2 API your function schemas and let it drive the loop; usage comes back per response so cost stays visible.

Pricing

Pay only for what you use

RouterBase passes through partner-tier pricing. Compared against the model's official published API rate.

Agents in production

Teams building on the MiniMax M2 API

Tool loops and coding, running cheap.

Marta SokolovaHead of Engineering, Northgate

We moved our coding agent to the MiniMax M2 API and the tool loop just ran cleaner.

Dario FerroStaff Engineer, Ponte

The MiniMax M2 API handled multi-step tasks end to end without us babysitting the loop.

Aisha YusufCTO, Kite Labs

Strong coding at $0.30 in made the MiniMax M2 API our default for agent work.

Bjorn AasFounder, Skerry

Cached reads at $0.03 kept our long agent loops on the MiniMax M2 API basically free.

Line MadsenBackend Lead, Havn

Function calling is reliable, so our whole tool layer runs on the MiniMax M2 API.

Deepak SethiML Lead, Lattice Grid

The MiniMax M2 API was fast enough to sit inside our live coding assistant.

Mei LinPrincipal Engineer, Paperbark

One string changed from our old model; the MiniMax M2 API was cheaper and better at tools the same day.

Hugo AlmeidaFounder, Ribeira

We route agent and coding traffic to the MiniMax M2 API and keep everything on one key.

Elsa HoltEngineering Manager, Bruk

Our autonomous coding runs got noticeably steadier on the MiniMax M2 API.

MiniMax M2 API — common questions

What to know before you route traffic to it.

RouterBase's hosted access to MiniMax M2, a newer-generation model built for agentic workflows and coding, over an OpenAI-compatible endpoint.