Skip to main content

Create an API Key

API keys authenticate requests to the serverless gateway. Create a separate key for each application or environment so you can revoke individual keys without disrupting others.


Create a key

  1. In the left sidebar under Serverless Inference, click API Keys.
  2. Click + Create API Key.
  3. Enter a Name that identifies the key's purpose (e.g. prod-backend, dev-testing).
  4. Under Permission, select the models this key is allowed to call. Click Select all to grant access to every model, or uncheck specific models to restrict access.
  5. Click Create.

Create an API Key dialog

warning

Copy the key immediately after creation — it is displayed only once and cannot be retrieved later. Store it in a secure location such as an environment variable or secrets manager.

info

The Create button is disabled if your workspace balance is $0. Top up your balance via Billing before creating a key.


View existing keys

The API Keys page lists all keys for the workspace:

ColumnDescription
NameThe label you gave the key when creating it
KeyMasked key value — hover or click the copy icon to copy
StatusActive or Revoked
Created atDate the key was created
ActionsDelete the key

API Keys list


Revoke a key

  1. On the API Keys page, find the key you want to revoke.
  2. Click the Delete icon in the Actions column.
  3. Confirm the deletion.

Revoked keys are rejected immediately by the gateway. Any requests in flight using the revoked key will fail with HTTP 401.


What's next