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.
POST /v1/responses — Supported models: MiniMax-M4, MiniMax-M3.1-Flash. Required fields: model, input. A minimal example also sets an output limit.
Only MiniMax-M4 and MiniMax-M3.1-Flash support Responses. For MiniMax-M3 and MiniMax-M2.5, use Chat Completions or Messages.Use input for input, max_output_tokens for the output budget, and reasoning.effort for reasoning depth. MiniMax-M4 and MiniMax-M3.1-Flash always use reasoning. Reasoning effort: low, medium, high, xhigh or max (default). none returns HTTP 400. Higher effort typically uses more reasoning tokens and increases latency.

Reading the answer text

output may contain reasoning, messages and tool calls. Read the output_text blocks in items with type="message". The first item may contain reasoning. Assuming the response JSON has been parsed into response, extract the text as follows:
Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288. 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.
See the API reference for tool calls, image and video input, streaming and multi-turn conversations.

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.

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

"MiniMax-M4"

input
string
required

Required fields: model, input. Plain text is treated as one user message. For multiple turns, images, videos or tool calls, pass an array of input items. See the API reference for tool calls, image and video input, streaming and multi-turn conversations.

Example:

"Explain recursion in one sentence."

max_output_tokens
integer

Start with an output budget of at least 1,024 tokens. If reasoning uses the entire budget, the response may contain no answer text. Maximum output (including reasoning tokens) — MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288.

Required range: x >= 1
Example:

4096

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.