1. Home
  2. Documentation
  3. AI Gateway
  4. API Keys

API Keys

Manage the credentials the gateway uses to authenticate with LLM providers.

The API Keys module centralizes the credentials that AI Gateway uses to authenticate with LLM provider APIs (OpenAI, Gemini, Anthropic, Azure OpenAI, and Bedrock). Each API Key is linked to a single provider and later referenced by LLM Providers.

NOTE

Register API Keys before configuring LLM Providers. Each provider configuration requires an existing key.

Learn how to:

Listing

The API Keys page lists all registered credentials with pagination. You can filter by:

  • Provider (optional): LLM provider the key belongs to. Available values are All Providers (no filter), OpenAI, Gemini, Anthropic, Azure OpenAI, and Bedrock.

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

Columns shown in the table:

  • Provider: provider associated with the key.
  • API Key ID: internal key identifier generated by the gateway when you register it.
  • Created At: creation date and time in your time zone.
  • Actions: Edit and Delete icons for each row.

Create API Key

Step 1

On the API Keys page, click Create API Key.

Step 2

Fill in the Create API Key form fields (see Form fields).

Step 3

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

Edit API Key

In the Actions column of the row you want, click the Edit icon. The Update API Key form appears without the previously registered API Key value. The Provider field is immutable after registration. To change the provider, delete the current key and create a new one. Edit the API Key field and click Save.

Delete API Key

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 API key?" dialog.

IMPORTANT

Deletion is permanent and cannot be undone. If an LLM Provider references the key, routes that depend on that provider start failing. Update or remove dependent configurations before deleting the key.

Form fields

The table below covers all fields in the creation and edit forms.

Field
Type
Required
Rules
ProviderSelect (enum)Yes, only during creationValues: OpenAI, Gemini, Anthropic, Azure OpenAI, Bedrock. Immutable after registration.
API KeyText (sensitive)YesMinimum 1 character, maximum 4096 characters.
TIP

The gateway treats the key as sensitive information. No screen displays the key in plain text after registration, only the generated API Key ID.

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