Key Capabilities
- OpenAI-compatible — Drop-in replacement for the OpenAI SDK, no other code changes needed
- 204K context — supports large document processing and multi-turn conversations
- Reasoning — supports interleaved thinking for complex reasoning tasks
- Tool calling — supports function/tool calls for agentic workflows
- Text only — focused on text and tool calls (no image/video input)
Quick Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: MiniMax-M2.7 |
messages | array | Yes | Array of objects { role, content }. Text and tool calls only |
max_tokens | integer | No | Maximum number of tokens to generate |
temperature | float | No | 0–2, controls randomness, default 1 |
stream | boolean | No | Enable SSE streaming, default false |
top_p | float | No | Nucleus sampling threshold, default 0.9 |
stop | string / array | No | Sequences that trigger stop generation |
tools | array | No | Tool/function definitions for agentic workflows |
tool_choice | string / object | No | Tool selection strategy |
API Reference
View the interactive API Playground for MiniMax-M2.7.

