Mastra推出统一AI模型网关
Mastra宣布推出Mastra Gateway,这是其平台上的一项托管网关服务,用户可通过一个API密钥和一份账单访问Anthropic、OpenAI、Typesafe AI等供应商的模型。Mastra称,该服务提供500多个语言、语音、视频和决策模型,并支持在推理供应商之间自动故障转移、在美国和欧盟之间进行区域路由、按密钥设置模型和支出限制、统一计费以及推理调用可观测性。该公司表示,网关基于其Mastra智能体使用了两年的模型路由器构建。模型数量和功能均来自Mastra的说法,尚未得到独立验证。
Mastra称,该网关将模型接入、计费、管理控制、故障转移和可观测性整合到同一平台层,供AI应用开发团队使用。
Today we’re rolling out the Mastra Gateway, where you can access hundreds of the latest models from all the top providers including Anthropic, OpenAI, Typesafe AI and more.
With one key and one bill, you can build your entire AI product suite on the Mastra platform with powerful controls at the key level.
Your browser does not support the video tag.
Over the last two years, the Mastra model router has helped teams scale up their AI applications, and it now runs tens of trillions of tokens every week. But every provider required its own key, and its own bill. The Mastra Gateway is built on that same model router, but hosted on the Mastra platform, with every provider available through a single key.
And importantly, it has failover built in. Each model is backed by multiple industry-grade inference providers, and if the primary route fails, we’ll automatically retry using another provider.
Get started
Head to the Mastra Gateway, create your first key, then add the key to your project's .env file: