Starter
Free for everyone
- 100K observability events+ $10/100K
- 24 CPU hours+ $0.35/hr
- 15 days of data retention
- Unlimited users, deployments, and projects

Mastra's AI gateway handles memory, model selection, and failover automatically. Access 300+ models from every major provider with transparent pricing and no token markup.
Compress chat history into compact memories that help agents remember what matters. Lower token usage and latency without losing important context.

Use one endpoint for every model. Skip provider SDKs — one API key covers everything. Mastra's open-source AI gateway gives you a single integration point that routes to all major providers.

Start building with a free account, or explore our pricing for more
Full PricingFree for everyone
For growing teams
For teams at scale
Custom volume and retention, with RBAC, audit logs, support and uptime SLAs, and a dedicated support engineer.
How Replit Agent 3 creates thousands of Mastra agents every day
How SoftBank is restoring Japan's white-collar productivity using Mastra
How Sanity Built a Content Agent That Actually Understands Your CMS
How Marsh's globally distributed workforce uses LenAI agentic search, powered by Mastra
Start building today
Route all your LLM traffic through one gateway built for production agents