API Keys
Creating an API Key
Click "+ Create API Key", fill in the name (required), and optionally configure the credit limit, reset period, and expiration. The key is generated after saving.
Go to the API Keys page and click "+ Create API Key". Fill in the name (required), and optionally set a credit limit, reset period, and expiration. The key is generated after saving.
Credit Limit and Reset Period
- Credit Limit: the maximum spend (USD). Once reached, the key is automatically disabled.
- Reset Period: the reset cycle, with options
Never / Daily / Weekly / Monthly. This can only be set when Credit Limit > 0. When Credit Limit is empty or 0, the reset period group is grayed out and fixed to Never.
Expiration
The expiration can be set to: No expiration / 30d / 60d / 90d / 180d / 1 year / Custom date.
Key Format
The format is sk- + 6 random characters + ****...**** + 4 random characters (e.g. sk-Ab3mN7y****...****kP1wR7t). In the list, it is displayed in masked form.
The full key is only shown once at creation. Never paste it into chat tools, screenshots, or code repositories.
Enabling / Disabling / Deleting
Each row in the key list lets you click Enable/Disable to toggle the state, or click Delete and confirm to delete.
In the key list, click Enable/Disable to toggle the active state, or click Delete and confirm to delete it. After being disabled, the key retains all its configuration but can no longer pass API authentication.
What If My Key Is Leaked?
If you suspect your key has been leaked, immediately Disable it on the API Keys page to cut off calls, or Delete it permanently. We also recommend configuring a credit limit and a model / provider allowlist via Guardrails to further reduce risk.