Key capabilities
- OpenAI-compatible — Works as a drop-in replacement with the OpenAI SDK
- 204K context — Handles large documents and multi-turn conversations
- Thinking/Reasoning — Interleaved thinking support for complex reasoning
- Tool calling — Supports function/tool calls for agentic workflows
- Text-only — Optimized for text and tool calls (no image/video input)
Quick example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be MiniMax-M2.7 |
messages | array | Yes | List of { role, content } objects. Text and tool calls only |
max_tokens | integer | No | Maximum 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 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.