Text Generation

Text Generation OpenAI

Changed on
post/v1/chat/completions

Request

Headers

Content-Type'application/json' required

Media type of the request body, should be set to application/json to ensure JSON format

Request body

model'MiniMax-M3.1-Flash' | 'MiniMax-M3' required

Model ID. Supports MiniMax-M3.1-Flash and MiniMax-M3.

service_tier'standard' | 'priority'

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. MiniMax-M3.1-Flash does not support this field.

reasoning_effort'low' | 'medium' | 'high' | 'xhigh' | 'max'

Tunes thinking depth. Only MiniMax-M3.1-Flash supports real thinking-depth tuning; other models ignore this field. When omitted, its default thinking depth is max. none is not accepted and returns HTTP 400 because MiniMax-M3.1-Flash always thinks.

reasoning_splitboolean

Output-format switch. When true, thinking content is separated into the reasoning_content field; when false, thinking is kept inside content wrapped in <think> tags. MiniMax-M3.1-Flash does not support setting this parameter to false. This parameter does not enable or disable thinking.

streamboolean

Whether to use streaming output, defaults to false. When set to true, the response will be returned in chunks.

max_completion_tokensinteger

Specifies the upper limit for generated content length, in tokens. For MiniMax-M3.1-Flash and MiniMax-M3 the recommended value is 131072 (128K) and the maximum is 524288 (512K). If generation stops due to length, try increasing this value.

temperaturenumber double

Not supported yet; any value passed has no effect. MiniMax-M3.1-Flash and MiniMax-M3 always use 1.

top_pnumber double

Not supported yet; any value passed has no effect. MiniMax-M3.1-Flash and MiniMax-M3 always use 0.95. If passed, the value must be within (0, 1].

max_tokensinteger

Legacy generation length limit parameter. Deprecated; use max_completion_tokens instead.

Response

idstring

Unique ID of this response

createdinteger

Unix timestamp (seconds) when the response was created

modelstring

Model ID used for this request

object'chat.completion' | 'chat.completion.chunk'

Object type. chat.completion for non-streaming, chat.completion.chunk for streaming

input_sensitiveboolean

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

input_sensitive_typeinteger

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

output_sensitiveboolean

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

output_sensitive_typeinteger

Type of sensitive word triggered by output

Changes

    • warning

      the request property's exclusiveMinimum was set to 0.00

    • breaking

      removed the enum value MiniMax-M2 of the request property

    • breaking

      removed the enum value MiniMax-M2.1 of the request property

    • breaking

      removed the enum value MiniMax-M2.1-highspeed of the request property

    • breaking

      removed the enum value MiniMax-M2.5 of the request property

    • breaking

      removed the enum value MiniMax-M2.5-highspeed of the request property

    • breaking

      removed the enum value MiniMax-M2.7 of the request property

    • breaking

      removed the enum value MiniMax-M2.7-highspeed of the request property

    • warning

      removed the optional property /// from the response with the status (media type: application/json)

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new MiniMax-M3.1-Flash enum value to the request property

    • info

      added the optional property /// to the response with the status (media type: text/event-stream)