curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_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": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_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,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}MiniMax-M3.1-Flash - Responses 接口
- 使用 OpenAI Responses 协议调用 MiniMax-M3.1-Flash 模型
- 输入形态:
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-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_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": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_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,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}https://direct.evolink.ai,对文本模型支持更好,支持长连接;https://api.evolink.ai 是多模态主力地址,对文本模型作为备用地址使用。授权
所有接口均需要使用 Bearer Token 进行认证
获取 API Key:
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
模型 ID
MiniMax-M3.1-Flash "MiniMax-M3.1-Flash"
模型输入
- 字符串形态:整段文本按一条
user消息处理 - 数组形态:输入项列表,支持
message、function_call、function_call_output、reasoning
多模态:在 message 项的 content 数组里混合 input_text、input_image、input_video 块。
多轮对话:接口无状态,续接对话必须把完整历史放进数组。
"Explain recursion in one sentence."
系统级指令,等价于插入在最前面的一条 system 消息,用于设定角色、语气与输出约束。
"You are a technical documentation assistant. Keep your answers concise."
是否流式返回
false(默认):一次性返回完整响应对象true:以语义化 SSE 事件推送,终止事件为response.completed,不会发送[DONE]
false
本次生成的最大输出 token 数,包含思考和回答
- 推荐 131,072(128K),最大 524,288(512K)
- 取值过小时可能在思考阶段就达到上限,返回
status: "incomplete"且没有message输出项
1 <= x <= 524288131072
思考配置。MiniMax-M3.1-Flash 始终进行思考,思考内容以 reasoning 输出项返回,其 token 计入输出并按输出价计费。
Show child attributes
Show child attributes
采样温度,固定为 1
1 1
核采样阈值,默认 0.95。
0 <= x <= 10.95
可供模型调用的工具列表,目前只支持 function 类型。函数由客户端执行,并把结果以 function_call_output 输入项回传。
Show child attributes
Show child attributes
工具选择策略,仅支持 auto(由模型决定是否调用工具)
auto "auto"
文本输出格式配置,format.type 仅支持 text
Show child attributes
Show child attributes
请求元数据,键和值都是字符串
Show child attributes
Show child attributes
响应
生成成功
Responses 接口的响应对象。除下列字段外,响应还会回显本次请求的配置(tools、tool_choice、temperature、top_p、text、reasoning、max_output_tokens 等)。
本次响应的唯一标识
"072514d63605b7a0c83f1672230c398c"
对象类型,固定为 response
"response"
创建时间,Unix 时间戳(秒)
1792401878
响应状态
completed:正常完成incomplete:被截断,原因见incomplete_detailsfailed:生成失败,原因见error
completed, incomplete, failed "completed"
实际生成本次响应的模型 ID
"MiniMax-M3.1-Flash"
输出项列表,按生成顺序排列:
reasoning:思考过程,id 形如<id>_rs,含content(reasoning_text块列表)、summary(空数组)、encrypted_contentmessage:最终回答,id 形如<id>_msg,含content(output_text块列表)function_call:模型发起的函数调用,id 形如<id>_fc_<序号>,含call_id、name、arguments,需客户端执行后以function_call_output回传
便捷字段:所有 output_text 文本拼接后的结果;没有文本输出时为 null
失败原因,成功时为 null
截断原因,未截断时为 null。reason 为 max_output_tokens(输出达到上限)或 content_filter(内容安全)
Token 使用统计信息(含缓存与思考分项)
Show child attributes
Show child attributes