{
"id": "cmpl-04ea926191a14749b7f2c7a48a68abc6",
"model": "MiniMax-M2.5",
"object": "chat.completion",
"created": 1698999496,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi there! How can I help you?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 8,
"completion_tokens": 292,
"total_tokens": 300
}
}{
"error": {
"code": 400,
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": 401,
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": 402,
"message": "Insufficient quota",
"type": "insufficient_quota_error",
"fallback_suggestion": "https://evolink.ai/dashboard/billing"
}
}{
"error": {
"code": 403,
"message": "Access denied for this model",
"type": "permission_error",
"param": "model"
}
}{
"error": {
"code": 404,
"message": "Specified model not found",
"type": "not_found_error",
"param": "model",
"fallback_suggestion": "MiniMax-M2.5"
}
}{
"error": {
"code": 429,
"message": "Rate limit exceeded",
"type": "rate_limit_error",
"fallback_suggestion": "retry after 60 seconds"
}
}{
"error": {
"code": 500,
"message": "Internal server error",
"type": "internal_server_error",
"fallback_suggestion": "try again later"
}
}{
"error": {
"code": 502,
"message": "Upstream AI service unavailable",
"type": "upstream_error",
"fallback_suggestion": "try different model"
}
}{
"error": {
"code": 503,
"message": "Service temporarily unavailable",
"type": "service_unavailable_error",
"fallback_suggestion": "retry after 30 seconds"
}
}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
{
"id": "cmpl-04ea926191a14749b7f2c7a48a68abc6",
"model": "MiniMax-M2.5",
"object": "chat.completion",
"created": 1698999496,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi there! How can I help you?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 8,
"completion_tokens": 292,
"total_tokens": 300
}
}{
"error": {
"code": 400,
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": 401,
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": 402,
"message": "Insufficient quota",
"type": "insufficient_quota_error",
"fallback_suggestion": "https://evolink.ai/dashboard/billing"
}
}{
"error": {
"code": 403,
"message": "Access denied for this model",
"type": "permission_error",
"param": "model"
}
}{
"error": {
"code": 404,
"message": "Specified model not found",
"type": "not_found_error",
"param": "model",
"fallback_suggestion": "MiniMax-M2.5"
}
}{
"error": {
"code": 429,
"message": "Rate limit exceeded",
"type": "rate_limit_error",
"fallback_suggestion": "retry after 60 seconds"
}
}{
"error": {
"code": 500,
"message": "Internal server error",
"type": "internal_server_error",
"fallback_suggestion": "try again later"
}
}{
"error": {
"code": 502,
"message": "Upstream AI service unavailable",
"type": "upstream_error",
"fallback_suggestion": "try different model"
}
}{
"error": {
"code": 503,
"message": "Service temporarily unavailable",
"type": "service_unavailable_error",
"fallback_suggestion": "retry after 30 seconds"
}
}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:
Authorization: Bearer YOUR_API_KEY
Body
Chat model name
MiniMax-M2.5 "MiniMax-M2.5"
List of conversation messages, supports multi-turn dialogue
1Show child attributes
Show child attributes
Maximum 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
Show child attributes
Show child attributes
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
Show child attributes
Show child attributes
Token usage statistics
Show child attributes
Show child attributes