Product RAG enginePlatform overviewAI governanceAI chatbotBuild AI assistantsAI searchAI knowledge baseConnectors & integrationsMCP serverTake the product tour →
Engine & self-hosted RAGSuite EngineSelf-hosted / on-premiseRAGSuite Engine or self-hosted? →
Solutions SMEsHealthcarePublic sectorBanking & insuranceChatGPT alternativeAgencies & partnersAll solutions →
Case studies
Pricing
Resources GuidesBlogFree toolsAI data protectionEU AI ActTrust Center
Start free trial Book a demo
Guide · Blog · RAG & quality

What is an LLM gateway? Tasks, limits and how it differs from a RAG engine

An LLM gateway is a layer through which applications use many language models via one endpoint. What a gateway does, what it cannot do and how it works with a RAG engine that knows your documents.

Sanjay ChauhanSanjay ChauhanCTO Published2 Nov 2026Reviewed2 Nov 2026Reading time5 min
Listen to this articleNow: Introduction
0:00 / 5:39

An LLM gateway is a layer between your applications and the language models they use. Instead of every application managing its own keys, providers and rules, they all send requests to one endpoint. The gateway decides which model answers, keeps the keys in one place and records what each request costs.

A gateway makes models interchangeable and usage visible. It does not know your company knowledge. For a model to answer questions from your documents, it needs a RAG engine. This post explains both and shows when you need which.

Key points
  • An LLM gateway puts access to many language models behind one endpoint, with central keys, rules, cost control and logs.
  • A gateway does not know your documents. Answers from your knowledge, with sources, come from a RAG engine that finds the right passages and passes them to the model.
  • Gateway logs contain questions and often passages from your documents. Check where they are stored and who may see them.
Chapter 1 of 6 · 1 min

What is an LLM gateway?

Many companies no longer use just one language model. One team works with a large hosted model, another with a small local one, and for some tasks a cheaper model is good enough. Each application would then have to manage its own keys, providers and error handling.

An LLM gateway takes that work away. It sits between the applications and the models and offers them a shared endpoint. The application says what it needs; the gateway forwards the request to the right model and returns the answer. Think of a gateway as a switchboard: everyone calls the same number, the switchboard connects them and keeps a record of the calls.

Gateways exist as open-source software you run yourself and as a service. Exactly which features are included differs from product to product.

In shortA layer in between: one endpoint for many language models.

Chapter 2 of 6 · 1 min

What an LLM gateway takes care of

Most gateways cover five tasks. Not every product does everything; the table shows what matters.

TaskWhat the gateway doesBenefit
Routingsends requests to the right model, to a fallback model if one failsmodels stay interchangeable
Keysmanages API keys centrally instead of in every applicationfewer keys in circulation
Costsmeasures usage per team or application, sets limitsno surprises on the bill
Logsrecords who used which model and whentraceability
Rulesdefines which models are allowed and, depending on the product, filters sensitive dataconsistent policies

For IT, this is mainly a matter of order: instead of many separate integrations, there is one place where models, keys and costs are managed.

In shortRouting, keys, costs, logs and rules in one place.

Chapter 3 of 6 · 1 min

LLM gateway or RAG engine: what is the difference?

Gateways and RAG engines are often mentioned together, but they solve different problems. The gateway decides which model answers. The RAG engine decides what it answers from.

LLM gateway

  • Forwards requests to models.
  • Does not know your documents.
  • The answer is only as good as the model’s knowledge.

RAG engine

  • Finds the right passages in your documents.
  • Passes them to the model with the question.
  • The answer names the source it comes from.

A RAG engine is therefore more your AI’s memory than its traffic control. It reads in your stores, builds a search index and passes your documents to the model so it answers from them instead of guessing. How that works is explained in the post on the RAG system.

In shortThe gateway controls the route to the model, the RAG engine supplies the knowledge.

Chapter 4 of 6 · 1 min

When you need a gateway, a RAG engine or both

Whether you need a gateway depends on how many models and applications you run. Whether you need a RAG engine depends on whether the AI should know your company knowledge.

How the two work together
  1. Questionan employee asks about a policy
  2. RAG enginefinds the right passages
  3. Gatewayroutes question and passages to an allowed model
  4. Answer with sourcethe model answers, the source is shown

To start with, a RAG engine with one or two models is often enough. A gateway pays off when many applications and teams use models and you want to control costs and rules centrally. If your gateway offers a compatible endpoint, it can usually be added as a custom model in a RAG engine; check the details in the documentation of both products.

In shortMany models and apps: gateway. Company knowledge: RAG engine. Large setups: both.

Chapter 5 of 6 · 1 min

Your own API keys and where your data goes

Many teams use models with their own API key, also called bring your own key (BYOK). The model provider then bills you directly, and you keep control of the contracts. A gateway helps manage these keys centrally.

BYOKyour own API key, can be switched on in every RAGSuite Engine planRAGSuite pricing
0credits used when your own key is activeRAGSuite pricing
sameplan price with your own keyRAGSuite pricing

Important for data protection: a gateway carries not only questions but, with RAG, also passages from your documents. Gateway logs can therefore contain confidential content.

Five checks for gateway and models0/5 ticked

In shortWith your own key you are billed directly; check where questions and passages end up.

Chapter 6 of 6 · 1 min

Language models in RAGSuite

RAGSuite is not an LLM gateway but a knowledge engine: it connects your sources, finds the right passages and delivers answers with sources. You choose the language model per project, from several hosted providers to a local model via Ollama. You can switch at any time; if the embedding model changes, you rebuild the search index with one click.

In RAGSuite Engine, model usage is included through credits (how credits work). Switch on your own API key and the plan price stays the same, with no credits used. The pricing page and the AI cost calculator show what that costs.

For AI tools that should query your knowledge, RAGSuite also provides an MCP server. That way, tools outside RAGSuite also get answers from your documents, with sources.

In shortRAGSuite is the knowledge engine; you choose the model per project, local included.

Guide complete.

See for yourself how RAGSuite delivers answers with sources, with the model of your choice: free for 7 days with the RAGSuite Engine Starter plan or in a call with Sanjay.

Frequently asked questions

What is an LLM gateway in simple terms?

An LLM gateway is a layer between applications and language models. All applications send their requests to one endpoint; the gateway forwards them to the right model, manages API keys centrally, records costs and logs usage.

What is the difference between an LLM gateway and RAG?

The gateway decides which model answers. RAG decides what it answers from: a RAG engine finds the right passages in your documents and passes them to the model, so the answer is based on your knowledge and names a source. The two can be combined.

Do I need an LLM gateway?

If many applications and teams use different models and you want to control keys, costs and rules centrally, yes. To get started with company knowledge, a RAG engine with one or two models is often enough.

Is an LLM gateway GDPR-compliant?

That depends on how it is run. A gateway carries questions and, with RAG, passages from your documents. Check where the gateway runs, what it logs, for how long and which model providers receive data. With a self-hosted gateway and a local model, everything stays in your own network.

Is RAGSuite an LLM gateway?

No. RAGSuite is a knowledge engine: it connects your sources and delivers answers with sources. In RAGSuite Engine you use Standard, Advanced or Frontier models via credits, self-hosted also local models via Ollama, and you can use your own API key. With your own key, the plan price stays the same and no credits are used. All rules: How credits work.

Sources

  1. RAGSuite: Pricing (as of 28 October 2026): own API key, credits
  2. OWASP Top 10 for LLM Applications 2025: LLM02 Sensitive Information Disclosure, LLM10 Unbounded Consumption
  3. RAGSuite documentation: models and settings
Sanjay Chauhan
About the authorSanjay ChauhanCTO

Sanjay is CTO at RAGSuite. He writes about architecture, self-hosting, open-source models and AI security.

Add RAGSuite as a preferred source on Google
Keep reading

You might also like

Sanjay Chauhan
Sanjay Chauhan
CTO

Your knowledge, your model, your rules.

Sanjay shows you how to run RAGSuite with your models and keys.