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:

Body

application/json
model
enum<string>
required

Model ID.

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

"MiniMax-M3.1-Flash"

input
required

Model input.

  • String: treated as a single user message
  • Array: input items of type message, function_call, function_call_output, or reasoning

Multimodal input: combine input_text, input_image, and input_video blocks in message content.

Conversation history: requests are stateless. Include the complete history in the array for each turn.

Example:

"Explain recursion in one sentence."

instructions
string

System-level instructions, equivalent to a system message inserted at the very front; used to set the role, tone and output constraints.

Example:

"You are a technical documentation assistant. Keep your answers concise."

stream
boolean
default:false

Whether to stream the response.

  • false (default): return the complete response at once
  • true: send semantic SSE events ending with response.completed, without a [DONE] marker
Example:

false

max_output_tokens
integer

Maximum output 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 status: "incomplete" without a message output item
Required range: 1 <= x <= 524288
Example:

131072

reasoning
object

Reasoning configuration. MiniMax-M3.1-Flash always uses reasoning, returned as reasoning output items. Reasoning tokens count toward the output budget and are billed at the output rate.

temperature
enum<number>
default:1

Sampling temperature. Fixed at 1.

Available options:
1
Example:

1

top_p
number
default:0.95

Nucleus sampling threshold. Defaults to 0.95.

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

0.95

tools
Tool definition · object[]

Tools available to the model. Only function tools are supported. Execute the function on the client and return its result as a function_call_output input item.

tool_choice
enum<string>
default:auto

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

Available options:
auto
Example:

"auto"

text
object

Text output format configuration. format.type only supports text.

metadata
object

Request metadata. Keys and values must be strings.

Response

Generated successfully

Responses API response object. In addition to the fields below, the response includes the request configuration, such as tools, tool_choice, temperature, top_p, text, reasoning, and max_output_tokens.

id
string

Unique identifier for this response

Example:

"072514d63605b7a0c83f1672230c398c"

object
string

Object type, always response

Example:

"response"

created_at
integer

Creation time as a Unix timestamp (seconds)

Example:

1792401878

status
enum<string>

Response status.

  • completed: generation completed
  • incomplete: generation was truncated; see incomplete_details
  • failed: generation failed; see error
Available options:
completed,
incomplete,
failed
Example:

"completed"

model
string

ID of the model that actually generated this response

Example:

"MiniMax-M3.1-Flash"

output
object[]

Output items in generation order:

  • reasoning: reasoning content, with an ID such as <id>_rs, content (reasoning_text blocks), summary (an empty array), and encrypted_content
  • message: final answer, with an ID such as <id>_msg and content (output_text blocks)
  • function_call: a function call, with an ID such as <id>_fc_<index>, call_id, name, and arguments. Execute it on the client and return a function_call_output item
output_text
string | null

Convenience field containing all output_text blocks concatenated. null when there is no text output.

error
object | null

Failure reason; null on success

incomplete_details
object | null

Truncation details, or null if generation was not truncated. reason is max_output_tokens (output limit reached) or content_filter (content safety).

usage
object

Token usage statistics, including caching and reasoning details.