##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYChat model name
MiniMax-M2.5 "MiniMax-M2.5"
List of conversation messages, supports multi-turn dialogue
1Maximum number of tokens for generated content, upper limit is 2048
Note:
length, try increasing this value1 <= x <= 20482048
Whether to return the response in streaming mode
true: Stream response, return content in real-time chunksfalse: Wait for complete response before returningfalse
Sampling temperature, controls output randomness
Note:
x <= 10.7
Nucleus Sampling parameter
Note:
Recommendation: Do not adjust temperature and top_p simultaneously
x <= 10.9
Whether to enable web search
true: Enable web search, the model will search the internet for latest information as neededfalse: Disable web searchtrue
Web search options, requires enable_search: true
Chat completion successful
Unique identifier for the chat completion
"cmpl-04ea926191a14749b7f2c7a48a68abc6"
Model name actually used
"MiniMax-M2.5"
Response type
chat.completion "chat.completion"
Creation timestamp
1698999496
List of chat completion choices
Token usage statistics