Quick Start
1. Install Anthropic SDK
2. Configure Environment Variables
3. Call API
Supported Models
When using the Anthropic SDK, currently only theMiniMax-M2 model is supported:
| Model Name | Description |
|---|---|
| MiniMax-M2 | MiniMax-M2 launching on October 27th, stay tuned |
The Anthropic API compatibility interface currently only supports the
MiniMax-M2 model. For other models, please use the standard MiniMax API
interface.Compatibility
Supported Parameters
When using the Anthropic SDK, we support the following input parameters:| Parameter | Support Status | Description |
|---|---|---|
model | Fully supported | Only supports MiniMax-M2 model |
messages | Partial support | Supports text and tool calls, no image/document input |
max_tokens | Fully supported | Maximum number of tokens to generate |
stream | Fully supported | Streaming response |
system | Fully supported | System prompt |
temperature | Fully supported | Range (0.0, 1.0], controls output randomness, recommended value: 1 |
tool_choice | Fully supported | Tool selection strategy |
tools | Fully supported | Tool definitions |
top_p | Fully supported | Nucleus sampling parameter |
metadata | Fully Supported | Metadata |
thinking | Fully Supported | Reasoning Content |
top_k | Ignored | This parameter will be ignored |
stop_sequences | Ignored | This parameter will be ignored |
service_tier | Ignored | This parameter will be ignored |
mcp_servers | Ignored | This parameter will be ignored |
context_management | Ignored | This parameter will be ignored |
container | Ignored | This parameter will be ignored |
Messages Field Support
| Field Type | Support Status | Description |
|---|---|---|
type="text" | Fully supported | Text messages |
type="tool_use" | Fully supported | Tool calls |
type="tool_result" | Fully supported | Tool call results |
type="thinking" | Fully supported | Reasoning Content |
type="image" | Not supported | Image input not supported yet |
type="document" | Not supported | Document input not supported yet |
Examples
Basic Conversation
Streaming Response
Tool Calling (Function Calling)
For more details, see MiniMax-M2 Function Calling GuideImportant Notes
-
The Anthropic API compatibility interface currently only supports the
MiniMax-M2model -
Set
ANTHROPIC_BASE_URLtohttps://api.minimax.io/anthropicwhen using -
Set
ANTHROPIC_API_KEYto your MiniMax API Key -
The
temperatureparameter range is (0.0, 1.0], values outside this range will return an error -
Some Anthropic parameters (such as
thinking,top_k,stop_sequences,service_tier,mcp_servers,context_management,container) will be ignored - Image and document type inputs are not currently supported
Related Links
Recommended Reading
Text Generation
Supports text generation via compatible Anthropic API and OpenAI API.
Compatible OpenAI API
Use OpenAI SDK with MiniMax models
M2 for AI Coding Tools
MiniMax-M2 excels at code understanding, dialogue, and reasoning.
MiniMax-M2 Function Calling Guide
AI models can call external functions to extend their capabilities.






