We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

MiniMax: MiniMax M2

minimax/minimax-m2
TextInput: textToolsReasoning205KAdded Oct 23, 2025

Try MiniMax: MiniMax M2 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

MiniMax: MiniMax M2 at a glance

  • Input price is 43% lower than the median of 434 Text models.
  • Context window of 204,800 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • A typical request (1,000 input / 500 output tokens) costs about $0.00268.

About MiniMax: MiniMax M2

MiniMax M2 is a text generation model from MiniMax, released on 23 October 2025. It is a compact, high efficiency large language model with 10 billion activated parameters out of 230 billion total, and MiniMax describes it as optimized for end to end coding and agentic workflows. It sits in the text category, so it is aimed at language tasks rather than image, audio or video generation.

The model takes text as input and returns text as output. It has a context window of 204,800 tokens, which is large enough to hold substantial source files, long documents or extended conversation histories in a single request. The maximum output is 176,947 tokens, so it can produce very long completions when a task requires them. MiniMax positions it as delivering near frontier intelligence across general reasoning, alongside its focus on coding and agent style work.

Those capabilities point to a few practical uses. The coding focus makes it a reasonable fit for code generation, refactoring, debugging and working across multi file repositories that need to be read together within the context window. The agentic emphasis suits tool calling loops, where the model decides which function to invoke and incorporates the result into its next step. The long context and long output limits also help with summarising or transforming large documents, and with reasoning heavy tasks where the model benefits from working through a problem before answering.

You can call it through api14's OpenAI compatible API using the model id "minimax/minimax-m2". The supported request parameters are frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs and top_p. Tool use is available through tools and tool_choice, structured outputs through response_format and structured_outputs, and reasoning behaviour can be influenced with reasoning and include_reasoning. Sampling can be tuned with temperature, top_p, top_k, frequency_penalty, presence_penalty and repetition_penalty, while seed, stop, logprobs and top_logprobs give you control over reproducibility and token level output.

Since the model accepts only text input, tasks involving images, audio or other modalities need a different model. If your workload does not involve coding, agentic tool use or long context reasoning, a smaller or more general text model may be simpler and sufficient.

How to call the MiniMax: MiniMax M2 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "minimax/minimax-m2".
import OpenAI from "openai";

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

const result = await client.chat.completions.create({
  "model": "minimax/minimax-m2",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Specifications

Context length
204,800
Max output
131,072
Input
text
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

MiniMax: MiniMax M2: frequently asked questions

How much does the MiniMax: MiniMax M2 API cost?
MiniMax: MiniMax M2 costs Input $0.89 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of MiniMax: MiniMax M2?
MiniMax: MiniMax M2 reads up to 204,800 tokens per request: prompt, history and documents together. It writes up to 131,072 output tokens per response.
What can MiniMax: MiniMax M2 do?
MiniMax: MiniMax M2 accepts text and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call MiniMax: MiniMax M2 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "minimax/minimax-m2". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to MiniMax: MiniMax M2?
Comparable Text models at a similar price: DeepSeek: DeepSeek V3.1 Terminus, DeepSeek: DeepSeek V3, Qwen: Qwen3 VL 30B A3B Thinking. Each runs through the same API key, so switching is one string.

MiniMax: MiniMax M2 community

New topic

This community has no topics yet. Open the first one about MiniMax: MiniMax M2.