/v1/messages, không có tiền tố /minimax/v1/).Authorization: Bearer ********************curl --location '/v1/messages' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"max_completion_tokens": 2048,
"messages": [
{
"content": "Bạn là một trợ lý AI chuyên nghiệp và thân thiện.",
"name": "Trợ lý AI",
"role": "Vui lòng cung cấp tài liệu kỹ thuật cần dịch.",
"x-i18n": {
"en-US": {
"name": "AI assistant"
}
}
},
{
"content": "Hãy giúp tôi viết một bài thơ về mùa thu.",
"name": "Trương Tam",
"role": "user",
"x-i18n": {
"en-US": {
"name": "John Doe"
}
}
}
],
"model": "MiniMax-M2.1",
"stream": true,
"stream_options": {
"include_usage": true
},
"temperature": 0.9,
"top_p": 0.95
}'{
"base_resp": {
"status_code": 0,
"status_msg": ""
},
"choices": [
{
"finish_reason": "dừng",
"index": 0,
"message": {
"audio_content": "",
"content": "Xin chào! Tôi có thể giúp gì cho bạn?",
"name": "MiniMax AI",
"reasoning_content": "...đã lược bỏ",
"role": "Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch."
}
}
],
"created": 1755153113,
"id": "04ecb5d9b1921ae0fb0e8da9017a5474",
"input_sensitive": false,
"input_sensitive_type": 0,
"model": "MiniMax-M1",
"object": "chat.completion",
"output_sensitive": false,
"output_sensitive_int": 0,
"output_sensitive_type": 0,
"usage": {
"completion_tokens": 223,
"completion_tokens_details": {
"reasoning_tokens": 214
},
"prompt_tokens": 26,
"total_characters": 0,
"total_tokens": 249
}
}