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.1
minimax/minimax-m2.1Try MiniMax: MiniMax M2.1 now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
MiniMax: MiniMax M2.1 at a glance
- Input price is 33% 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 reasoning effort control.
- A typical request (1,000 input / 500 output tokens) costs about $0.00315.
About MiniMax: MiniMax M2.1
MiniMax M2.1 is a text model from MiniMax, listed on api14 under the model id minimax/minimax-m2.1. MiniMax describes it as a lightweight, state-of-the-art large language model optimized for coding, agentic workflows, and modern application development. It uses 10 billion activated parameters, which the provider frames as a major jump in real-world performance for a model of this size. It was released by the provider on 2025-12-23.
The model works with text input and produces text output, so it fits text generation and transformation tasks rather than audio or image work. It has a context window of 204,800 tokens, which is enough to hold large source files, long documents, or extended conversation history in a single request. The maximum output is 131,072 tokens, so responses can be long when the task calls for it. Among its supported parameters are reasoning and include_reasoning, which means the model can expose a reasoning mode alongside its normal output.
Because MiniMax positions M2.1 around coding and agentic workflows, the natural use cases are code generation, code explanation, refactoring, and debugging across sizable codebases that fit inside the context window. The tool calling parameters (tools and tool_choice) make it suitable for agent-style applications where the model decides when to invoke external functions or services. The reasoning parameter supports tasks that benefit from step-by-step internal work, such as multi-step planning or complex analysis. The large output limit also helps for long-form generation, such as producing full files or detailed reports in one response. Response_format gives you control over the shape of the output, which is useful when a downstream system expects structured text.
You call the model through api14's OpenAI-compatible API using the model id minimax/minimax-m2.1, so existing OpenAI SDKs and clients work with only a change of base URL and model name. The request parameters it supports are include_reasoning, max_tokens, reasoning, response_format, temperature, tool_choice, tools, and top_p. In practice you would set temperature and top_p to tune sampling, cap the response with max_tokens, enable reasoning when you want the model to work through a problem, and pass tools with tool_choice when you want function calling. The page's live price table covers cost, so check there before committing to a workload.
One limit to keep in mind is modality: the model accepts and returns text only, so if your application needs image or audio input, a different model is a better fit. The context window is large but finite at 204,800 tokens, so very large repositories or document sets may still need chunking or retrieval in front of the model. If your task does not involve coding, agents, or reasoning-heavy work, a simpler or more general text model may be sufficient.
How to call the MiniMax: MiniMax M2.1 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "minimax/minimax-m2.1".
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.1",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_tokensreasoningresponse_formattemperaturetool_choicetoolstop_pSpecifications
- Context length
- 204,800
- Max output
- 131,072
- Input
- text
- Output
- text
Requests on api14 · last 7 days
MiniMax: MiniMax M2.1: frequently asked questions
- How much does the MiniMax: MiniMax M2.1 API cost?
- MiniMax: MiniMax M2.1 costs Input $1.05 / 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.1?
- MiniMax: MiniMax M2.1 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.1 do?
- MiniMax: MiniMax M2.1 accepts text and returns text. It supports tool calling, reasoning effort control.
- How do I call MiniMax: MiniMax M2.1 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "minimax/minimax-m2.1". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to MiniMax: MiniMax M2.1?
- Comparable Text models at a similar price: Meta: Muse Glimmer 30B, Meituan: LongCat 2.0, MiniMax: MiniMax M3. Each runs through the same API key, so switching is one string.
MiniMax: MiniMax M2.1 community
New topicThis community has no topics yet. Open the first one about MiniMax: MiniMax M2.1.