API · Models
Text
MiniMax M2
MiniMax-M2 redefines efficiency for agents. It is a compact, fast, and cost-effective MoE model (230 billion total parameters with 10 billion active parameters) built for elite performance in coding and agentic tasks, all while maintaining powerful general intelligence.
ReasoningTools
Context 205K·Max out 205K
Quickstart
import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
const blackbox = createOpenAICompatible({
name: 'blackbox',
apiKey: process.env.BLACKBOX_API_KEY!,
baseURL: 'https://api.blackbox.ai/v1',
});
const result = streamText({
model: blackbox('blackboxai/minimax/minimax-m2'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 0.3
- Output $/M
- 1.20
- Context window
- 205K
- Max output
- 205K
- Supported parameters
- —
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| MiniMax M2.7 | Text | 200K | 0.3 |
| MiniMax M2.5 | Text | 128K | 0.3 |
| MiniMax M2.1 | Text | 204.8K | 0.3 |
| MiniMax M2.1 Lightning | Text | 204.8K | 0.3 |
| MiniMax M2.5 High Speed | Text | 204.8K | 0.6 |