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. Use reasoning_effort to choose low, medium, high, xhigh or max (default). Disabling reasoning or selecting none returns HTTP 400. MiniMax-M3 reasons by default and accepts thinking.type: "disabled". MiniMax-M2.5 always reasons. MiniMax-M3 and MiniMax-M2.5 do not support effort levels.
Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288, MiniMax-M3 524,288, MiniMax-M2.5 32,768. When switching to MiniMax-M4, keep max_completion_tokens at or below 262,144.
MiniMax-M4, MiniMax-M3.1-Flash and MiniMax-M3 accept images and video. MiniMax-M2.5 accepts text only. Pass images and video as image_url and video_url blocks in messages[].content[].

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:

Body

application/json
model
enum<string>
required

MiniMax-M4 and MiniMax-M3.1-Flash always use reasoning. Adjust reasoning depth with reasoning_effort. MiniMax-M3 reasons by default. Set thinking.type to disabled for a direct answer. MiniMax-M3 and MiniMax-M2.5 cannot change reasoning depth. MiniMax-M2.5 always reasons at a fixed depth. MiniMax-M4, MiniMax-M3.1-Flash and MiniMax-M3 accept images and video. MiniMax-M2.5 accepts text only. 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"

messages
(System Message · object | User Message · object | Assistant Message · object | Tool Message · object)[]
required

List of conversation messages, supports multi-turn dialogue

Messages with different roles have different field structures; select the corresponding role to view

Minimum array length: 1
reasoning_effort
enum<string>
  • MiniMax-M4, MiniMax-M3.1-Flash — Reasoning effort: low, medium, high, xhigh or max (default). none returns HTTP 400. Higher effort typically uses more reasoning tokens and increases latency.
  • MiniMax-M3 and MiniMax-M2.5 cannot change reasoning depth. Omit this parameter for these models.
Available options:
low,
medium,
high,
xhigh,
max
Example:

"high"

thinking
object
  • For MiniMax-M4 and MiniMax-M3.1-Flash, omit thinking or set its type to adaptive. disabled returns HTTP 400.
  • MiniMax-M3 reasons by default. Set thinking.type to disabled for a direct answer.
  • MiniMax-M2.5 always reasons at a fixed depth. Omit this field.
reasoning_split
boolean

MiniMax-M4 and MiniMax-M3.1-Flash return reasoning in reasoning_content. Omit reasoning_split or set it to true. Setting it to false returns HTTP 400. MiniMax-M2.5 always returns reasoning in reasoning_content. MiniMax-M3 starts content with <think>...</think> by default. Set reasoning_split: true to receive reasoning in reasoning_content separately.

Example:

true

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

max_completion_tokens
integer

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 (finish_reason=length).

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

131072

stream
boolean
default:false

Whether to return the response in streaming mode

  • true: Streaming response, returns content in real-time chunks via SSE (Server-Sent Events)
  • false: Wait for complete response before returning (default)
Example:

false

stream_options
object

Streaming response options

Only effective when stream=true

tools
object[]

Tool definition list for Function Calling

Each tool requires a name, description, and parameter schema

tool_choice
enum<string>
default:auto

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

Available options:
auto
max_tokens
integer
deprecated

Legacy generation length limit parameter

Note: Deprecated, please use max_completion_tokens instead

Required range: x >= 1

Response

Conversation generated successfully

id
string

Unique identifier for the chat completion

Example:

"chatcmpl-example"

model
string

Model name actually used

Example:

"MiniMax-M4"

object
enum<string>

Response type

Available options:
chat.completion
Example:

"chat.completion"

created
integer

Creation timestamp (Unix seconds)

Example:

1777026807

choices
object[]

List of chat completion choices

usage
object

Token usage statistics