Skip to content

API Keys

API keys are the primary authentication mechanism for clients calling the gateway’s AI endpoints. Each key can be scoped to specific capabilities, given a rate limit, and set to expire automatically.

API Key List

The API Keys page displays a searchable, paginated table with the following columns:

ColumnDescription
NameA human-readable label for the key
PrefixThe first characters of the key (e.g. sk-abc...) for identification
ScopesWhich API capabilities this key can access; “All” if unrestricted
Statusactive, revoked, or expired
CreatedWhen the key was generated
Last UsedTimestamp of the most recent request using this key, or “Never”

Creating an API Key

Click Create API Key to open the creation form:

FieldRequiredDescription
NameYesA descriptive label (e.g. “Production API Key”, “CI/CD Pipeline”)
Expires InNoWhen the key should automatically expire
Rate LimitNoMaximum requests per minute; 0 or blank means unlimited
ScopesNoWhich capabilities this key can access; leave empty for full access

Expiration Options

OptionDuration
NeverKey does not expire
30 daysExpires after 30 days
90 daysExpires after 90 days
180 daysExpires after 180 days
1 yearExpires after 365 days

Available Scopes

Scopes restrict which gateway endpoints the key can call:

ScopeEndpoints
chat/v1/chat/completions, /v1/messages
completions/v1/completions
embeddings/v1/embeddings
images/v1/images/generations
audio/v1/audio/transcriptions, /v1/audio/translations, /v1/audio/speech
models/v1/models
admin/api/admin/*

A key with no scopes selected has unrestricted access to all endpoints.

Copying the Key

After creation, the full API key is displayed exactly once in a modal dialog. You must copy it immediately — the gateway stores only a hashed version and cannot retrieve the plaintext key later.

The modal includes a Copy button that uses the clipboard API. A confirmation indicator appears when the key has been copied successfully.

Revoking a Key

Click Revoke on any active key to permanently disable it. A confirmation dialog warns that applications using this key will immediately lose access. Revocation is irreversible — you cannot re-enable a revoked key.

Revoked keys remain visible in the list with a revoked status tag for audit purposes.

Key Statuses

StatusMeaning
activeKey is valid and accepting requests
revokedKey has been manually revoked; requests are rejected
expiredKey has passed its expiration date; requests are rejected

Best Practices

  • Use descriptive names that identify the application or environment (e.g. “staging-backend”, “analytics-service”).
  • Set expiration dates for keys used in non-production environments.
  • Apply the principle of least privilege by scoping keys to only the capabilities they need.
  • Rotate keys periodically by creating a new key, updating your application, and revoking the old one.
  • Monitor the Last Used column to identify unused keys that can be safely revoked.