Overview
Relay is a self-hosted AI gateway that sits between applications and model providers. It connects OpenAI, Anthropic, Bedrock, Vertex AI, Groq, Together AI, Fireworks, Ollama, LM Studio, and more, then routes requests through one API. The project describes itself as an AI gateway built for agents and the people behind them.
Relay provides routing, queueing, pacing and model cooldowns, fallbacks, guardrails, limits, usage tracking, cost tracking, logs, and a realtime view of every request. It can pace requests to avoid provider RPM and token limits, absorb bursts with queue-first routing, and keep preferred models in play instead of immediately dropping to weaker backups.
Run it yourself with no separate database or queue to manage. Relay ships as a single Go application with the dashboard built in. Applications talk to Relay through one OpenAI-compatible API, and Relay handles routing, capacity, fallbacks, guardrails, and visibility before the request reaches a model.
Community Edition can classify requests and use that context with its available routing capabilities. Hosted Relay adds stronger request classification and Smart Groups that route automatically based on intent, domain, complexity, and configured model assignments.
Pricing
Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.
Visit WebsitePrices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.
Use Cases
- Teams use Relay to connect cloud providers and locally served models through one OpenAI-compatible API.
- Teams use Relay to pace requests against provider RPM and token limits while absorbing bursts.
- Teams use Relay to put several models behind one name and control the order Relay tries them.
- Teams use Relay to inspect task intent, domain, and complexity for routing decisions.
- Teams use Relay to keep shared capacity and spend in check with request, token, cost, and concurrency limits.
- Teams use Relay to block sensitive prompts and inspect output with pre-dispatch and post-response checks.
- Teams use Relay to track where tokens and money go using configured model prices.
- Teams use Relay to watch requests move through queues and models in realtime.
Features
AI assistant
Natural language interface
Workflow automation
Reviews
No reviews yet. Be the first to share your experience!