AI Gateway

MiniMax M2

minimax/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.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'minimax/minimax-m2',
prompt: 'Why is the sky blue?'
})