API compatibility & migration cost
Is it a drop-in replacement for an SDK you already use (e.g. OpenAI Chat Completions), or does it require a new client and request shape?
Resource
A vendor-neutral framework for choosing an LLM gateway.
Gateway types, the criteria that actually differentiate vendors, the questions to ask before you commit, and a two-week plan to run the evaluation. Privian is one option in the category — this guide is written so it's useful even if you choose someone else.
What is an LLM gateway and what should you evaluate?
An LLM gateway is a layer between your application and one or more model providers that centralises authentication, model routing and observability, and — depending on the vendor — data controls such as credential handling and egress protection. Evaluate it on API compatibility, credential model, data retention defaults, provider coverage, failure behaviour, feature support and deployment model — not on integration speed alone.
Summary
Teams calling multiple LLM providers directly end up with duplicated auth code, scattered API keys, no single place to enforce data controls, and no good answer when a security reviewer asks what leaves the company and where.
Put one gateway in front of every provider call, and choose it against written criteria — compatibility, credentials, retention, egress controls, coverage, and failure modes — rather than by whichever SDK was easiest to wire up first.
When you have more than one provider or team calling a provider, sensitive data in prompts, or an upcoming security review that needs one describable data path.
A gateway is infrastructure, not a compliance certification. It shifts where controls live; it does not remove the need to configure them correctly or to keep verifying vendor claims against current documentation.
Why buy one
Almost nobody sets out to buy a gateway on day one. It becomes necessary once a few pressures accumulate at the same time.
The trigger is rarely a single incident — it's the moment a security questionnaire or a second provider integration makes "ask each engineer" stop being a viable answer.
Taxonomy
"LLM gateway" and "AI gateway" cover several genuinely different products. Knowing which category you actually need narrows the shortlist fast.
Framework
Routing / cost-optimisation gateways
Optimise for provider abstraction, failover, caching, load balancing and cost attribution across models. Suits teams whose main pain is provider sprawl and spend visibility, and who don't handle highly sensitive prompt content.
Observability-first gateways
Centre on tracing, evaluation and logging of every request for debugging and quality monitoring. Suits teams optimising prompt quality and reliability over privacy or cost.
Privacy / egress-control gateways
Optimise for reducing what leaves the boundary — detecting and masking sensitive values before the provider call. Suits teams whose driver is a security review, regulated data, or customer PII in prompts.
Self-hosted proxies
Open-source or self-managed software you run on your own infrastructure. Suits teams with data-residency requirements or the operational capacity to run and patch another service themselves.
DIY in-house wrappers
A thin internal library or service built to solve today's specific need. Suits very small teams or early-stage products where a vendor decision isn't yet worth the overhead — until sprawl catches up.
These categories aren't mutually exclusive in practice — most vendors lean toward one but carry some capability from another. Use the taxonomy to identify your primary driver before comparing feature lists.
Evaluation
The criteria below are the ones that tend to matter once a gateway is load-bearing in production — not the ones that show up first in a demo.
Is it a drop-in replacement for an SDK you already use (e.g. OpenAI Chat Completions), or does it require a new client and request shape?
Does the vendor hold your provider keys (BYOK, encrypted at rest, decrypted per request) or resell tokens under its own account? Each has different billing and trust implications.
Are raw prompts and responses persisted by default? For how long? Can logging be scoped or disabled per field?
Does the gateway inspect or transform request content before it reaches the provider, or does it forward whatever the application sends unchanged?
Which providers and models are supported, and how are they addressed — a stable namespaced id, or provider-specific strings you have to remap yourself?
What does the gateway add to request latency, and what happens on a provider outage — retry, failover, or a clean error your application can handle?
Does it support streaming responses, tool/function calling, JSON mode and multimodal input, or only basic non-streaming text completions?
Can you see usage and cost broken down by team, key or feature without the gateway needing to store prompt content to do it?
Do you run the gateway yourself, accepting the operational burden, or is it a managed service you depend on for uptime?
Where does the gateway process (and, if applicable, log) requests, and does that satisfy your residency requirements?
Does the vendor have a security/trust page, a DPA, and answers ready for a procurement questionnaire, or will you be first to ask?
Is pricing a markup on tokens, a flat platform fee, or usage-based on gateway requests — and does it stay predictable as volume grows?
Framework
Start from your trigger, not the full list
If your driver is a security review, weight credential model, retention and egress controls heavily. If it's provider sprawl and cost, weight coverage and cost attribution instead.
Treat feature-support gaps as disqualifying only if you need them now
A missing capability like streaming is a blocker for a real-time chat UI and irrelevant for a batch summarisation job. Match the gap to your actual workload.
Verify retention and credential claims directly, don't infer them
These are the two areas most often stated vaguely in marketing copy. Ask for the specific behaviour in writing.
Weight self-host vs managed by your ops capacity, not ideology
Self-hosting is not automatically more secure if nobody on the team can keep it patched; managed is not automatically riskier if the vendor's posture is documented and verifiable.
Vendor questions
Framework
Do you persist raw prompts and responses by default?
If yes, for how long, and can it be disabled or scoped?
Who holds the provider API keys?
Vendor-held pooled credentials, or BYOK with keys scoped to our account?
How are provider keys stored and decrypted?
Encrypted at rest, in-process decryption, or plaintext in a config store?
Which providers and models are supported today?
And how are new models added — automatically, or on a release cycle?
Is streaming supported?
If not, is it on a roadmap with a date, or indefinite?
Is tool/function calling supported?
Required for agentic workflows; a hard blocker if missing and needed now.
What happens on a provider outage or rate limit?
Automatic failover, a documented retry policy, or a raw error passed through?
What added latency does the gateway introduce?
Ask for a number, not an adjective.
Where is the gateway deployed, and where is any logged data stored?
Relevant to data-residency and cross-border transfer questions.
Do you have a DPA, security/trust page and subprocessor list?
If not yet, is one available on request before you sign?
How is pricing structured, and what happens at 10x current volume?
Token markup, flat fee, or per-request — ask for the model, not just a sample invoice.
What is explicitly out of scope today?
Every gateway in beta or early stages has gaps. A vendor who states them plainly is more trustworthy than one who doesn't answer directly.
Process
Days 1-2: Write requirements — Identify your trigger (cost, observability, privacy, residency) and write down which criteria above are must-have versus nice-to-have before you look at any vendor.
Days 3-4: Shortlist 2-3 vendors — Match vendors to your primary category from the taxonomy above rather than comparing feature checklists across categories.
Days 5-9: Run a real integration — Point a non-critical endpoint at each shortlisted gateway using your actual request shapes, not a hello-world example, and measure latency and failure behaviour directly.
Days 10-12: Ask the fixed question list — Send the vendor-question list to each vendor in writing and compare the answers side by side, not the sales pitch.
Days 13-14: Decide and document — Record why you chose (or ruled out) each option against your written requirements, so the decision can be revisited later without repeating the whole process.
Scope check
A gateway solves specific problems. If none of yours apply, adding one is unnecessary infrastructure.
Where Privian fits
In the taxonomy above, Privian is a privacy / egress-control gateway, not a routing/cost-optimisation gateway. It is one option in this category, and for some buyers a routing-first gateway is the better fit — that's a real trade-off, not a hedge.
provider/modelSee the current implementation on the LLM Gateway product page or how it's positioned against named alternatives on the compare hub.
Transparency
Provenance
FAQ
Next steps
LLM Gateway
See Privian's implementation of a privacy-first gateway in detail.
Compare hub
Read named, vendor-by-vendor comparisons for the compare-first buyer.
Pricing
Review current plans before you build against any vendor.
Supported models
The current provider and model catalog behind the provider/model address form.
Enterprise review
Trust assets procurement and security teams routinely request.
Plans & pricing
Privian is in beta. Pricing is published transparently — review plans before you build.