1. Home
  2. Documentation
  3. AI Gateway
  4. LLM Providers

LLM Providers

Configure the AI providers and models the gateway can access.

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.

NOTE

Before 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:

Listing

The LLM Providers page lists registered configurations with pagination. You can filter by:

  • Provider (optional): associated LLM provider. Values: All providers, OpenAI, Gemini, Anthropic, Azure OpenAI, Bedrock.
  • Model (optional): text search by model name.

Use Search to apply the filter and Clear to reset it.

Columns shown in the table:

  • LLM Provider ID: internal configuration identifier.
  • Providers and Models: summary of registered Provider / Model / Priority combinations, separated by |.
  • Created At: creation date and time.
  • Updated At: date and time of the last update, when applicable.
  • Actions: Edit and Delete icons for each row.

Create LLM Provider

Step 1

On the LLM Providers page, click Create LLM Provider.

Step 2

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.

Step 3

If the selected provider is Azure OpenAI or Bedrock, fill in the conditional fields that appear after selection.

Step 4

Click Save to confirm the registration. To discard the operation, click Cancel.

Edit LLM Provider

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.

Delete LLM Provider

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.

IMPORTANT

Deletion is permanent and cannot be undone. Routes that reference the deleted LLM Provider start failing. Update or remove dependent routes before deleting it.

Form fields

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
PriorityIntegerYesBetween 1 and 10 (Priority must be between 1 and 10.). Lower values have higher preference.
ProviderSelectYesValues: OpenAI, Gemini, Anthropic, Azure OpenAI, Bedrock. Changing the provider clears dependent fields (API Key, Endpoint, Region, Guardrail).
ModelTextYesMinimum 1 character, maximum 120 characters.
API KeySelectYesLists 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.
EndpointTextConditional: required when Provider = Azure OpenAIMinimum 1 character, maximum 500 characters.
RegionTextConditional: required when Provider = BedrockMinimum 1 character, maximum 120 characters.
Guardrail identifierTextConditional: optional for Bedrock; required when Guardrail version is providedMinimum 1 character, maximum 120 characters.
Guardrail versionTextConditional: optional for Bedrock; required when Guardrail identifier is providedMinimum 1 character, maximum 120 characters.

Action buttons outside the table:

  • Add provider: adds a new Provider block to the list.
  • Delete icon for each block: removes the corresponding block (disabled when there is only one configuration).
  • Save: saves the creation or edit. Cancel: discards changes.

Conditional fields by provider

The visibility and required state of some fields depend on the Provider selected in each block:

  • Azure OpenAI: shows the required Endpoint field.
  • Bedrock: shows the Region field (required) and the Guardrail identifier + Guardrail version pair (optional as a pair; when you fill in one, the other becomes required).
  • OpenAI, Gemini, and Anthropic: do not require extra fields beyond Priority, Provider, Model, and API Key.
TIP

The 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.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more