YepAPI
MiniMaxText Generation/v1/ai/chat

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 typePrice
Input$0.44 / 1M tokens
Output$1.77 / 1M tokens
Context window205K tokens
What it costsPer jobPer 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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

MiniMax M2.7 specs

ProviderMiniMax
Model IDminimax/minimax-m2.7
Endpoint/v1/ai/chat
TypeText Generation
Context window205K tokens
Max output131K tokens
ReasoningNo
OpenAI-compatibleYes — /v1/ai/chat/completions

How to get a MiniMax M2.7 API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

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

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Bilingual CN/EN

Trained for strong Chinese and English performance, M2.7 handles cross-language tasks and China-market content with fluency in both directions.

✓
131K output

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.

✓
Strong reasoning

As a MiniMax flagship, it delivers solid multi-step reasoning across analytical, coding, and writing tasks.

✓
200K context

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.

ModelProviderPriceContext
MiniMax M2.7MiniMax$0.44 in / $1.77 out per 1M205K
MiniMax M3.1 FlashMiniMax$0.22 in / $0.89 out per 1M1.0M
MiniMax M2.5MiniMax$0.40 in / $1.40 out per 1M205K
MiniMax M3MiniMax$0.44 in / $1.77 out per 1M1.0M
Nemotron 3 SuperNVIDIA$0 in / $0 out per 1M262K
Qwen3.7 FlashQwen$0.04 in / $0.19 out per 1M1M
Solar Mini 4Upstage$0.07 in / $0.30 out per 1M524K
Nemotron 3.5 LightningNVIDIA$0.10 in / $0.30 out per 1M262K

Why use MiniMax M2.7 through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

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.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.

Ready to use MiniMax M2.7?

Pay per call, no subscriptions.

Explore more models