AI Gateway

One connection to your AI models, with budgets and usage in view.

Point clients that use the OpenAI Chat Completions API at one endpoint. Choose how requests are routed, set budgets and see who used which model.

Budget checks use best-effort recorded spend. They are not an absolute financial ceiling. How spend controls work.

One request. A permitted route.
Your applicationPOST /v1/chat/completions
AI GatewayKey + routing policy
QualityBalancedCost
Permitted modelResidency policy
AlternativeConfigured providerAlternative
Attributed usageCommand Center
Illustrative routing. No request is sent.

Pick a routing profile; the key’s policy decides where requests may go.

A team calls AI models from several applications and needs a shared way to manage model access and understand usage.

Interactive illustration · fictional data

AI GatewayIllustrative product preview

Route with a reason.

Policy configured
Your applicationsChat Completions API
Odin AI GatewayRouting · policy · budgets
Quality profileAvailable route
Balanced profileSelected by policy
Cost profileAvailable route

The actual model and usage remain attributable.

Provider choices

Access follows your configuration.

  • Orq
  • Requesty
  • OpenRouter

Choose a routing priority

Match capability and cost to everyday work.

This fictional request has one eligible route: a configured provider serving Mistral. Changing the priority keeps the same example model; it does not compare model performance.

One request, accounted for

Fictional request · Summarize a supplier brief

Attribution
Operations · supplier-demo key
Priority
Balanced
Configured route
Configured provider · Mistral
Served model
Mistral Medium 3.1 · example
Static example receipt
Look under the hood

Connect clients that use the OpenAI Chat Completions API through one endpoint. The selected profile expresses a routing priority; configured capability, budget and residency policies constrain the route.

Provider choices are separate from routing profiles. This fictional request has one eligible route, so changing its priority keeps the same example model. Actual routes and models depend on configured access and policy. The receipt is not live usage or a claim about processing location.

AI Gateway mechanism story selected.
Technical referenceResponse headers, routing and key policies

Successful completions report the router-selected model.

Successful responses report the model the router selected, after any fallback, with its configured provider and region, not only the model that was asked for. The latest known spend and remaining budget come back as headers too.

  • X-Odin-Request-Id
  • X-Odin-Served-Model
  • X-Odin-Served-Provider
  • X-Odin-Served-Region
  • X-Odin-Spent-USD
  • X-Odin-Budget-Remaining-USD
OpenAI-compatible
Chat completions with streaming and tool calls, a model list and a usage endpoint. Clients that use the OpenAI Chat Completions API change a base URL and a key.
Routing profiles as model names
Ask for odin/auto-quality, odin/auto-balanced or odin/auto-cost; odin/auto-eu keeps a request to EU-jurisdiction routes. A specific catalogued model name pins that model.
Policy per key that only narrows
Each key can be limited by price tier, request rate and residency (EU-only, EU jurisdiction or any). Residency applies to pinned models too and fails closed.
Budgets that refuse at the limit
At the limit a request is refused with budget_exceeded. If the budget service cannot be reached, requests fail closed. A configured soft threshold records an advisory audit event.

Drawn from the current product source, not the illustration above. What is enabled depends on your configured environment.

Setting it up
for your team.

Provider access, routing policies and budgets are configured for your environment. Talk to us about the applications you want to connect.

Setup prerequisites

  • Provider access for your environment
  • Routing policies for each key and a budget for each person

Before starting, ask us to confirm access, integrations, hosting arrangements and ongoing costs for your setup. Use the setup checklist.

Check your Gateway connection