---
title: MiniMax: MiniMax M2.1 API | Text Generation | ModelsLab
description: 230B MoE LLM with 10B active params excels in coding, agents & multi-language dev; 200K context, 88.6 VIBE score, 74% SWE-bench at 90% lower cost.
url: https://modelslab.com/models/minimax/minimax-minimax-m2.1.md
canonical: https://modelslab.com/models/minimax/minimax-minimax-m2.1.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-03T20:23:06.521319Z
---

MiniMax: MiniMax M2.1
---

 [LLMs.txt](https://modelslab.com/models/open_router/minimax-minimax-m2.1/llms.txt) [.md](https://modelslab.com/models/minimax/minimax-minimax-m2.1.md)

MiniMax: MiniMax M2.1
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### MiniMax: MiniMax M2.1

minimax minimax-minimax-m2.1

Copy model ID

PricingInput $0.29 / 1M tokens

Output $0.95 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/xAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $4.00/M tokens](https://modelslab.com/models/open_router/x-ai-grok-4.20-multi-agent)

[#### open\_router/LiquidAI: LFM2.5-1.2B-Thinking (free)

liquid-lfm-2.5-1.2b-thinking-free

Free](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)

[#### open\_router/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-large-2407)

[#### open\_router/MiniMax: MiniMax M2.5

minimax-minimax-m2.5

From $0.65/M tokens](https://modelslab.com/models/open_router/minimax-minimax-m2.5)

[#### open\_router/Google: Gemini 3.5 Flash

google-gemini-3.5-flash

From $5.25/M tokens](https://modelslab.com/models/open_router/google-gemini-3.5-flash)

[#### open\_router/Anthropic: Claude Opus 4.7 (Fast)

anthropic-claude-opus-4.7-fast

From $90.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-4.7-fast)

[#### alibaba\_cloud/Qwen: Qwen3.5-122B-A10B

qwen-qwen3.5-122b-a10b

From $1.80/M tokens](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)

[#### open\_router/Anthropic: Claude 3 Haiku

anthropic-claude-3-haiku

From $0.75/M tokens](https://modelslab.com/models/open_router/anthropic-claude-3-haiku)

[#### open\_router/Amazon: Nova 2 Lite

amazon-nova-2-lite-v1

From $1.40/M tokens](https://modelslab.com/models/open_router/amazon-nova-2-lite-v1)

[#### open\_router/Perceptron: Perceptron Mk1

perceptron-perceptron-mk1

From $0.82/M tokens](https://modelslab.com/models/open_router/perceptron-perceptron-mk1)

[#### open\_router/Sao10K: Llama 3.1 Euryale 70B v2.2

sao10k-l3.1-euryale-70b

From $0.85/M tokens](https://modelslab.com/models/open_router/sao10k-l3.1-euryale-70b)

[#### open\_router/Z.ai: GLM 4.5

z-ai-glm-4.5

From $1.40/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.5)

[#### open\_router/Mistral: Mistral Medium 3

mistralai-mistral-medium-3

From $1.20/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-medium-3)

[#### open\_router/MiniMax: MiniMax M3

minimax-minimax-m3

From $0.75/M tokens](https://modelslab.com/models/open_router/minimax-minimax-m3)

[#### mistral\_ai/Mistral (7B) Instruct

mistralai-Mistral-7B-Instruct-v0.1

From $0.20/M tokens](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1)

[#### together\_ai/Kimi K2.6 Fp4

moonshotai-Kimi-K2.6

From $2.85/M tokens](https://modelslab.com/models/together_ai/moonshotai-Kimi-K2.6)

[#### meta/Typhoon 2.1 12B

scb10x-scb10x-typhoon-2-1-gemma3-12b

From $0.24/M tokens](https://modelslab.com/models/meta/scb10x-scb10x-typhoon-2-1-gemma3-12b)

[#### open\_router/Meta: Llama 3.1 70B Instruct

meta-llama-llama-3.1-70b-instruct

From $0.40/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.1-70b-instruct)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About MiniMax: MiniMax M2.1
---

MiniMax-M2.1 is a lightweight, state-of-the-art large language model optimized for coding, agentic workflows, and modern application development. With only 10 billion activated parameters, it delivers a major jump in real-world...

### Technical Specifications

Model IDminimax-minimax-m2.1

CategoryLLM Models

TaskText Generation

Price$0.62 per million tokens

AddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate MiniMax: MiniMax M2.1 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "minimax-minimax-m2.1",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

MiniMax: MiniMax M2.1 API costs $0.620000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Minimax](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

MiniMax: MiniMax M2.1 FAQ
---

### What is MiniMax: MiniMax M2.1?

MiniMax-M2.1 is a lightweight, state-of-the-art large language model optimized for coding, agentic workflows, and modern application development. With only 10 billion activated parameters, it delivers a major jump in real-world...

### How do I use the MiniMax: MiniMax M2.1 API?

You can integrate MiniMax: MiniMax M2.1 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "minimax-minimax-m2.1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does MiniMax: MiniMax M2.1 cost?

MiniMax: MiniMax M2.1 costs $0.620000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the MiniMax: MiniMax M2.1 model ID?

The model ID for MiniMax: MiniMax M2.1 is "minimax-minimax-m2.1". Use this ID in your API requests to specify this model.

### Does MiniMax: MiniMax M2.1 have a free tier?

Yes, ModelsLab offers a free tier that lets you try MiniMax: MiniMax M2.1 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-04*