Skip to main content
Mastra v1 was released! Start new projects with v1 or upgrade your existing project today.

Gateway Providers

Gateway providers aggregate multiple model providers and add features like caching, rate limiting, analytics, and automatic failover. Use gateways when you need observability, cost management, or simplified multi-provider access.

Custom GatewaysDirect link to Custom Gateways

Create custom gateways for private LLM deployments or specialized provider integrations. See Custom Gateways for implementation details.

Built-in GatewaysDirect link to Built-in Gateways

On this page