The LLM Providers module defines the set of models and providers that AI Gateway can invoke when a route is triggered. Each provider is a reusable configuration that groups one or more provider + model + API Key combinations with different priorities. This helps you define failover strategies or balance requests across models.
NOTEBefore creating an LLM Provider, register the API Keys for the providers you want to use. The form only lets you save when at least one key exists for each selected combination.
Learn how to:
The LLM Providers page lists registered configurations with pagination. You can filter by:
Use Search to apply the filter and Clear to reset it.
Columns shown in the table:
Provider / Model / Priority combinations, separated by |.Fill in the first Provider with the required fields (see Form fields). Use Add provider to add extra configurations with different priorities, and use the delete icon to remove rows. The configuration with the lowest Priority has the highest preference.
If the selected provider is Azure OpenAI or Bedrock, fill in the conditional fields that appear after selection.
In the Actions column of the row you want, click the Edit icon. The Update LLM Provider form opens with all configurations prefilled. Change the required fields, add or remove provider rows, and click Save.
In the Actions column of the row you want, click the Delete icon. Confirm the operation in the "Are you sure you want to delete this LLM provider?" dialog.
IMPORTANTDeletion is permanent and cannot be undone. Routes that reference the deleted LLM Provider start failing. Update or remove dependent routes before deleting it.
The form is made up of a list of provider configurations. At least one is required. Each Provider block repeats the fields in the table below.
Field | Type | Required | Rules |
|---|---|---|---|
| Priority | Integer | Yes | Between 1 and 10 (Priority must be between 1 and 10.). Lower values have higher preference. |
| Provider | Select | Yes | Values: OpenAI, Gemini, Anthropic, Azure OpenAI, Bedrock. Changing the provider clears dependent fields (API Key, Endpoint, Region, Guardrail). |
| Model | Text | Yes | Minimum 1 character, maximum 120 characters. |
| API Key | Select | Yes | Lists the keys registered in API Keys filtered by the selected provider. When there are no keys for the provider, it shows No API Keys are registered for the selected provider. In this case, register a key before continuing. |
| Endpoint | Text | Conditional: required when Provider = Azure OpenAI | Minimum 1 character, maximum 500 characters. |
| Region | Text | Conditional: required when Provider = Bedrock | Minimum 1 character, maximum 120 characters. |
| Guardrail identifier | Text | Conditional: optional for Bedrock; required when Guardrail version is provided | Minimum 1 character, maximum 120 characters. |
| Guardrail version | Text | Conditional: optional for Bedrock; required when Guardrail identifier is provided | Minimum 1 character, maximum 120 characters. |
Action buttons outside the table:
The visibility and required state of some fields depend on the Provider selected in each block:
TIPThe Guardrail pairing rule prevents ambiguous configurations. To disable the guardrail, clear both fields. They become optional again, and the set is not sent when you save.
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more