Chat Completions API
Use the OpenAI API compatible Chat Completions format to call MiniMax models.
MiniMax-M3Core capabilities: Coding/Agentic SOTA, 1M long context, multimodal.MiniMax-M3:- Image and video understanding — see the example code on the right
- Control thinking via the
thinkingparameter
Authorizations
HTTP: Bearer Auth
- Security Scheme Type: http
- HTTP Authorization Scheme: Bearer API_key, used for account verification, can be viewed in Account Management > API Keys
Headers
Media type of the request body, should be set to application/json to ensure JSON format
application/json Body
Model ID
MiniMax-M3, MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.5-highspeed, MiniMax-M2.1, MiniMax-M2.1-highspeed, MiniMax-M2 A list of messages containing the conversation history. Supports text, image, video, and tool call content.
Show child attributes
Show child attributes
Service tier for request admission. Supported values are standard and priority. If omitted, the request uses the standard tier. The priority price is 1.5 times the standard price and ensures priority admission so the request is processed ahead of other requests, leading to faster responses and fewer failures.
standard, priority Controls MiniMax-M3 thinking. When omitted, adaptive thinking is enabled by default and responses include thinking content. For M2.x models, thinking cannot be disabled.
Show child attributes
Show child attributes
Output-format switch. When enabled, separates thinking content into the reasoning_content and reasoning_details fields. This does not enable or disable thinking.
Whether to use streaming output, defaults to false. When set to true, the response will be returned in chunks.
Streaming response options.
Show child attributes
Show child attributes
Specifies the upper limit for generated content length, in tokens. For MiniMax-M3 the recommended value is 131072 (128K) and the maximum is 524288 (512K); for other models the recommended value is 65536 (64K) and the maximum is 204800 (200K). If generation stops due to length, try increasing this value.
x >= 1Temperature coefficient, affects output randomness. Range [0, 2], default 1. Higher values produce more random output; lower values produce more deterministic output.
0 <= x <= 2Nucleus sampling parameter. Range [0, 1]. Default is 0.95 for MiniMax-M3 and 0.9 for M2.x models.
0 <= x <= 1Tool definition list. Function tools are supported.
Show child attributes
Show child attributes
Legacy generation length limit parameter. Deprecated; use max_completion_tokens instead.
x >= 1Response
Unique ID of this response
List of response choices
Show child attributes
Show child attributes
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
Show child attributes
Show child attributes
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
Show child attributes
Show child attributes