Skip to content

Glossary

AI gateway

The short answer

A layer between your apps and AI models that every model call passes through, so keys, model choice and usage are handled in one place.

What is an AI gateway?

An AI gateway is a layer that sits between your applications and the AI models they call. Instead of each app holding its own provider account and key, every model call goes through the gateway. It forwards the call to the model, holds the credentials and counts what was used.

Most gateways add a few more jobs: choosing which model handles a call, trying another model when one returns an error, and keeping a record of usage per app or per team.

AI gateway vs LLM gateway

The two terms mostly mean the same thing. An LLM gateway is an AI gateway for large language models. AI gateway is the broader name, because the same layer can front image, speech and embedding models.

AI gateway vs API gateway vs MCP gateway

An API gateway sits in front of your own APIs and handles traffic to them. An AI gateway handles outbound calls from your apps to models. An MCP gateway governs the tools an agent calls, which is a different direction again. Why an API gateway won’t cut it as an AI gateway explains why one rarely stands in for another.

Why it matters

A model key committed to a repo is a common way AI-built apps leak a secret. A gateway keeps the key out of the code. It also gives one place to see which apps use the most and one place to change a model, so switching from one model to another is an edit and not a new integration.

AI gateway at Tray

Tray Helix has a built-in AI gateway. Model calls from apps and agents pass through it. Helix holds the provider key, so it never sits in a file or reaches the AI assistant that wrote the app. You name the model for each agent or each step, an agent can list fallback models, and each app’s Usage view shows its usage in HCUs. You can also bring your own provider account.

Agents that call tools in your business systems are covered by Agent Gateway for MCP, which governs tool calls and logs each one. Sign-in, roles and the audit trail apply across both through Governance.

Last updated November 2026.

All glossary terms

See how AI gateway works at Tray.ai

A tailored demo against your real systems.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.