MiniMax-M2.5 - Complete API Reference
- Use OpenAI SDK format to call MiniMax-M2.5 model
- Synchronous processing mode, real-time response
- Text conversation: Single or multi-turn contextual dialogue
- System prompts: Customize AI role and behavior
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.Authorizations
##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Body
Chat model name
MiniMax-M2.5 "MiniMax-M2.5"
List of conversation messages, supports multi-turn dialogue
1Maximum number of tokens for generated content, upper limit is 2048
Note:
- Content exceeding the limit will be truncated
- If generation is interrupted due to
length, try increasing this value
1 <= x <= 20482048
Whether to return the response in streaming mode
true: Stream response, return content in real-time chunksfalse: Wait for complete response before returning
false
Sampling temperature, controls output randomness
Note:
- Lower values (e.g. 0.1): More deterministic, focused output
- Higher values (e.g. 0.9): More random, creative output
- Range: (0, 1], excluding 0
x <= 10.7
Nucleus Sampling parameter
Note:
- Controls sampling from tokens with cumulative probability
- e.g. 0.9 means selecting from tokens reaching 90% cumulative probability
- Range: (0, 1], excluding 0
Recommendation: Do not adjust temperature and top_p simultaneously
x <= 10.9
Whether to enable web search
true: Enable web search, the model will search the internet for latest information as neededfalse: Disable web search
true
Web search options, requires enable_search: true
Response
Chat completion successful
Unique identifier for the chat completion
"cmpl-04ea926191a14749b7f2c7a48a68abc6"
Model name actually used
"MiniMax-M2.5"
Response type
chat.completion "chat.completion"
Creation timestamp
1698999496
List of chat completion choices
Token usage statistics