MiniMax-M2.7 to MiniMax-M3.1-Flash
Some values not published Checked 2026-11-12.
Price per 1M tokens
| Field | Old | New | Change |
|---|---|---|---|
| Input | Not published | Not published | Not published |
| Output | Not published | Not published | Not published |
| Cached input | Not published | Not published | Not published |
| Example monthly cost | Not published | Not published | Example only |
Context and max output
| Limit | Old | New | Change |
|---|---|---|---|
| Context window | Not published | Not published | Not published |
| Max output | Not published | Not published | Not published |
Capabilities that differ
No differing capability values are published for both models.
Endpoint changes
- The text generation guide shows an OpenAI-compatible client with base_url https://api.minimax.io/v1 and POST https://api.minimax.io/v1/chat/completions. This sample only changes the model field. Source
API changes
- The model list says pay-as-you-go API requests stop working once M2.5 and M2.7 are retired. Starting October 19, 2026, M Plan and Token Plan requests are automatically routed to M3.1 Flash, and the existing model names keep working. The guide's sample for MiniMax-M3.1-Flash also sets reasoning_effort to max. This sample does not add that field. Source
Code
python before
from openai import OpenAI
client = OpenAI(base_url="https://api.minimax.io/v1", api_key="<MINIMAX_API_KEY>")
response = client.chat.completions.create(
model="MiniMax-M2.7",
messages=[{"role": "user", "content": "Hi, how are you?"}],
)
python after
from openai import OpenAI
client = OpenAI(base_url="https://api.minimax.io/v1", api_key="<MINIMAX_API_KEY>")
response = client.chat.completions.create(
model="MiniMax-M3.1-Flash",
messages=[{"role": "user", "content": "Hi, how are you?"}],
)
typescript before
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.minimax.io/v1", apiKey: "<MINIMAX_API_KEY>" });
const response = await client.chat.completions.create({
model: "MiniMax-M2.7",
messages: [{ role: "user", content: "Hi, how are you?" }],
});
typescript after
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.minimax.io/v1", apiKey: "<MINIMAX_API_KEY>" });
const response = await client.chat.completions.create({
model: "MiniMax-M3.1-Flash",
messages: [{ role: "user", content: "Hi, how are you?" }],
});
curl before
curl https://api.minimax.io/v1/chat/completions \
-H "Authorization: Bearer <MINIMAX_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"MiniMax-M2.7","messages":[{"role":"user","content":"Hi, how are you?"}]}'
curl after
curl https://api.minimax.io/v1/chat/completions \
-H "Authorization: Bearer <MINIMAX_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"MiniMax-M3.1-Flash","messages":[{"role":"user","content":"Hi, how are you?"}]}'
Checklist
- Read the shutdown date for MiniMax-M2.7 on the MiniMax model list.
- Pay-as-you-go API requests stop working once these models are retired.
- M Plan and Token Plan requests are automatically routed to M3.1 Flash, and the existing model names keep working.
- Point your requests at MiniMax-M3.1-Flash and test before you send traffic.