curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "example_ae5b7d",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "example_ae5b7d_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "EXAMPLE_ENCRYPTED_CONTENT"
},
{
"id": "example_ae5b7d_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null
}MiniMax 全模型接口 - Responses 完整参数
- 使用 OpenAI Responses 协议调用
MiniMax-M4或MiniMax-M3.1-Flash,通过model参数选择 - 输入形态:
input可以是一段纯文本,也可以是输入项数组(消息、函数调用、函数结果) - 多模态输入:在消息的
content中混合input_text、input_image、input_video内容块 - 系统指令:通过
instructions下达,等价于首条 system 消息 - 思考模式:始终开启,
reasoning.effort调节思考深度;思考内容以reasoning输出项返回 - 流式输出:语义化 SSE 事件,以
response.completed结束,不发送[DONE] - 工具调用:支持 Function Calling
- 上下文缓存:相同前缀自动命中,命中部分体现在
usage.input_tokens_details.cached_tokens
无状态:不保存响应,不支持 previous_response_id。多轮对话时,将上一轮 output 中的所有项按顺序原样追加到 input,保留 reasoning 项中的 content、summary 和 encrypted_content 等字段。执行工具后,再追加与函数调用项 call_id 相同的 function_call_output 项。
流式事件:response.created、response.in_progress、response.output_item.added、response.content_part.added、response.reasoning_text.delta / response.reasoning_text.done、response.output_text.delta / response.output_text.done、response.content_part.done、response.output_item.done,终止事件为 response.completed。每个事件都带 sequence_number 用于排序。
curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "example_ae5b7d",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "example_ae5b7d_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "EXAMPLE_ENCRYPTED_CONTENT"
},
{
"id": "example_ae5b7d_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null
}https://direct.evolink.ai,对文本模型支持更好,支持长连接;https://api.evolink.ai 是多模态主力地址,对文本模型作为备用地址使用。MiniMax-M4 与 MiniMax-M3.1-Flash:两个模型都始终思考,用 reasoning.effort 调节深度。最大输出 MiniMax-M4 为 262,144 tokens、MiniMax-M3.1-Flash 为 524,288 tokens。MiniMax-M3、MiniMax-M2.5 请使用 Chat Completions 或 Messages 接口。授权
所有接口均需要使用 Bearer Token 进行认证
获取 API Key:
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
模型输入
- 字符串形态:整段文本按一条
user消息处理 - 数组形态:输入项列表,支持
message、function_call、function_call_output、reasoning
多模态:在 message 项的 content 数组里混合 input_text、input_image、input_video 块。
多轮对话:接口无状态,续接对话必须把完整历史放进数组。
"Explain recursion in one sentence."
文本输出格式配置,format.type 仅支持 text
Show child attributes
Show child attributes
响应
生成成功
Responses 接口的响应对象。除下列字段外,响应还会回显本次请求的配置(tools、tool_choice、temperature、top_p、text、reasoning、max_output_tokens 等)。