AI Gateway
One API, one key, every model.
Airelay speaks the OpenAI API, so any OpenAI-compatible SDK works unchanged. Behind it: 45 providers, 2,376 models, routing that survives outages, and a stack of AI plugins you switch on from the dashboard.
Bring your own keys — your provider bills you
Connect your own provider accounts. Each provider charges you directly at its own price; Airelay meters each request and adds a flat 4% on that cost. No wallet to top up, no resold tokens.
Encrypted, or in your own Vault
Never stored in the gateway engine
Gateway keys for your apps
Routing policies
Create a policy from the dashboard and call it like a model. 7 strategies, mix any providers you've connected:
{
"model": "policy/primary-with-backup",
"messages": [{ "role": "user", "content": "Summarise this contract" }]
}
# policy/primary-with-backup (type: fallback)
# 1. anthropic/claude-3-5-sonnet retries: 1
# 2. openai/gpt-4o retries: 1
# 3. groq/llama-3.3-70b-versatile retries: 0Fallback chain
An ordered list of models — if one is rate-limited, erroring, timing out or returns nothing usable, the next one takes the request.
Weighted load balancing
Split traffic across models or accounts by weight — most to a cheaper model, a slice to a stronger one.
Lowest latency
Send each request to whichever entry has been answering fastest recently.
Lowest cost
Pick the cheapest entry for the request, using per-model token prices from the catalog.
Lowest usage
Spread load to whichever entry has handled the least traffic, to stay under per-key rate limits.
Priority tiers
Prefer a top tier and only drop to the next tier when every entry above it is unavailable.
Semantic routing
Describe what each entry is good at; each prompt is routed to the entry whose description best matches its meaning.
Detecting “unavailable”
A rate limit or a 500 is easy to catch. A provider that returns 200 with nothing useful isn't — here's what Airelay does about each.
Per-key circuit breaker
Structural failure detection
Response feedback API
X-Airelay-Request-Id. If your app decides an answer was unhelpful, POST /v1/feedback with it — the same circuit breaker treats a provider that keeps producing bad answers like one that's down.AI Guardrails & Plugins
Policy you switch on, not code you write
14 AI plugins you enable for your whole organisation, or attach to specific routes. They run inside the gateway on every matching request — your application code doesn't change.
PII redaction — with UK identifiers
Semantic cache
Semantic prompt guard
Semantic response guard
Third-party guardrails
RAG injection
Prompt compression
Token & cost budgets
LLM-as-judge quality scoring
Prompt templates & decorators
Request & response transformation
Keyword prompt guard
Designed to fail safe for your users
- Guards and helpers fail open on a timeout by default, so a slow check never takes your app down — switch any guard to fail closed when blocking matters more than availability.
- Blocked or rate-limited requests are clearly marked in the response headers and in your request log, so you can see which plugin stopped them.
- Semantic cache hits are flagged per response, and hit rate is tracked in analytics.
Try it without a key
A curated set of models with a genuine no-cost provider tier works the moment you sign up — no provider key, no card — up to 20 requests per organisation per day.
- google/gemini-2.0-flash
- google/gemini-1.5-flash
- groq/llama-3.1-8b-instant
- groq/llama-3.3-70b-versatile
- mistral/mistral-small-latest
Connect your own key any time for full model access and your provider's own limits.
45 providers, 2,376 models
Search the model catalog by provider, price, context window and data residency from the dashboard. Providers include:
- OpenAI
- Anthropic
- Google Gemini
- Google Vertex AI
- Azure OpenAI
- AWS Bedrock
- Mistral
- Cohere
- Groq
- Together AI
- DeepSeek
- xAI
- Perplexity
- Hugging Face
- IBM watsonx
- Cerebras
- SambaNova
- Fireworks AI
- DeepInfra
- AI21
- Nvidia NIM
- Databricks
- Cloudflare Workers AI
- Replicate
Swap one base URL. Keep answering.
Free to sign up, no card needed to try the free models. Connect your own provider keys whenever you're ready.