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.
Only MiniMax-M4 and MiniMax-M3.1-Flash support Responses. For MiniMax-M3 and MiniMax-M2.5, use Chat Completions or Messages. MiniMax-M4 and MiniMax-M3.1-Flash always use reasoning. Adjust reasoning depth with reasoning.effort. Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288.

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

Only MiniMax-M4 and MiniMax-M3.1-Flash support Responses. For MiniMax-M3 and MiniMax-M2.5, use Chat Completions or Messages. MiniMax-M4 and MiniMax-M3.1-Flash always use reasoning. Adjust reasoning depth with reasoning.effort. Both models accept images and video.

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

"MiniMax-M4"

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 (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. If status="incomplete" and incomplete_details.reason="max_output_tokens", raise the output limit.

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

131072

reasoning
object

MiniMax-M4 and MiniMax-M3.1-Flash always use reasoning. In Responses, reasoning is returned as reasoning output items. Reasoning tokens count towards the output limit and are billed at the output rate.

temperature
enum<number>
default:1

Temperature is fixed at 1. Other values have no effect.

Available options:
1
Example:

1

top_p
number
default:0.95

Fixed at 0.95. If supplied, use a value in (0, 1].

Required range: 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.

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:

"resp_example"

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-M4"

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.