What is an AI gateway? 7 questions for choosing an enterprise LLM gateway

· Ramazan Gülsen

An AI gateway (also called an LLM gateway) is software that sits between your applications and models such as ChatGPT, Claude and Gemini, so that applications connect through one layer instead of going to each provider directly. Provider keys, limits, cost and records all live in that one place. This post lists the questions worth asking when choosing an enterprise AI gateway, and how BaseLLM, the AI gateway by Base Interactive, answers them.

Short definition

Without a gateway, every team goes to its own provider with its own API key. Nobody sees the full picture of who uses which model, how much, and with what data. With a gateway, the application sends requests to the gateway's OpenAI-compatible address instead of the provider's; the gateway checks the request, forwards it to the right model and writes a record.

Without a gatewayWith a gateway
Provider keys spread across applicationsKeys in one place, encrypted
Spend shows up on the invoice at month endSpend is calculated on every request and stops before the budget is exceeded
Personal data goes to the model as isText is scanned and masked before it leaves the organisation
Logging differs per team, or does not existOne tamper-evident audit log

1. Where does it run?

With a cloud gateway, every request first passes through the gateway vendor's servers. For banks and anyone processing personal data, this is the first question. The BaseLLM AI gateway runs on your own infrastructure: Docker on a single server, or a Helm chart on Kubernetes and OpenShift. Details are in the Installation doc.

2. What changes in the applications?

A good gateway should not break existing code. BaseLLM exposes an OpenAI-compatible chat endpoint; in an application using the OpenAI SDK, usually only the base URL and the key change. The Anthropic Messages format is also supported, which is how Claude Code connects. Details are in the OpenAI-compatible endpoint and Claude Code docs.

3. Which models can it reach?

Not being locked to one provider is one of the main reasons for a gateway. In BaseLLM, OpenAI, Anthropic, Google Gemini, OpenRouter and in-house models (for example vLLM) are used through the same endpoint. If a provider fails, the request can move to the project's next model; this is off by default and turned on per project. Details are in the LLM Gateway doc.

4. Are limits and budgets checked before the request?

Seeing the bill at month end is too late. In BaseLLM, limits are checked at project, API key, user and model level before the model is called; a rejected request costs nothing at the provider. Each project gets a monthly budget in USD and an alert threshold (80% by default). Details are in the Policy Engine and Budget and cost docs.

5. Is personal data caught before it leaves?

An employee may paste a national ID number, phone number, IBAN or card number into a prompt. BaseLLM scans the text before the request reaches the model, inside the server and rule-based; the text is not sent to any outside service. Rules are per project: one project can block while another masks. In placeholder mode the model receives something like <PHONE_1> instead of the real value, and the real value is put back in the answer. Secret scanning is on in every project; PII masking is enabled by licence. Details are in the Data masking doc.

6. Can the records be changed?

When something happens, you need to answer "who did what, and what was the result" with records. BaseLLM's audit log keeps event metadata, not content; prompts, model answers and raw keys are not written. Each record carries the fingerprint of the previous one; if a past record is changed or deleted, chain verification shows it. Records can also be exported to your own SIEM. Details are in the Audit Log and SIEM export docs.

7. How much latency does it add?

Every request passes through the gateway, so added time matters. BaseLLM's added latency measured in a test environment is 0.29–0.30 ms at the median and 1.73–1.76 ms at p99; model response time is not included. Results in your environment depend on hardware and network.

A gateway is not compliance

A gateway puts technical controls in one place, but on its own it does not make you compliant with KVKK, GDPR or banking regulation. Decisions by your legal team and employee notices are still needed. What the gateway adds is evidence: you can show where data goes, who uses it and what gets recorded with records, not guesses. We covered masking and logging in more detail in PII masking and audit logs.

The easiest way to try the BaseLLM AI gateway on your own infrastructure is the 30-day evaluation.