Skip to main content
Product · AI Gateway

The AI gateway with LLM routing built in

A hosted AI gateway: one OpenAI-compatible endpoint in front of every model you use, from the managed catalog, your own provider keys, and your Azure, Bedrock or Vertex accounts. Each request is routed to the best model for the task, served, and returned with its decision on the record.

your apps and agentsone OpenAI-compatible APIInferbase ManagedYour provider keyYour cloud account
Request trace · req_8f2c41d9example values
auth
key prod-api · project support-bot
2 ms
limits
118 of 600 rpm · $37.42 of $200 monthly cap · budget ok
1 ms
route
auto · summarisation, complexity 0.21 · 20 qualified · DeepSeek V4 Flash (fp4) · decisiveness 0.36
104 ms
serve
streamed · first token at 417 ms · 96 tokens out · primary served, no fallback
1.07 s
receipt
412 in / 96 out · $0.0001 · decision kept · retrievable by req_8f2c41d9
1.2 s

Every stage is enforced before the next; the receipt and the decision resolve from the request id on the response, in the API and the dashboard.

One request through the gateway, stage by stage
850+ models
in the catalog: curated, verified, live prices
Per request
the cheapest model that clears the quality bar for THAT prompt, not per account
3 doors
prompt, response, tool results, checked per policy
Every request
on record: decision, verdicts, tokens, cost, latency
Definition

What an AI gateway does

Between your applications and the models they call: where an organization sets who calls what, spends how much, and what is recorded.

An AI gateway gives every service one endpoint and one set of credentials in front of many models and providers, and it handles once the concerns that would otherwise be repeated in each service: authentication, rate limits, budgets, logging and failover. Applications keep the API they already use; the gateway holds the provider accounts, the catalog and the record.

Inferbase is that layer with one addition. Where a gateway alone sends each request to the model you named, this one can also decide which model should answer, on the task and the objective you set, and it keeps the reasoning with the request. The gateway is the front of a control plane with four capabilities behind it: the catalog, routing, security and observability.

The longer explainer is what is an AI gateway. How it differs from an API gateway is in AI gateway vs API gateway, and from a router in LLM gateway vs LLM router.

Your applications · SDK unchanged

Inferbase Gateway

One OpenAI-compatible API, with failover, rate limits and budgets behind it.

  1. knowledge

    Catalog

    Curated creators, verified variants, benchmark evidence where it exists, live prices.

  2. decision

    Routing

    A prompt classified, a model chosen on your objective, the decision kept.

  3. policy

    Guardrails

    Which models may serve, guardrails at three check stages, which tools an agent may call.

  4. record

    Observability

    Decision, verdicts, tokens, cost and latency per request; usage and an audit log.

Providers · your keys or the managed catalog
Where the gateway sits
One API

One OpenAI-compatible API in front of every model

A unified LLM API: point an existing SDK at one base URL and keep your code. Name a model to pin it, or send auto and let the gateway choose.

OpenAI SDKs

Chat completions, streaming, tool calls, structured output and embeddings pass through in the shapes the SDK already sends.

Anthropic SDKs

Anthropic-shaped clients are served on the Messages endpoint, including streaming and the full tool loop, and route the same way.

Pin or route

model="auto" lets the gateway choose; a named model is pinned, and your routing policy decides what happens if it fails. Switch per request.

Virtual models →

model="config:support-bot" runs a saved configuration by name: its routing, guardrails and request settings. Edit it in the portal; the code does not change.

Frameworks

Anything that speaks the OpenAI API works unchanged: LangChain, agent frameworks, batch jobs, RAG pipelines.

Routing

LLM routing inside the AI gateway

Set the model to auto: each request is classified for its task, narrowed to the models that clear the quality bar, and picked on your objective.

The objective is yours per key or per request: cost, balanced, quality or latency. The decision takes about a tenth of a second at the median on typical prompts, arrives before the first token when you stream, and is kept by request id with the task, the complexity, the candidates that qualified, the one that won and how clearly. Multi-turn work stays on the model that already holds the session unless switching is worth it.

How LLM routing works →

Quality bar

A model has to clear the bar for the task before price is considered; unmeasured models are not assumed equal.

Session affinity

A session stays on its model across turns unless a switch is worth the cost.

Controls

AI gateway governance: keys, limits and budgets

Every control is enforced at request time, before anything is forwarded, so a runaway loop stops at the gateway rather than on the invoice.

Per-key rate limits

Requests per minute per API key; a request over the limit is refused with a 429.

Spend caps

A daily and a monthly cap per key; a request that would exceed either is refused with a 402.

Project budgets

A monthly budget per project, enforced the same way across every key in it.

Roles

Owner, admin, billing, member and viewer, gating what a member can change and see.

Multi-factor authentication

An organization can require MFA for access to its settings and control plane.

Zero retention

Per API key or for a whole organization; disclosed on the decision wherever it changes a choice.

Enterprise

Enterprise AI gateway controls

The organization sets the rules once and every project and key inherits them; what is locked above cannot be loosened below.

Need single sign-on, SCIM provisioning or a private deployment? Talk to us.

Configurations

Routing policy, guardrail policy and request settings, set for the organization, a project or a key, with locks that lower levels cannot override.

Guardrail policies

Checks on what goes in and what comes out, each set to Off, Log only or Block.

Organization rules

Require multi-factor authentication for every member, and zero data retention for every request.

Audit log

Changes to API keys, members, projects, policies, provider keys, cloud accounts and webhooks, with who made each and when.

Your cloud contract

Serve on your own Azure, Bedrock or Vertex account, under your provider agreement and region.

Signed webhooks

Budget, model availability and guardrail events delivered to your systems, signed so you can verify the sender.

Reliability

Failover, cooldown and cache-aware serving

A routed request carries a primary and two fallbacks; the gateway moves on transient failures and returns client errors as they are.

Fallback chain

Primary plus up to two fallbacks per request, each attempt written to the decision record.

Cooldown

A route that fails is cooled down for a minute before it is tried again.

Honest errors

Invalid requests and content refusals are returned, not retried; another model would reject them identically.

Cache-aware

A prompt marked for caching prefers a route that can cache it, within the quality band.

Failover trace · req_c17a0be2example values
route
auto · summarisation · primary DeepSeek V4 Flash (fp4) · fallbacks Qwen 3.5 397B, Llama 3.3 70B
100 ms
attempt 1
DeepSeek V4 Flash (fp4) · 503 from the provider at 240 ms · route cooled down for 60 s
240 ms
attempt 2
Qwen 3.5 397B · first token at 612 ms · 96 tokens out · served
1.04 s
receipt
both attempts on the decision record · billed once, for the model that answered · req_c17a0be2
1.4 s

A transient failure moves to the next model in the chain; an invalid request or a content refusal is returned as it is, because another model would reject it identically.

A failover, attempt by attempt
Observability

Every request on the record

A receipt for every request and a decision for every routed one, retrievable by request id from the API and the dashboard.

Usage receipt

Model, tokens in and out, cached tokens where the provider reported them, and cost.

Routing decision

Task, complexity, objective, how many models qualified, which won and how clearly.

By request id

Both records resolve from the id on the response, in the API and in the activity log.

Streamed first

When streaming, the decision is the first event, before any content token.

Hosted

A hosted AI gateway on our models, your keys or your cloud

Nothing to deploy or run. Serve on the managed catalog, on your own provider keys, or on your own cloud account, through the same API.

Your accounts

OpenAI, Anthropic, Gemini and other provider keys, connected per project and encrypted at rest.

Your bill

Tokens are billed by your provider; Inferbase adds nothing to them, and the request counts toward your plan.

Managed catalog

Without keys, requests run on the curated catalog, billed per token from credit.

Your cloud account

Connect Azure, AWS Bedrock or Google Vertex, and the gateway serves your requests there under your own contract.

See the gateway in build guides for support, RAG, coding agents and more →

Two lanes, one record

Your key

served on your OpenAI, Anthropic or Gemini account, connected per project

tokens billed by your provider · nothing added by Inferbase

Managed catalog

served on the curated catalog, no keys to connect

tokens, per token from credit

Same record

  • receipt
  • decision
  • limits
  • budgets
Your keys and the managed catalog, one record
Features

Inside the AI gateway

Each part of the gateway in depth: what it does, how it is set, and where the reference lives.

Enterprise AI gateway →

One OpenAI-compatible API for every team, with the rules set once at the top: what each key may run, what is inspected, what it may spend and what is kept.

LLM budgets and spend caps →

Limits that hold under load: each request reserves its maximum cost before it is served, so requests running at the same time cannot together pass a budget.

LLM rate limiting →

Give every application, agent and customer its own key, and its own limit, so one runaway client cannot use up everyone’s capacity or budget.

LLM guardrails →

Inspect what goes into a model, what comes out and what tools return, with one guardrail policy applied to every key that runs under it.

Bring your own key →

Keep your provider accounts, your rates and your contracts. Inferbase routes, inspects and records the requests, and your provider bills you for the tokens.

Azure OpenAI gateway →

Connect an Azure OpenAI or Foundry resource and its deployments become models your keys can pin or route to, served in your Azure subscription and billed there.

AWS Bedrock gateway →

Connect your AWS account with an IAM role, and the Bedrock models it can invoke become models your keys can pin or route to, run in your account.

Google Vertex AI gateway →

Connect a Google Cloud project with workload identity, and the Gemini, embedding, image and video models at its location become models your keys can use.

LLM request logging and audit →

Every request leaves a record: what was asked, which model served it, what it cost, how long it took, and, when the gateway chose the model, why.

FAQ

Frequently asked questions about AI gateways

What an AI gateway is, how it differs from an API gateway and a router, and how this one behaves.

Put intelligence in the middle.

Start on the free plan with 5,000 requests a month, no card required.