MiniMax M2.7 API
Access MiniMax M2.7 through one API key. Bilingual flagship model with massive output.
MiniMax's flagship model. Strong Chinese-English bilingual performance with 131K output tokens.
Takes 30 seconds.
MiniMax M2.7 API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated September 27, 2026.
| Token type | Price |
|---|---|
| Input | $0.44 / 1M tokens |
| Output | $1.77 / 1M tokens |
| Context window | 205K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0013 | $1.33 |
| RAG answer8K input + 800 output tokens | $0.0049 | $4.94 |
| Agent step with tools30K input + 2K output tokens | $0.017 | $16.74 |
| Long document summary100K input + 2K output tokens | $0.048 | $47.54 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see MiniMax M2.7 respond in real time.
Maximum tokens in the response.
Real-time tokens
MiniMax M2.7 specs
| Provider | MiniMax |
|---|---|
| Model ID | minimax/minimax-m2.7 |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 205K tokens |
| Max output | 131K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a MiniMax M2.7 API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call MiniMax M2.7
Send a request to /v1/ai/chat with the x-api-key header and model "minimax/minimax-m2.7".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Trained for strong Chinese and English performance, M2.7 handles cross-language tasks and China-market content with fluency in both directions.
A 131,072-token maximum output is among the largest available, letting M2.7 generate very long documents, reports, or translations in a single response.
As a MiniMax flagship, it delivers solid multi-step reasoning across analytical, coding, and writing tasks.
A 204,800-token context window holds large inputs alongside its long outputs, supporting end-to-end long-document workflows.
Quick start
Copy this snippet and start making calls with MiniMax M2.7.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "minimax/minimax-m2.7",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);MiniMax M2.7 vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| MiniMax M2.7 | MiniMax | $0.44 in / $1.77 out per 1M | 205K |
| MiniMax M3.1 Flash | MiniMax | $0.22 in / $0.89 out per 1M | 1.0M |
| MiniMax M2.5 | MiniMax | $0.40 in / $1.40 out per 1M | 205K |
| MiniMax M3 | MiniMax | $0.44 in / $1.77 out per 1M | 1.0M |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
| Solar Mini 4 | Upstage | $0.07 in / $0.30 out per 1M | 524K |
| Nemotron 3.5 Lightning | NVIDIA | $0.10 in / $0.30 out per 1M | 262K |
Why use MiniMax M2.7 through YepAPI?
MiniMax M2.7 API: bilingual flagship with 131K-token output
MiniMax M2.7 is a flagship bilingual model whose standout feature is an exceptionally large 131,072-token output ceiling, paired with strong Chinese-English performance.
On YepAPI you call MiniMax M2.7 through one OpenAI-compatible endpoint at $0.44 per 1M input and $1.77 per 1M output tokens, with a 204,800-token context window.
What is MiniMax M2.7?
MiniMax M2.7 is a flagship model from MiniMax built for strong bilingual Chinese-English performance, with a distinguishing trait: it can produce up to 131,072 output tokens in one response, far more than most models allow. That makes it unusually capable of generating very long, coherent documents without splitting the job across calls. It pairs that with a 204,800-token context window, so it can both read large inputs and write long outputs in a single pass. Combined with solid multi-step reasoning, M2.7 is suited to long-form generation tasks in either language where output length itself is the constraint.
Build with MiniMax M2.7 via YepAPI
Call MiniMax M2.7 through YepAPI's OpenAI-compatible /v1/ai/chat endpoint. Point your OpenAI SDK at YepAPI and set the model string to minimax; switching to another model later is a single-string edit. One YepAPI key also reaches every other model plus SEO, SERP, and web-scraping tools, so you can gather source material in Chinese or English and have M2.7 draft long reports or translations from it within one integration.
MiniMax M2.7 API pricing — $0.44 / $1.77 per 1M tokens
MiniMax M2.7 costs $0.44 per 1M input tokens and $1.77 per 1M output tokens on YepAPI. The output rate is the one to watch given the 131K-token ceiling: long generations consume many output tokens, so pricing them low keeps big document jobs affordable. For workloads that produce book-length or report-length outputs, M2.7 makes large single-call generation practical rather than forcing costly stitching across requests.
MiniMax M2.7 for long-form bilingual generation
M2.7 is built for tasks where the output is long and the language may be Chinese or English: drafting full reports, translating lengthy documents end to end, generating extensive content, and producing detailed bilingual responses. The 131,072-token output ceiling means it can finish a long document in one response instead of being cut off, and the 200K context lets it keep the full source material in view while it writes.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
MiniMax's flagship model. Strong Chinese-English bilingual performance with 131K output tokens.
MiniMax M2.7 costs $0.44 per 1M input tokens and $1.77 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0013.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for MiniMax M2.7 and every other model — no separate MiniMax account or waitlist.
Use "minimax/minimax-m2.7" as the model on /v1/ai/chat. The short alias "minimax" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "minimax/minimax-m2.7". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
MiniMax M2.7 supports a 205K token context window with up to 131K output tokens per request.
Explore more models
MiniMax M2.5
MiniMaxAccess MiniMax M2.5 through one API key. Affordable bilingual model.
MiniMax M3.1 Flash
MiniMaxAccess MiniMax M3.1 Flash through one API key. MiniMax Fast Multimodal Agent Model.
MiniMax M3
MiniMaxAccess MiniMax M3 through one API key. MiniMax's latest flagship with 1M context.
Seed 2.0 Mini
ByteDanceAccess Seed 2.0 Mini through one API key. Ultra-cheap from ByteDance.
Claude Opus 4.1
AnthropicAccess Claude Opus 4.1 through one API key. OpenAI-compatible, pay per token.
Claude Opus 4.6
AnthropicAccess Claude Opus 4.6 through one API key. Anthropic's previous-generation flagship.
More Text Generation models
- GPT-5.6 Luna API · OpenAI
- Claude Opus 4.7 API · Anthropic
- Mistral Large 4 API · Mistral
- GPT-6 Astra Pro API · OpenAI
- Claude Opus 4.5 API · Anthropic
- Step 3.5 Flash API · StepFun
- Claude Opus 4.8 API · Anthropic
- GPT-5.4 Nano API · OpenAI
- Qwen3.8 27B API · Qwen
- GPT-5.6 Luna Pro API · OpenAI
- Gemini 2.5 Flash API · Google
- Claude Sonnet 5 API · Anthropic