minimax

MiniMax: MiniMax M2

MiniMax-M2 is a compact, high-efficiency large language model optimized for end-to-end coding and agentic workflows. With 10 billion activated parameters (230 billion total), it delivers near-frontier intelligence across general reasoning,...

Context
205k tokens
Input / 1M tokens
$0.26
Output / 1M tokens
$1
Benchmark

Pricing

Input tokens$0.26 per 1M tokens
Output tokens$1 per 1M tokens
Cache read$0.03 per 1M tokens

Technical details

Model IDminimax/minimax-m2
Context window205k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens196,608

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'minimax/minimax-m2',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use MiniMax: MiniMax M2?

Get an API key and start making requests in minutes.

Get an API key