curl --request POST \
--url https://api.minimaxi.com/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"model": "MiniMax-M3",
"input": "你好!"
}
'{
"id": "abc123",
"object": "response",
"created_at": 1764000000,
"model": "MiniMax-M3",
"status": "completed",
"output": [
{
"id": "abc123_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "你好!我是 MiniMax,请问有什么可以帮你的?",
"annotations": []
}
]
}
],
"output_text": "你好!我是 MiniMax,请问有什么可以帮你的?",
"usage": {
"input_tokens": 8,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 18,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 26
},
"parallel_tool_calls": true,
"store": false,
"truncation": "disabled"
}对话生成
OpenAI Responses API 兼容的主接口调用MiniMax 模型,生成模型回复,支持流式与非流式。
curl --request POST \
--url https://api.minimaxi.com/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"model": "MiniMax-M3",
"input": "你好!"
}
'{
"id": "abc123",
"object": "response",
"created_at": 1764000000,
"model": "MiniMax-M3",
"status": "completed",
"output": [
{
"id": "abc123_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "你好!我是 MiniMax,请问有什么可以帮你的?",
"annotations": []
}
]
}
],
"output_text": "你好!我是 MiniMax,请问有什么可以帮你的?",
"usage": {
"input_tokens": 8,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 18,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 26
},
"parallel_tool_calls": true,
"store": false,
"truncation": "disabled"
}Documentation Index
Fetch the complete documentation index at: https://platform.minimaxi.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
授权
请求头
请求体的媒介类型,请设置为 application/json,确保请求数据的格式为 JSON
application/json 请求体
调用的模型名称,如 MiniMax-M3
"MiniMax-M3"
对话内容,支持简单文本或完整对话历史数组
系统指令
最大输出 token 数
采样温度,取值范围 (0, 1]
0 <= x <= 1核采样,取值范围 (0, 1]
0 <= x <= 1设置为 true 启用 SSE 流式响应
工具列表
Show child attributes
Show child attributes
工具选择策略:none 表示不调用任何工具;auto 表示由模型自动判断是否调用工具
none, auto 请求元数据,key-value 均为字符串
Show child attributes
Show child attributes
Prompt 缓存路由标识
输出格式控制
Show child attributes
Show child attributes
思考强度控制。不传则采用 adaptive 模式(由模型自动判断)
Show child attributes
Show child attributes
响应
成功响应
响应 ID
"abc123"
对象类型,固定为 response
response 响应创建时间(Unix 秒)
实际处理请求的模型名称
响应状态
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
是否支持并行工具调用
响应是否持久化
上下文截断策略
disabled 此页面对您有帮助吗?