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), the Vertex AI project and location, and the Preferred Bedrock Endpoint for Amazon Bedrock, where the provider uses them. Only the gateway reads the Bedrock endpoint setting.
Choose a configuration type
The gateway can call configurations for these providers:- Custom endpoints: OpenAI-compatible, Anthropic-compatible, and TypeSafe-compatible endpoints.
- Built-in providers: Anthropic, Amazon Bedrock, Fireworks, Gemini Enterprise Agent Platform, Google Gemini, OpenAI, TypeSafe, and xAI.
- OpenAI-compatible: the base URL is the API root. The gateway appends the request path, such as
/chat/completions, without adding/v1, so include/v1in the base URL if the server expects it. - Anthropic-compatible: the gateway sends requests to the URL exactly as entered, so enter the full Messages endpoint, such as
https://example.com/v1/messages. Only Messages requests are supported. - TypeSafe-compatible: the gateway appends
/v1/systemoneunless you clear Append /v1/systemone, in which case it uses the URL exactly as entered.
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.
A saved configuration can also be the primary model or a backup model in a fallback chain. For the steps, including how to give a Playground prompt its own fallback behavior, see Model fallbacks.
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.

