---
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-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.1/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.1/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:53:31.397377Z
---

MiniMax: MiniMax M2.1
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m2.1/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.1.md)

minimax-minimax-m2.1 minimax Closed Source Model $0.620000 / call

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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[M(](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mistral-7B-Instruct-v0.1)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Mistral (7B) Instruct v0.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mistral-7B-Instruct-v0.1)

[![GPT 5.1](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt5.1)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [GPT 5.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt5.1)

[AC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-opus-4.6)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Anthropic: Claude Opus 4.6

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-opus-4.6)

[QV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-VL-32B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3-VL-32B-Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-VL-32B-Instruct)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-lite)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemini 3.1 Flash Lite

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-lite)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek)

 [DeepSeek R1 Distill Qwen 1.5B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

[![GPT-5-nano](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/264a17fd-e3e6-4145-a644-88e3c644638f.webp)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5-nano)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [GPT-5-nano

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5-nano)

[QC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-Coder-480B-A35B-Instruct-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3 Coder 480B A35B Instruct Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-Coder-480B-A35B-Instruct-FP8)

[GN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-image-preview)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3.1-flash-image-preview)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.1-8b-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama 3.1 8B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.1-8b-instruct)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta)

 [Meta Llama 3.1 405B Instruct Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)

[KK](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/kwaipilot-kat-coder-pro-v2)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Kwaipilot: KAT-Coder-Pro V2

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/kwaipilot-kat-coder-pro-v2)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-14b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 14B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-14b)

[AA](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/aion-labs-aion-1.0-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [AionLabs: Aion-1.0-Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/aion-labs-aion-1.0-mini)

[OO](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o4-mini-high)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: o4 Mini High

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o4-mini-high)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/MiniMaxAI-MiniMax-M1-40k)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Minimax M1 40K

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/MiniMaxAI-MiniMax-M1-40k)

[Q3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-35B-A3B-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.6 35B A3b Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-35B-A3B-FP8)

[MD](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-devstral-2512)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Devstral 2 2512

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-devstral-2512)

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.1CategoryLLM ModelsTaskText GenerationPrice$0.620000 per million tokensAddedFebruary 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-frontend-v2-927501783998.us-east4.run.app/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>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.1/api) for SDKs, code examples in Python, JavaScript, and more.

### 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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Minimax](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-05-13*