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.
MiniMax-M4 and MiniMax-M3.1-Flash always reason. Set output_config.effort to low, medium, high, xhigh or max (default). Setting thinking.type to disabled or effort to none returns HTTP 400. 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.
Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288, MiniMax-M3 524,288, MiniMax-M2.5 32,768.
MiniMax-M2.5 accepts text only and generates up to 32,768 tokens. MiniMax-M2.5 does not support tools on this endpoint. Use Chat Completions for tool calls.

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 and MiniMax-M3.1-Flash always use reasoning. Adjust reasoning depth with output_config.effort. MiniMax-M3 skips reasoning by default. Set thinking to {"type": "adaptive"} to enable it and receive a thinking block. MiniMax-M3 and MiniMax-M2.5 cannot change reasoning depth. MiniMax-M2.5 reasons without returning a thinking block. Its reasoning tokens count towards output_tokens. MiniMax-M4, MiniMax-M3.1-Flash and MiniMax-M3 accept images and video. MiniMax-M2.5 accepts text only. MiniMax-M2.5 does not support tools on this endpoint. Use Chat Completions for tool calls. Reasoning tokens count towards the output limit and are billed at the output rate.

Available options:
MiniMax-M4,
MiniMax-M3.1-Flash,
MiniMax-M3,
MiniMax-M2.5
Example:

"MiniMax-M4"

max_tokens
integer
required

Maximum output (including reasoning 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 (stop_reason=max_tokens).

Required range: 1 <= x <= 524288
Example:

131072

messages
object[]
required

List of conversation messages, alternating user / assistant turns

Notes:

  • Must contain at least 1 message
  • The last message is typically role=user
Minimum array length: 1
system

System prompt used to set the assistant's role and behavior. Accepts a string or an array of text content blocks in the top-level system field.

Example:

"You are a helpful assistant."

temperature
number
default:1

MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3 — Temperature is fixed at 1. Other values have no effect. MiniMax-M2.5 defaults to 1 and supports adjustment. Lower temperatures favor consistent answers. Change only one of temperature and top_p at a time.

Example:

1

top_p
number
default:0.95

MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3 — Fixed at 0.95. If supplied, use a value in (0, 1]. MiniMax-M2.5 defaults to 0.95 and supports adjustment. Change only one of temperature and top_p at a time.

Required range: x <= 1
Example:

0.95

stream
boolean
default:false

Whether to return via SSE streaming

  • true: Server-Sent Events streaming response
  • false: Wait for complete response before returning (default)
Example:

false

thinking
object
  • For MiniMax-M4 and MiniMax-M3.1-Flash, omit thinking or set its type to adaptive. disabled returns HTTP 400.
  • MiniMax-M3 skips reasoning by default. Set thinking to {"type": "adaptive"} to enable it and receive a thinking block, or to {"type": "disabled"} to turn it off.
  • MiniMax-M2.5 reasons without returning a thinking block. Its reasoning tokens count towards output_tokens.
  • Reasoning tokens count towards the output limit and are billed at the output rate.
output_config
object

Output configuration.

tools
object[]

Define tools using the Anthropic format. Each input_schema is a JSON Schema object. MiniMax-M2.5 does not support tools on this endpoint. Use Chat Completions for tool calls.

tool_choice
object

Tool selection strategy. Only auto is supported; the model decides whether to call a tool.

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)