MiniMax Messages quickstart
Anthropic Messages. Required fields: model, max_tokens, messages. max_tokens covers both reasoning and the answer. MiniMax-M4 and MiniMax-M3.1-Flash always reason and return reasoning as thinking blocks in content. MiniMax-M3 skips reasoning by default. Set thinking to {"type": "adaptive"} to enable it and receive a thinking block. MiniMax-M2.5 reasons without returning a thinking block. Its reasoning tokens count towards output_tokens. See the API reference for tool calls, image and video input, streaming and multi-turn conversations.
https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.max_tokens covers both reasoning and the answer. MiniMax-M4 and MiniMax-M3.1-Flash always reason and return reasoning as thinking blocks in content. MiniMax-M3 skips reasoning by default. Set thinking to {"type": "adaptive"} to enable it and receive a thinking block. MiniMax-M2.5 reasons without returning a thinking block. Its reasoning tokens count towards output_tokens. Start with an output budget of at least 1,024 tokens. If reasoning uses the entire budget, the response may contain no answer text.Authorizations
All APIs require Bearer Token authentication
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Note: EvoLink uses Bearer Token authentication uniformly for /v1/messages.
Body
| Model | Context (tokens) | Maximum output (tokens) |
|---|---|---|
MiniMax-M4 | 1,000,000 | 262,144 |
MiniMax-M3.1-Flash | 1,000,000 | 524,288 |
MiniMax-M3 | 1,000,000 | 524,288 |
MiniMax-M2.5 | 204,800 | 32,768 |
MiniMax-M4, MiniMax-M3.1-Flash and MiniMax-M3 accept images and video. MiniMax-M2.5 accepts text only.
MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3, MiniMax-M2.5 "MiniMax-M4"
Required by the Anthropic protocol. Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288, MiniMax-M3 524,288, MiniMax-M2.5 32,768. Start with an output budget of at least 1,024 tokens. If reasoning uses the entire budget, the response may contain no answer text.
x >= 14096
Response
Message object
Anthropic-style message response