Use MiniMax M2.5 on AI Gateway
Source: Vercel Blog
Overview
MiniMax M2.5 is now available on AI Gateway.
M2.5 plans before it builds, breaking down functions, structure, and UI design before writing code. It handles full‑stack projects across Web, Android, iOS, Windows, and Mac, covering the entire development lifecycle from initial system design through code review. Compared to M2.1, it adapts better to unfamiliar codebases and uses fewer search rounds to solve problems.
Usage
To use this model, set the model to minimax/minimax-m2.5 in the AI SDK:
import { streamText } from 'ai';
const result = streamText({
model: 'minimax/minimax-m2.5',
prompt: `Design and implement a multi-tenant SaaS authentication system
with role-based access control, supporting OAuth providers
and API key management.`,
});
AI Gateway Features
AI Gateway provides a unified API for:
- Calling models, tracking usage and cost
- Configuring retries, failover, and performance optimizations for higher‑than‑provider uptime
- Built‑in observability
- Bring Your Own Key support
- Intelligent provider routing with automatic retries
Resources
- Learn more about AI Gateway
- View the AI Gateway model leaderboard
- Try it in our model playground