Authorizations
HTTP: Bearer Auth
- Security Scheme Type: http
- HTTP Authorization Scheme:
Bearer API_key, can be found in Account Management>API Keys.
Headers
The media type of the request body. Must be set to application/json to ensure the data is sent in JSON format.
application/json Body
Model ID. Options: MiniMax-M2, MiniMax-M1, MiniMax-Text-01. MiniMax-M2 and MiniMax-M1 are reasoning models, recommended with streaming output for best performance.
MiniMax-M2, MiniMax-M1, MiniMax-Text-01 List of messages containing conversation history
Whether to enable streaming. Defaults to false. If true, the response will be returned in multiple chunks.
Deprecated in favor of max_completion_tokens.
Maximum number of tokens allowed in the generated output. Content beyond this limit will be truncated. If the generation is cut off due to length limits, consider increasing this value.
Default:
MiniMax-M2: 10240MiniMax-M1: 8192MiniMax-Text-01: 2048
x >= 1Maximum number of tokens allowed in the generated output. Content beyond this limit will be truncated. If the generation is cut off due to length limits, consider increasing this value.
Default:
MiniMax-M2: 10240MiniMax-M1: 8192MiniMax-Text-01: 2048
x >= 1Controls randomness of the output. Range: (0, 1]. Higher values will make the output more random, while lower values will make it more focused and deterministic.
Default values:
MiniMax-M2: recommended 1.0 -MiniMax-M1: 1.0 (recommended range [0.8, 1.0])MiniMax-Text-01: 0.1 (can be raised to 0.7–1.0 for creative tasks).
0 < x <= 1Sampling strategy that affects output diversity. Range: (0, 1]
MiniMax-M2recommended 0.95
0 < x <= 1Controls how the model uses tools:
none: never call toolsauto: decide automatically (default)
none, auto List of tools available for the model to call. For more details, see MiniMax-M2 Function Calling Guide
Specifies the output format (only supported by MiniMax-Text-01).
Example: { "type": "json_schema", "json_schema": {...} }
Options for streaming mode.
Mask (replace with ***) content in the output that involves private information, including but not limited to email, domain, link, ID number, home address, etc.
Defaults false.
Response
Unique 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: non-streamingchat.completion.chunk: streaming
chat.completion, chat.completion.chunk Token usage statistics for this request.
Whether the input contained sensitive content. See input_sensitive_type for details on the type of sensitive content.
Type of sensitive content in input. Possible values:
1: severe violation
2: pornography
3: advertising
4: prohibited
5: abusive
6: terrorism/violence
7: other
Whether the output contained sensitive content.
Type of sensitive content in output.
Error status codes and details.






