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.

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

Model to call

Available options:
MiniMax-M3.1-Flash
Example:

"MiniMax-M3.1-Flash"

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
max_tokens
integer

Maximum number of generated tokens, including reasoning and the final answer.

  • Recommended: 131,072 (128K); maximum: 524,288 (512K)
  • A small budget may be exhausted during reasoning, resulting in stop_reason=max_tokens without text content
Required range: 1 <= x <= 524288
Example:

131072

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

Sampling temperature.

  • Range: [0, 2]; default: 1
  • Higher values produce more varied output; lower values produce more deterministic output
  • Adjust either temperature or top_p, rather than both
Required range: 0 <= x <= 2
Example:

1

top_p
number
default:0.95

Nucleus sampling threshold.

  • Range: [0, 1]; default: 0.95
  • Adjust either temperature or top_p, rather than both
Required range: 0 <= 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

Reasoning mode. MiniMax-M3.1-Flash always uses reasoning. Only adaptive is supported; this field may be omitted. Reasoning is returned in type="thinking" blocks and billed as output tokens.

output_config
object

Output configuration.

tools
object[]

Tool definition list

Notes:

  • Follows the Anthropic tool definition specification
  • input_schema uses a JSON Schema object
tool_choice
object

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

metadata
object

Request metadata

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-M3.1-Flash"

content
object[]

Response content blocks.

Possible types:

  • thinking: reasoning content, which may be absent for simple questions
  • text: final answer
  • tool_use: a tool call initiated by the model
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)

base_resp
object

Status code and error details