Skip to content

MiniMax M2

MiniMax-M2 is a compact, high-efficiency large language model optimized for end-to-end coding and agentic workflows.

Per 1M tokens
$0.315 · $1.26
Context
205Ktokens
Supports
  • Calls tools
  • Thinks before it answers
opencode.json
{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "minimax/minimax-m2": { "limit": { "context": 204800, "output": 176947 } } }
    }
  }
}
Needs an API keyGet one

Pricing and limits

  • Max output176,947tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.