在 AI Gateway 上使用 MiniMax M2.5

发布: (2026年2月12日 GMT+8 21:00)
2 分钟阅读

Source: Vercel Blog

概览

MiniMax M2.5 现已在 AI Gateway 上可用。
M2.5 在编写代码之前会先规划,拆解功能、结构和 UI 设计。它能够处理跨 Web、Android、iOS、Windows 和 Mac 的全栈项目,覆盖从最初的系统设计到代码审查的完整开发生命周期。相比 M2.1,它对不熟悉的代码库适应性更强,解决问题所需的搜索轮次更少。

使用方法

要使用此模型,请在 AI SDK 中将模型设置为 minimax/minimax-m2.5

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 功能

AI Gateway 提供统一的 API,用于:

  • 调用模型、跟踪使用量和费用
  • 配置重试、故障转移以及性能优化,以实现高于提供商的可用性
  • 内置的可观测性
  • 支持自带密钥
  • 智能提供商路由和自动重试

资源

0 浏览
Back to Blog

相关文章

阅读更多 »