{
"model": "MiniMax-M3",
"input": [
{
"type": "message",
"role": "user",
"content": "What is the weather in Beijing?"
},
{
"type": "function_call",
"call_id": "call_abc123",
"name": "get_weather",
"arguments": "{\"city\":\"Beijing\"}"
},
{
"type": "function_call_output",
"call_id": "call_abc123",
"output": "Sunny, 22°C"
}
],
"tools": [
{
"type": "function",
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
]
}
}
]
}curl --location '/v1/responses' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-M3",
"input": [
{
"type": "message",
"role": "user",
"content": "What is the weather in Beijing?"
},
{
"type": "function_call",
"call_id": "call_abc123",
"name": "get_weather",
"arguments": "{\"city\":\"Beijing\"}"
},
{
"type": "function_call_output",
"call_id": "call_abc123",
"output": "Sunny, 22°C"
}
],
"tools": [
{
"type": "function",
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
]
}
}
]
}'{
"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"
}