Navigate to API Keys in the dashboard sidebar to manage your keys.
Create a Key
- Click Create Key
- Enter a name (e.g., “Production”, “Development”)
- Optionally set scopes to restrict what the key can access (e.g., completions only)
- Optionally set rate limits and spending caps for this specific key
- Copy the key — it won’t be shown again
Store API keys securely. Use environment variables or a secrets manager. Never commit keys to source control.
| Prefix | Environment | Billing |
|---|
theo_sk_live_ | Production | Billed per token |
theo_sk_test_ | Sandbox | No billing, lower rate limits |
Key Management
- Revoke — instantly disable a key (takes effect within seconds)
- Rename — update the display name
- View usage — see per-key usage statistics, cost, and request counts
- Edit limits — adjust rate limits and spending caps per key
Key Rotation
To rotate a key without downtime:
- Create a new key
- Update your environment variables
- Verify traffic flows through the new key
- Revoke the old key
Both keys work simultaneously during the transition.
Programmatic Key Management
You can also create keys via the API: Create API Key.