OpenAI Chat Completions — the default surface.
Create a chat completion
OpenAI-compatible Chat Completions endpoint. This is the default surface spoken by the OpenAI SDK, Cursor, Cline, Aider, Continue, Hermes and most OpenAI-compatible clients.
Create a chat completion › Request Body
modelA model ID from the current catalog — real provider model names, all MiniMax. The core tiers are minimax-m3 (flagship), minimax-m2.7 (balanced daily driver) and minimax-m2.5 (fast); the -highspeed variants are latency-tuned versions of their standard siblings at roughly 2x the price; minimax-m2.1 and minimax-m2 are older M-series generations; minimax-m2-her is role-play/dialogue chat tuning; minimax-text-01 is the long-context text model. There are no invented aliases; any other ID returns an error. The catalog can change with notice.
The conversation so far — an array of role/content messages, oldest first.
max_tokensMaximum number of tokens to generate in the completion.
temperatureSampling temperature. Lower is more deterministic, higher is more creative. Alter this or top_p, not both.
top_pNucleus sampling — only tokens in the top top_p probability mass are considered. Alter this or temperature, not both.
nNumber of completion choices to generate per request.
streamSet true for a Server-Sent Events stream of deltas.
Up to 4 sequences where generation stops (string or array).
frequency_penaltyPenalize tokens by how often they already appeared — positive values reduce verbatim repetition.
presence_penaltyPenalize tokens that appeared at all — positive values push toward new topics.
Function tools the model may call. Supported — the gateway passes tool definitions and tool-call turns through to the upstream model.
Controls tool use. auto (the default) and none are honoured by the M-series. required and the named-function object are accepted by the API but ignored by the model, which decides for itself. Tested 2026-07-26. Design for a model that chooses, and always handle a turn with no tool call.
Create a chat completion › Responses
A chat completion.
idobjectcreatedUnix timestamp (seconds).
modelThe model that actually served the request. During a provider incident this may be a smaller model of the same family as the one you requested.
One entry per requested choice (n).
Token usage in Chat Completions shape.