Use MiniMax M2.5 on AI Gateway

1 min read

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.

To use this model, set 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 provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.

Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.