MiniMax-M2 · minimax
Input, $/1M $0.30
Output, $/1M $1.20
Context 204 800
Max output 131 072
Accepts text
Last checked 04.11.2026 12:26:37 UTC
Source provider's page
Price alerts
API
Anthropic Messages API. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://api.minimax.io/anthropic/v1/messages \
-H "x-api-key: YOUR_API_KEY" -H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "MiniMax-M2", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello!"}]}'Python
import requests
r = requests.post(
"https://api.minimax.io/anthropic/v1/messages",
headers={"x-api-key": "YOUR_API_KEY", "anthropic-version": "2023-06-01"},
json={
"model": "MiniMax-M2",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
},
)
print(r.json())JavaScript
const r = await fetch("https://api.minimax.io/anthropic/v1/messages", {
method: "POST",
headers: {"x-api-key": "YOUR_API_KEY", "anthropic-version": "2023-06-01", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "MiniMax-M2",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}),
});
console.log(await r.json());Request (JSON)
{
"model": "MiniMax-M2",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}Response (JSON)
{
"id": "msg_...",
"type": "message",
"role": "assistant",
"model": "MiniMax-M2",
"content": [
{
"type": "text",
"text": "Hi! How can I help?"
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 9,
"output_tokens": 12
}
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Aminimax%7CMiniMax-M2, prices checked 2026-11-04; seller's page: https://minimax.io
Technical details
ID: offer:minimax|MiniMax-M2