Skip to main content
POST
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.
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

Authorization
string
header
required

All APIs require Bearer Token authentication

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Note: EvoLink uses Bearer Token authentication uniformly for /v1/messages.

Body

application/json
model
enum<string>
required

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"

max_tokens
integer
required

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.

Required range: x >= 1
Example:

4096

messages
object[]
required

The list of conversation messages, in chronological order. At least one message is required.

Minimum array length: 1

Response

Message object

Anthropic-style message response

id
string

Unique message ID

type
enum<string>

Response object type

Available options:
message
role
enum<string>
Available options:
assistant
model
string

Model actually used

Example:

"MiniMax-M4"

content
object[]

Response blocks: thinking for reasoning (may be absent for simple questions and is omitted for MiniMax-M2.5), text for the answer, tool_use for a tool call.

stop_reason
enum<string>

Stop reason

  • end_turn: Natural completion
  • max_tokens: Reached max_tokens limit
  • tool_use: Model triggered a tool call
Available options:
end_turn,
max_tokens,
tool_use
usage
object

Token usage statistics (Anthropic specification)