Models and providers
Beta. The Langfuse AI Gateway is in public beta and can still change.
As an admin, you can manage which models are allowed to be used. This page explains where the model list comes from, how admins choose models, and which model ID to send.
![]()
Supported providers
| Provider | API formats |
|---|---|
| OpenAI | OpenAI Responses, OpenAI Chat Completions, OpenAI Decisions, OpenAI Embeddings |
| Anthropic | Anthropic Messages |
| Amazon Bedrock | Anthropic Messages for Claude models; OpenAI Responses or Chat Completions for other models |
| Google AI Studio | OpenAI Chat Completions, OpenAI Embeddings |
| Google Vertex AI | OpenAI Chat Completions for Gemini and open models, see Vertex AI models |
| Microsoft Azure (Microsoft Foundry) | Anthropic Messages for Claude models; OpenAI Chat Completions and OpenAI Embeddings for other models, plus OpenAI Responses for OpenAI models |
| OpenRouter | OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, OpenAI Embeddings |
| Vercel AI Gateway | OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, OpenAI Decisions, OpenAI Embeddings |
| xAI | OpenAI Responses, OpenAI Chat Completions |
Available models
You can find a list of every model gateway keys can call under AI Gateway → Connections & Models → Models. Everyone with gateway access can open this page, including Viewers and the AI Gateway role.
The list comes from each provider connection: the gateway pings the provider's own /models endpoint to check which models the connection can access. Models that only serve OpenAI Decisions or OpenAI Embeddings show a Decisions or Embeddings badge.
If a provider rejects a connection's API key during model discovery, for example because the key was rotated, the connection is marked as failing and the gateway stops routing to it. Update the key or select Retry in AI Gateway → Connections & Models → Connections to restore it.
Manage models
Gateway managers (Owners and Admins) can configure models per provider connection:
- Go to AI Gateway → Connections & Models → Models and select a connection.
- Turn models on or off with the Enabled switch.
- Select Refresh models for this connection to fetch the connection's current model list from the provider.
A connection with every model enabled also allows models that the provider publishes later. As soon as you turn one model off, the connection keeps an explicit list. Select Enable all to go back to allowing every model.
Model IDs
Model IDs have the form <connection>:<model>, for example openai-prod:<model> or openrouter:openai/<model>. The prefix is the name of the provider connection that serves the request, and <model> uses that provider's own naming. This form works for every provider and is the only way to choose between connections that offer the same model. Renaming a connection changes its prefix, so update clients that use the old IDs.
Coding agents that send plain model names also work for OpenAI (gpt-, codex-, ft:, and text-embedding- on /openai/v1/embeddings) and Anthropic (claude-) models. The gateway then uses the oldest OpenAI or Anthropic connection that supports the request's API format and has the model enabled. Connections to other providers, such as OpenRouter or Amazon Bedrock, are never used for plain model names.
Each request goes to one connection. If that connection fails, the gateway doesn't retry the request with another connection.
Restrict models per API key
You can limit each gateway API key to some of the models. Add model patterns under More options → Models when you create a key, or select Edit key in AI Gateway → Gateway keys to change them later.
Patterns only narrow what admins enabled for a connection; they never turn a model on. A key without patterns can call every enabled model, including ones enabled later. A pattern matches the model ID <connection>:<model>, ignoring case. * matches any characters, and a leading - excludes the matching models:
| Patterns | The key can call |
|---|---|
openai-prod:* | Every enabled model of the openai-prod connection |
openai-prod:*, anthropic-prod:claude-* | Those models plus the Claude models of anthropic-prod |
-openrouter:* | Every enabled model except those of the openrouter connection |
Patterns refer to connections by name. Renaming a connection updates patterns
that start with its exact name, but not patterns with a wildcard in the
connection part, such as open*:*.
Advanced connection settings
Most connections don't need these. Use them when you add or edit an OpenAI or Anthropic connection and want to send requests through your own endpoint or attach extra HTTP headers.
Custom base URL
OpenAI and Anthropic connections can send requests to another endpoint that serves the same API, such as an internal LLM proxy. When you add or edit the connection, set API Base URL under Show advanced settings.
- End the URL at the API version, for example
https://llm.example.com/v1. Anthropic URLs get/v1appended if it's missing. Query strings, fragments, and{model}aren't supported. - Changing the base URL of a saved connection requires its API key and extra header values again.
On Langfuse Cloud, the base URL must use HTTPS and can't point to a private network address. On self-hosted Langfuse, private addresses are blocked unless you allow them, see Gateway to LLM providers.
Extra headers
The same connections can send extra HTTP headers with every request, for example to authenticate with your proxy or tag traffic. Add them under Show advanced settings.
- Headers that carry the provider API key or control the HTTP connection can't be set:
Authorization,x-api-key,Host,Connection,Content-Length,Transfer-Encoding,Accept-Encoding, and other hop-by-hop orProxy-*headers. - Values are stored encrypted and aren't shown again. Leave a value blank to keep the stored one.
Troubleshooting and FAQ
Why can't I call a new model?
A model the provider just released is available right away only on connections that have every model enabled. If an admin turned off any model on a connection, the connection keeps an explicit list, and new models stay off until an admin enables them under AI Gateway → Connections & Models → Models. Select Refresh models for this connection there if the model doesn't appear in the list yet.
Why doesn't my Amazon Bedrock connection list any models?
A Bedrock connection takes an Amazon Bedrock API key and an AWS region. To list models, the key needs the bedrock:ListFoundationModels and bedrock:ListInferenceProfiles permissions. Otherwise, add custom models to the connection on its models page. For cross-region inference, use the inference profile ID as the model, for example bedrock-prod:global.<bedrock-model-id>.
Why doesn't my Microsoft Azure connection list any models?
A Microsoft Azure connection takes the name of a Microsoft Foundry resource, for example my-resource for https://my-resource.services.ai.azure.com, an API key of that resource, and an optional Foundry project name. Requests name a deployment, so the connection's models are the deployments of its project, for example azure-prod:<deployment-name>.
Without a project name, the gateway lists the resource's default project, which not every resource has. Deployments on connected resources aren't listed. If the deployments can't be listed, add the deployment names as custom models to the connection on its models page.
Which Google Vertex AI models can I call?
A Google Vertex AI connection takes a service account key (JSON) with the Vertex AI User role and a location, for example global or us-central1. The gateway calls Vertex AI's OpenAI-compatible Chat Completions endpoint, so it supports the models served there: Gemini and the open models Google hosts, such as Llama, DeepSeek, Qwen, and gpt-oss.
The connection lists Gemini models as google/<model>, for example vertex-prod:google/<model>. Add open models as custom models on the connection's models page, using their Vertex AI model ID, for example <publisher>/<model>.
Claude on Vertex AI isn't served by the Chat Completions endpoint, so a Vertex AI connection can't call Claude models.
Last updated on