Models and providers
Local models first. Cloud providers only if you configure them.
One OpenAI-compatible endpoint sits in front of every model. Your application names a model; the gateway picks the provider, redacts personal data, checks the team's budget, and writes one usage row. In local-model mode nothing leaves the network.
- Local models through Ollama, no key needed
- Provider keys are references, never plain text
- Failover to the next provider, or to the local model
Inside your walls
The local model is always there.
A fresh stack with no provider key serves the local model only. Prompts, tool calls and audit rows stay inside the wall. Add a cloud provider later, or never.
Ollama
Models that run on your own hardware. Always listed by the gateway as local-llm; the default points at Mistral and any model Ollama serves can be named directly. Set OLLAMA_BASE_URL if Ollama is not on the host. No API key. Streaming supported.
vLLM, or any OpenAI-compatible server you run
A model server you operate, inside the wall or in your own cloud. Set VLLM_BASE_URL for vLLM. Other OpenAI-compatible servers are added as a custom provider from the Operator Portal, with a base URL and a key reference.
A government team with no internet, a hospital whose patient data cannot leave, a client who mandates local models only: all three run this way. The approval gate, the budgets and the audit trail work the same with a local model as with a cloud one.
Cloud providers
Configured by you, reached only through the gateway.
Each provider below is wired into the AI gateway and routed by model name. A provider with no key configured is not offered. Status words are LIVE or IN PROGRESS; nothing else.
| Provider | Status | Key reference | Notes |
|---|---|---|---|
| OpenAI | Live | OPENAI_API_KEY | Model names starting gpt-, o1-, o3- route here by default. |
| Anthropic | Live | ANTHROPIC_API_KEY | Model names starting claude-. |
| Google Gemini | Live | GEMINI_API_KEY | Model names starting gemini-. GEMINI_BASE_URL points at another OpenAI-compatible base, for a mock or a proxy. |
| Azure OpenAI | Live | AZURE_OPENAI_API_KEY | Also needs AZURE_OPENAI_BASE_URL; the API version is a setting. Your own deployment, in your own cloud. |
| Mistral | Live | MISTRAL_API_KEY | |
| DeepSeek | Live | DEEPSEEK_API_KEY | |
| Together AI | Live | TOGETHER_API_KEY | |
| Groq | Live | GROQ_API_KEY | |
| Fireworks AI | Live | FIREWORKS_API_KEY | |
| Cohere | Live | COHERE_API_KEY | Non-streaming calls. Streaming for Cohere: In progress |
| AWS Bedrock | In progress | — | Listed in the gateway; the request signing it needs is not implemented yet. Do not plan an evaluation on it. |
Each environment variable above is the local-stack form. On a host, the same key is a reference to a secret store; see how keys are stored.
Routing
Name the model. The gateway finds the provider.
Any model id that matches a provider's name pattern routes to it, with no list to maintain. When you need to be explicit, pin the provider in the model name or in a header. Aliases give a team a stable name while you change what is behind it.
# the local model, through the edge, with a tenant key curl http://localhost:9080/v1/chat/completions \ -H "Authorization: Bearer $GATEZ_API_KEY" \ -d '{"model": "local-llm", "messages": [{"role": "user", "content": "Hello"}]}' # a cloud model, routed by its name -d '{"model": "claude-sonnet-4-20250514", ...}' # pin the provider; the model name passes through unchanged -d '{"model": "@groq/llama-3.3-70b-versatile", ...}' # or: -H "x-gatez-provider: groq" # an alias set by the operator (MODEL_ALIASES=fast=gpt-4o-mini,...) -d '{"model": "fast", ...}'
GET /v1/models lists what the team may use.- Per-team model rules. A team's policy can block providers and name the models it may use, including the pinned
@provider/modelform.Live - Failover. After repeated failures the gateway opens a circuit for that provider, retries with backoff, and routes to the next provider in your chain, which can be the local model. A pinned request is never rerouted; it answers that the provider is unavailable.Live
- Balancing. Across healthy providers the gateway picks by error rate, latency and queue depth.Live
- Health.
GET /v1/providers/healthshows every provider's state. The Operator Portal shows the same.Live
Around every call
The same controls, whatever the model.
These do not depend on the provider. They run inside the gateway, before and after the model call, for local and cloud models alike.
Redaction before the call
Personal data (national id numbers, email addresses, card numbers, phone numbers, IP addresses) is redacted before the prompt leaves the gateway. The log records that something was found, never what.
Budgets before the call
Each team has a token budget. It is checked before the request is forwarded and deducted after the response. A team over budget gets a clear refusal, not a surprise invoice.
Cache
An exact-match cache in Redis and a semantic cache in Qdrant, both keyed by team. One team's answers are never served to another. The semantic cache is a setting, off until you turn it on.
One usage row
Team, model, provider, tokens, latency, cache hit, redaction flag. Prompt and response content are not stored. Authorization headers are stripped before any write. Retention is a setting.
Streaming responses pass through without buffering. Usage is read from the stream so the budget is settled on real counts.
Provider keys
A key is a reference, not a value.
The control plane stores where a key lives, never the key itself. The gateway resolves it when it needs it and caches it in memory for a short time. The portal shows a masked value and whether the last test passed.
Where a key can live
An environment variable. A HashiCorp Vault path and field. A Kubernetes Secret. AWS Secrets Manager. Azure Key Vault. The reference is what the portal and the API carry.
What is refused
A key typed into the portal as a value is accepted on a local machine only; outside a local stack the control plane refuses it. Gateway configuration never carries a plain-text secret; it carries a reference, and a check rewrites anything older.
Where the gateway may connect
A provider base URL, for Azure, vLLM or a custom provider, must be http(s) with no credentials in it. Cloud metadata services and link-local addresses are always refused, locally too. The URL is checked when saved and when used.
# a custom OpenAI-compatible provider, added by a platform operator POST /api/providers { "id": "internal-llm", "display_name": "Internal model server", "type": "openai_compatible", "base_url": "https://llm.internal.example", "key_source": { "type": "vault", "path": "gatez/internal-llm", "field": "api_key" }, "model_patterns": ["internal-*"], "enabled": true }
Bring the model you are allowed to use.
A local model with nothing leaving the network, or a cloud provider through your own controls. We will run your scenario through the gate on a live system.