What is an AI gateway?
An AI gateway is one API between your app and many AI models: one address, one key and one bill. Straitly is a hosted AI gateway for 117 models. [1][14]
Updated
- 1Your appapi.straitly.ai/v1
- 2The gatewayOne key: balance, cap, rate limit
- 3Providerserves the modelAnother providersame model, if one goes down
- 4One billTokens and charge, never the prompt
How does a request pass through an AI gateway?
One request through Straitly, start to finish. Your code changes in two places: the base URL and the key [6].
Your app sends it
To https://api.straitly.ai/v1 with one Straitly key, in the OpenAI or Anthropic format [6][7].
The gateway checks the key
Balance, the key's cap or budget, and the rate limits. A request over a limit gets a named error [8].
A provider serves the model
If one goes down, the request moves to another provider serving the same model [11].
One answer, one bill
The reply comes back in your SDK's shape. Activity records tokens and charge, never the prompt [10][13].
What does an AI gateway do?
Kong calls it a “specialized middleware layer” [1]. Each job, and how Straitly does it today.
| Job | What it means | On Straitly |
|---|---|---|
| One API for many models | One address and one key instead of an account with every provider. | All 117 models at https://api.straitly.ai/v1, in the OpenAI /chat/completions and Anthropic /messages formats [6][7] |
| Spend limits per key | Stop one app or customer from running up the whole bill. | An optional daily cap on each key (quota_exceeded) and child keys with a lifetime budget (budget_exhausted) [8][9] |
| Rate and concurrency limits | Cap how many requests run per minute and at once. | Accounts start at 300 requests a minute and 64 in flight, shared across keys; every 429 says how long to wait [6][8] |
| Failover | If one provider goes down, requests go to another. | Requests move to another provider serving the same model, with nothing to configure. Provider usage policies and rate limits still apply: when a provider refuses a request, you see the reason it gave [11] |
| Usage and cost logs | See each request's tokens, cost and speed. | Activity shows token buckets, charge, time to first token and duration; export as CSV or JSON [10] |
| One bill | Pay one company, not each provider. | Prepaid credits, per token; a failed request costs nothing. Most models are billed 40% under list [12] |
| Data handling | What the gateway keeps from your requests. | Zero data retention by default; only billing metadata is kept [13] |
| Bring your own key | Use your own provider accounts through the gateway. | Coming soon. Today, one Straitly key and balance for every model |
Straitly facts are from its docs, read on 23 November 2026. Coming soon means planned, with no date yet.
AI gateway vs LLM router vs proxy: what is the difference?
The words overlap. A gateway usually includes routing; a proxy is the bare minimum. Side by side: OpenRouter alternatives and Straitly vs LiteLLM.
| Term | What it does | Who runs it | Examples |
|---|---|---|---|
| AI gateway (LLM gateway) | One API in front of many models, plus keys, limits, failover and logs. | A vendor hosts it, or your team runs it. | Straitly (hosted); LiteLLM (self-hosted) [5]; Kong runs either way, self-hosted or “fully managed” [2] |
| LLM router | Picks which model or provider answers each request, by price, speed or rules. | Usually a feature inside a gateway. | Straitly moves requests to “another provider serving the same model” if one goes down [11] |
| LLM proxy | Forwards requests from your app to a provider, with little added. | Your team, on its own servers. | Kong: an “egress proxy for AI traffic” [1] |
| API gateway | Manages any API traffic: auth, rate limits, routing. | Your platform team. | AI gateways “extend the capabilities of standard API gateways” [3] |
Do I need an AI gateway?
Usually yes, once you call more than one model or hand out keys. Straitly is hosted, so there is nothing to run.
| If you have | What fits | Why |
|---|---|---|
| One model from one provider, light use | That provider's own API | Nothing to add yet. |
| Several models or providers | A hosted AI gateway | One key, one format, one bill. |
| A key for each app or customer, with a budget | A gateway with child keys | A cap stops one key, not the account. |
| Everything must run in your own cloud | A self-hosted gateway, such as LiteLLM | You run, patch and scale it yourself. |
| You want the gateway to lower the price too | Straitly | Most models 40% under list. |
What else do people ask about AI gateways?
Ask a question- One API between your apps and many AI models, with keys, limits, failover and billing in one place. IBM says AI gateways “extend the capabilities of standard API gateways” [3].
- Mostly, yes. "LLM gateway" is the name for an AI gateway in front of language models, which is what most AI gateways serve. Portkey: “An LLM Gateway centralizes failure handling through retries, fallbacks, load balancing, and circuit breaking” [4].
- It depends on the gateway, so check its data policy. Zero data retention is on by default for every account and key: prompts and completions are never written to disk or logs and never used for training. Only billing metadata is kept: timestamp, model, provider, key, token counts, latency, status and charge. [11][13]
- Coming soon. Today, one Straitly key and balance for every model.
Sources
Last updated: . If something here is out of date, tell us at straitly.ai/contact. More: all comparisons, pricing and the quickstart.
- [1]Kong: What is an AI Gateway?
- [2]Kong: Dedicated Cloud Gateways
- [3]IBM: What is an AI gateway?
- [4]Portkey: What is an LLM Gateway?
- [5]LiteLLM docs: AI Gateway
- [6]Straitly docs: quickstart
- [7]Straitly docs: endpoints
- [8]Straitly docs: errors and limits
- [9]Straitly docs: child keys
- [10]Straitly docs: logs and exports
- [11]About Straitly
- [12]Straitly pricing
- [13]Straitly data retention
- [14]Straitly models
What each source says
- Kong: What is an AI Gateway?
- Defines an AI gateway as a middleware layer between applications and AI models that handles authentication, routing, rate limiting and traffic monitoring, and compares it with a traditional API gateway. Published 22 January 2025.
- Kong: Dedicated Cloud Gateways
- Kong also sells gateways it runs for you: "Launch fully managed, dedicated Cloud Gateways", on dedicated infrastructure "all managed by Kong".
- IBM: What is an AI gateway?
- AI gateways extend standard API gateways with multi-model access, routing, load balancing, token tracking, rate limiting and security policy. Published 18 September 2025.
- Portkey: What is an LLM Gateway?
- An LLM gateway runs LLMs as shared infrastructure and centralizes retries, fallbacks, load balancing and circuit breaking.
- LiteLLM docs: AI Gateway
- The LiteLLM AI Gateway is a self-hosted server with one OpenAI-compatible endpoint, virtual keys with budgets and rate limits, cost tracking, fallbacks and content filters.
- Straitly docs: quickstart
- One OpenAI-compatible base URL, Bearer key auth, OpenAI /chat/completions and Anthropic /messages formats; default limits of 300 requests a minute and 64 in flight; child keys with a daily cap or lifetime budget.
- Straitly docs: endpoints
- POST /chat/completions and POST /messages on the same base URL. The Anthropic SDK takes the root URL and adds /v1/messages itself.
- Straitly docs: errors and limits
- Named gateway denials (quota_exceeded, budget_exhausted, rate_limit_exceeded, concurrency_limit_exceeded) in the X-Straitly-Error-Code header, account rate and concurrency limits shared across keys, daily key caps and child-key budgets.
- Straitly docs: child keys
- Mint a bounded, revocable key for each of your own customers, each with its own budget, rate limit and history, billed to your prepaid balance.
- Straitly docs: logs and exports
- Activity shows each request's token buckets, charge, time to first token and duration; filtered views export as CSV or JSON.
- About Straitly
- If a provider fails before any output reaches you, your request moves to another provider serving the same model, when there is one. Failover is built in, with nothing to configure. Provider usage policies and rate limits still apply: when a provider refuses a request, you see the reason it gave.
- Straitly pricing
- Billed per token from prepaid credits; most models 40% under the provider's list price, nothing added on top. A failed request costs nothing. No subscription and no minimum.
- Straitly data retention
- Zero data retention on by default for every account and key; prompts and completions never written to disk or logs and never used for training; only billing metadata is kept.
- Straitly models
- All 117 models on one Straitly key, with ids, context windows and rates.
Start with one request.
Prepaid, per token, no subscription and no minimum.