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
对话生成
OpenAI Responses API 兼容的主接口调用MiniMax 模型,生成模型回复,支持流式与非流式。
POST
/
v1
/
responses
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"
}
授权
HTTP: Bearer Auth
- Security Scheme Type: http
- HTTP Authorization Scheme: Bearer API_key,用于验证账户信息,可在 账户管理>接口密钥 中查看
请求头
请求体
application/json
请求准入服务层级。支持的取值为 standard 和 priority。省略时默认使用 standard。priority 的价格为 standard 的 1.5 倍,并会确保请求获得优先准入,使其排在其他请求之前处理,从而带来更快响应并减少失败。MiniMax-M3.1-Flash 不支持该字段。
可用选项:
standard, priority 输出格式控制
Show child attributes
Show child attributes
响应
成功响应
此页面对您有帮助吗?