Use the OpenAI API compatible format to call MiniMax models, supporting role-playing, multi-turn conversations and other dialogue scenarios. Supports rich role settings (system, user_system, group, etc.) and example dialogue learning.
HTTP: Bearer Auth
Media type of the request body, should be set to application/json to ensure JSON format
application/json Model ID
MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.1 A list of messages containing the conversation history. For more details on message parameters, refer to Text Chat Guide
Whether to use streaming output, defaults to false. When set to true, the response will be returned in chunks
Specifies the upper limit for generated content length (in tokens), maximum is 2048. Content exceeding the limit will be truncated. If generation stops due to length, try increasing this value
x >= 1Temperature coefficient, affects output randomness, value range (0, 1], default value for MiniMax-M2.7 model is 1.0. Higher values produce more random output; lower values produce more deterministic output
0 < x <= 1Sampling strategy, affects output randomness, value range (0, 1], default value for MiniMax-M2.7 model is 0.95
0 < x <= 1Unique ID of this response
List of response choices
Unix timestamp (seconds) when the response was created
Model ID used for this request
Object type. chat.completion for non-streaming, chat.completion.chunk for streaming
chat.completion, chat.completion.chunk Token usage statistics for this request
Whether the input content triggered sensitive word detection. If the input content is severely inappropriate, the API will return a content violation error message with empty reply content
Type of sensitive word triggered by input, returned when input_sensitive is true. Values: 1 Severe violation; 2 Pornography; 3 Advertising; 4 Prohibited; 5 Abuse; 6 Violence/Terrorism; 7 Other
Whether the output content triggered sensitive word detection. If the output content is severely inappropriate, the API will return a content violation error message with empty reply content
Type of sensitive word triggered by output
Error status code and details