MiniMax-M3.1-Flash · minimax-cn
Input, $/1M $0.15
Output, $/1M $0.60
Cache read $0.0149
Cache write —
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.minimaxi.com/anthropic/v1/messages \
-H "x-api-key: YOUR_API_KEY" -H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "MiniMax-M3.1-Flash", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello!"}]}'Python
import requests
r = requests.post(
"https://api.minimaxi.com/anthropic/v1/messages",
headers={"x-api-key": "YOUR_API_KEY", "anthropic-version": "2023-06-01"},
json={
"model": "MiniMax-M3.1-Flash",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
},
)
print(r.json())JavaScript
const r = await fetch("https://api.minimaxi.com/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-M3.1-Flash",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}),
});
console.log(await r.json());Request (JSON)
{
"model": "MiniMax-M3.1-Flash",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}Response (JSON)
{
"id": "msg_...",
"type": "message",
"role": "assistant",
"model": "MiniMax-M3.1-Flash",
"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-cn%7CMiniMax-M3.1-Flash, prices checked 2026-11-04; seller's page: https://minimaxi.com
Technical details
ID: offer:minimax-cn|MiniMax-M3.1-Flash