minimaxCertifiedReleased 10/27/2025

MiniMax M2

MiniMax-M2 redefines efficiency for agents. It is a compact, fast, and cost-effective MoE model (230 billion total parameters with 10 billion active parameters) built for elite performance in coding and agentic tasks, all while maintaining powerful general intelligence.

View API reference ↓
Input / output priceFrom$0.30 / $1.20per 1M
24h uptime100.00%
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "minimax/minimax-m2",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Providers

Dispatch routes requests across these providers and fails over between them without changing the model. Restrict or order providers with team Directives. Prices are gateway list prices before the platform fee.

ProviderContextMax outputLatencyThroughputInputOutputCacheCapabilitiesZDRNo trainingRegionsStatus
minimax205K205K0.8 s21 tps$0.30$1.20Read $0.030Write $0.385 featuresNoNoGlobalCertified

Uptime

24 hours

Request success rate per provider.

minimax100.00%

Throughput

last hour

P50 output tokens per second.

minimax21 tps

Latency

last hour

P50 time to first token.

minimax0.8 s

Getting started

Create a key on the API Keys page and set it as IB_API_KEY. See the quickstart.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "minimax/minimax-m2",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Top-level parameters

Standard Chat Completions parameters work as documented. These have model-specific behavior.

ParameterTypeRequiredDescription
modelstringYesModel ID in the form creator/model, e.g. minimax/minimax-m2. Must be allowed by your team's Directives.
max_tokensnumberNoHard cap on generated tokens, and the basis for the balance reserved per request. MiniMax M2 supports up to 205,000 output tokens.
reasoning{ effort: 'low' | 'medium' | 'high' }NoReasoning effort, mapped to the provider's native configuration. Reasoning tokens count toward output usage.
toolsTool[]NoFunction definitions the model can call. Tool calls are returned in choices[].message.tool_calls.
Supportedmax_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoningresponse_formatstructured_outputs

Input limits

InputSourcesLimits
Text—Prompt and response share the 205K-token context window

More models by minimax

ModelContextInputOutputCacheRelease
minimax/minimax-m3.1-flash1M$0.15$0.60Read $0.015Write —10/19/2026
minimax/minimax-m31M$0.30$1.20Read $0.060Write —05/31/2026
minimax/minimax-m2.7205K$0.30$1.20Read $0.060Write $0.3803/18/2026
minimax/minimax-m2.7-highspeed205K$0.60$2.40Read $0.060Write $0.3803/18/2026
minimax/minimax-m2.5205K$0.30$1.20Read $0.030Write $0.3802/12/2026
minimax/minimax-m2.5-highspeed205K$0.60$2.40Read $0.030Write $0.3802/12/2026
minimax/minimax-m2.1205K$0.30$1.20Read $0.030Write $0.3812/23/2025
minimax/minimax-m2.1-lightning205K$0.30$2.40Read $0.030Write $0.3812/23/2025