MiniMax-M2.5 API
MiniMax-M2.5 is MiniMax's agentic-coding text model with a 204,800-token context window. Call it on CaMeL Hub via the OpenAI-compatible API — set base_url to https://api.camel-hub.com/v1 — at $1.575 per 1M input and $6.30 per 1M output tokens.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $1.575 | $6.3 |
| Provider list price | $0.3 | $1.2 |
Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11
Specifications
- Provider
- MiniMax
- Context window
- 204800 tokens
- Endpoints
- anthropic, openai
What it is good for
- Agentic coding assistants that run plan → edit → test loops over a repository, where the 204,800-token context keeps large diffs and file trees in scope
- Automated code review and multi-file refactoring drafts on mid-sized codebases
- Long-document analysis: summarizing and querying contracts, logs, or research papers that run past 100K tokens
- Streaming chat assistants and IDE sidekicks that need steady token throughput at a predictable cost
- High-volume text pipelines (extraction, classification, report drafting) where input tokens dominate the bill
- Prototyping agent workflows before committing them to a higher-priced frontier model
Quickstart
OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.
cURL
curl https://api.camel-hub.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_HUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMax-M2.5",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Python
from openai import OpenAI
client = OpenAI(
api_key="$CAMEL_HUB_KEY",
base_url="https://api.camel-hub.com/v1", # <-- the only change vs. the OpenAI default
)
resp = client.chat.completions.create(
model="MiniMax-M2.5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.CAMEL_HUB_KEY,
baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});
const resp = await client.chat.completions.create({
model: "MiniMax-M2.5",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
Get an API key Browse integration guides
Frequently asked questions
How is MiniMax-M2.5 billed on CaMeL Hub?
Per token, with input and output priced separately: $1.575 per 1M input tokens and $6.30 per 1M output tokens on the public default group. There is no per-request fee — you pay only for the tokens the model actually processes.
Does MiniMax-M2.5 support streaming?
Yes. Pass "stream": true in your request and tokens arrive incrementally over server-sent events, exactly as with the official OpenAI SDK. Streaming works on both the OpenAI-compatible and Anthropic-compatible endpoints.
What is the context window of MiniMax-M2.5?
204,800 tokens, per MiniMax's official model documentation. Prompt and completion share this window, so leave headroom for the answer when you pack in large inputs.
Which API formats can I use to call it?
Both the OpenAI-compatible endpoint (/v1/chat/completions) and the Anthropic-compatible endpoint (/v1/messages). Point your client's base_url at https://api.camel-hub.com/v1, keep your existing SDK, and set the model name to MiniMax-M2.5.
How do I get started with MiniMax-M2.5?
Register at the CaMeL Hub console (https://api.camel-hub.com/console), create an API key, then set base_url to https://api.camel-hub.com/v1 in any OpenAI-compatible SDK. No other code changes are needed — the same key works for every model on the platform.