curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'{
"id": "example_c425f5",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
}
}Chat Completions API
MiniMax Chat Completions quickstart
OpenAI Chat Completions. Required fields: model, messages. All models reason by default on this endpoint. Reasoning tokens count towards the output limit and are billed at the output rate. See the API reference for tool calls, image and video input, streaming and multi-turn conversations.
POST
/
v1
/
chat
/
completions
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'{
"id": "example_c425f5",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
}
}BaseURL: The default BaseURL is
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.All models reason by default on this endpoint. Reasoning tokens count towards the output limit and are billed at the output rate.
MiniMax-M3 starts content with <think>...</think> by default. Set reasoning_split: true to receive reasoning in reasoning_content separately. See the API reference for tool calls, image and video input, streaming and multi-turn conversations.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
application/json
| 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.
Available options:
MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3, MiniMax-M2.5 Example:
"MiniMax-M4"
Response
Conversation generated successfully