curl --request POST \
--url https://api.minimax.cn/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"reasoning": {
"effort": "max"
},
"input": "9.11 和 9.9 哪个更大?"
}
'{
"id": "07229fa4ff19f5b74ad4581cad3af46c",
"object": "response",
"created_at": 1792240804,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "07229fa4ff19f5b74ad4581cad3af46c_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need answer Chinese. Need determine 9.11 vs 9.9. Decimal comparison: 9.9 = 9.90 > 9.11. User asks which larger. Need concise maybe explain. Ensure not date ambiguity? They ask 9.11 and 9.9 likely decimals. Answer 9.9 larger. Chinese."
}
]
},
{
"id": "07229fa4ff19f5b74ad4581cad3af46c_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "9.9 更大。\n\n因为把小数位补齐:9.9 = 9.90,而 9.90 > 9.11。",
"annotations": []
}
]
}
],
"output_text": "9.9 更大。\n\n因为把小数位补齐:9.9 = 9.90,而 9.90 > 9.11。",
"usage": {
"input_tokens": 216,
"output_tokens": 107,
"total_tokens": 323,
"input_tokens_details": {
"cached_tokens": 189
},
"output_tokens_details": {
"reasoning_tokens": 75
}
},
"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": "max",
"summary": null
},
"max_output_tokens": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}对话生成
OpenAI Responses API 兼容的主接口调用MiniMax 模型,生成模型回复,支持流式与非流式。
curl --request POST \
--url https://api.minimax.cn/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"reasoning": {
"effort": "max"
},
"input": "9.11 和 9.9 哪个更大?"
}
'{
"id": "07229fa4ff19f5b74ad4581cad3af46c",
"object": "response",
"created_at": 1792240804,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "07229fa4ff19f5b74ad4581cad3af46c_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need answer Chinese. Need determine 9.11 vs 9.9. Decimal comparison: 9.9 = 9.90 > 9.11. User asks which larger. Need concise maybe explain. Ensure not date ambiguity? They ask 9.11 and 9.9 likely decimals. Answer 9.9 larger. Chinese."
}
]
},
{
"id": "07229fa4ff19f5b74ad4581cad3af46c_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "9.9 更大。\n\n因为把小数位补齐:9.9 = 9.90,而 9.90 > 9.11。",
"annotations": []
}
]
}
],
"output_text": "9.9 更大。\n\n因为把小数位补齐:9.9 = 9.90,而 9.90 > 9.11。",
"usage": {
"input_tokens": 216,
"output_tokens": 107,
"total_tokens": 323,
"input_tokens_details": {
"cached_tokens": 189
},
"output_tokens_details": {
"reasoning_tokens": 75
}
},
"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": "max",
"summary": null
},
"max_output_tokens": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}授权
请求头
请求体的媒介类型,请设置为 application/json,确保请求数据的格式为 JSON
application/json 请求体
调用的模型名称,如 MiniMax-M3.1-Flash
"MiniMax-M3.1-Flash"
对话内容,支持简单文本或完整对话历史数组
系统指令
最大输出 token 数。推理 token 也计入此上限,设置过小会导致 status 为 incomplete 且 output 中没有 message 项。
暂不支持指定,传入的值不会生效。MiniMax-M3.1-Flash 和 MiniMax-M3 固定使用 1。
暂不支持指定,传入的值不会生效。MiniMax-M3.1-Flash 和 MiniMax-M3 固定使用 0.95。若传入,取值需在 (0, 1] 范围内。
0 < x <= 1设置为 true 启用 SSE 流式响应
工具列表
Show child attributes
Show child attributes
工具选择策略:auto 表示由模型自动判断是否调用工具
auto 请求元数据,key-value 均为字符串
Show child attributes
Show child attributes
Prompt 缓存路由标识
输出格式控制
Show child attributes
Show child attributes
推理控制。默认值随模型不同,因此未在 schema 层声明统一默认值。
MiniMax-M3.1-Flash:推理始终开启,省略reasoning时也会推理。effort可取low、medium、high、xhigh或max,并且确实会调节推理深度;省略时默认使用max档位。传入effort: "none"会返回 HTTP 400。MiniMax-M3:默认关闭推理;将effort设为非none值可开启推理,但不会调节推理深度。
Show child attributes
Show child attributes
响应
成功响应
响应 ID
"abc123"
对象类型,固定为 response
response 响应创建时间(Unix 秒)
实际处理请求的模型名称
"MiniMax-M3.1-Flash"
响应状态
completed, incomplete, failed 模型输出列表
- Message
- Reasoning
- Function Call
Show child attributes
Show child attributes
便捷字段:所有文本输出拼接后的结果
Show child attributes
Show child attributes
错误信息,仅在 status=failed 时返回
Show child attributes
Show child attributes
未完成原因,仅在 status=incomplete 时返回
Show child attributes
Show child attributes
请求中暂不支持该参数,传入后将被忽略,响应中固定返回 true。
请求中暂不支持该参数,传入后将被忽略,响应中固定返回 false。
请求中暂不支持该参数,传入后将被忽略,响应中固定返回 disabled。
disabled 请求中暂不支持该参数,传入后将被忽略,响应中固定返回 null。
请求中暂不支持该参数,传入后将被忽略,响应中固定返回 null。
本次请求实际生效的服务层级,取值为 standard 或 priority。MiniMax-M3.1-Flash 不支持该字段,响应中返回 null。
请求中暂不支持该参数,传入后将被忽略,响应中固定返回 null。
此页面对您有帮助吗?