---
title: MiniMax: MiniMax M2.7 API | Text Generation | ModelsLab
description: Build with MiniMax: MiniMax M2.7 API by Minimax. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.7/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/minimax/minimax-minimax-m2.7/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:52:54.488085Z
---

MiniMax: MiniMax M2.7
---

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

minimax-minimax-m2.7 minimax Closed Source Model $0.740000 / call

MiniMax: MiniMax M2.7
---

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.7

minimax minimax-minimax-m2.7

Copy model ID

PricingInput $0.28 / 1M tokens

Output $1.20 / 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)

[QP](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-Plus)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.6 Plus

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

[ER](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/essentialai-rnj-1-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [EssentialAI: Rnj 1 Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/essentialai-rnj-1-instruct)

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

 [MiniMax M2

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

[MK](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-latest)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [MoonshotAI Kimi Latest

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-latest)

[XM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-omni)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Xiaomi: MiMo-V2-Omni

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-omni)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-26b-a4b-it-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemma 4 26B A4B (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-26b-a4b-it-free)

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

 [Minimax M1 80K

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

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

 [Anthropic: Claude Sonnet 4.6

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

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-medium-3)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Mistral Medium 3

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

[CC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/cohere-command-r7b-12-2024)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Cohere: Command R7B (12-2024)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/cohere-command-r7b-12-2024)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-ministral-14b-2512)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Ministral 3 14B 2512

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

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

 [Qwen: Qwen3.6 35B A3B

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

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

 [DeepSeek-R1

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

[PS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar-reasoning-pro)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Perplexity: Sonar Reasoning Pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar-reasoning-pro)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-Turbo-test)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3.3 70B Instruct Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-Turbo-test)

[G2](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-2-9b-it)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Gemma 2 9B It

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-2-9b-it)

[![Gemini 2.5 Pro](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/ede9a278-de62-47fb-a53d-99ee4c7b7abc.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google/gemini-2.5-pro)[Google](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google)

 [Gemini 2.5 Pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/google/gemini-2.5-pro)

[XG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/x-ai-grok-4)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [xAI: Grok 4

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/x-ai-grok-4)

About MiniMax: MiniMax M2.7
---

MiniMax-M2.7 is a next-generation large language model designed for autonomous, real-world productivity and continuous improvement. Built to actively participate in its own evolution, M2.7 integrates advanced agentic capabilities through multi-agent...

### Technical Specifications

Model IDminimax-minimax-m2.7CategoryLLM ModelsTaskText GenerationPrice$0.740000 per million tokensAddedMarch 18, 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.7 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.7",
        "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.7/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

MiniMax: MiniMax M2.7 API costs $0.740000 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

[Learn more about MiniMax: MiniMax M2.7](https://modelslab-frontend-v2-927501783998.us-east4.run.app/minimax-minimax-m27) [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.7 FAQ
---

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

MiniMax-M2.7 is a next-generation large language model designed for autonomous, real-world productivity and continuous improvement. Built to actively participate in its own evolution, M2.7 integrates advanced agentic capabilities through multi-agent...

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

You can integrate MiniMax: MiniMax M2.7 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.7" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

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

MiniMax: MiniMax M2.7 costs $0.740000 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.7 model ID?

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

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

Yes, ModelsLab offers a free tier that lets you try MiniMax: MiniMax M2.7 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*