The LLM Gateway is in beta.
custom/<name>. Use a configuration to reach an endpoint that a provider-prefixed model ID cannot address, such as a custom OpenAI-compatible endpoint.
Understand what the gateway uses
A bring-your-own-key gateway call normally targets a model with a provider-prefixed ID such asopenai/gpt-5.4-mini. When the model ID is custom/<name>, the gateway reads the following from the saved configuration instead:
- Provider and model: The gateway sends the configuration’s model name upstream, replacing the
custom/<name>value in the request body. - API key secret: The gateway authenticates to the provider with the workspace secret named in the configuration.
- Connection settings: The base URL, the OpenAI provider API (Chat Completions or Responses), and the Vertex AI project and location, where the provider uses them.
Call a configuration through the gateway
Usecustom/<name> as the model ID in any standard gateway request, replacing <name> with the configuration’s exact name as shown in Settings > Model configurations:
GET /v1/models list, so share configuration names with developers directly.
If a model access policy applies to the request, the policy must allow saved model configurations, or the gateway returns a 403 response.
Use a configuration in a fallback chain
A fallback chain can use a saved configuration in two places:- As the primary model: Select the configuration as the chain’s primary model. Requests to
custom/<name>then fail over to the chain’s backup models. - As a fallback candidate: Add the configuration as one of the backup models. Requests to the chain’s primary model ID can then fail over to the configuration’s endpoint.
custom/<name> and attach a chain to that configuration. For the steps, see Set fallbacks for a prompt.
See also
- Manage model configurations: create, edit, and delete configurations; configure OAuth client credentials; manage organization-scoped configurations.
- Model fallbacks: retry failed requests against backup models and configurations.
- API formats: supported request and response formats, model ID syntax, and translation behavior.
Connect these docs to your agent of choice via MCP for real-time answers.

