Create a Key
- Open the Cloud Console and go to API Keys in the left nav.
- On paid accounts, select a project first. The key inherits that project’s rate limits and usage tracking.
- Click Generate API Key, give it a descriptive name, and confirm.
- The key is created and appears in the list. The list shows a truncated preview, but you can copy the full key at any time by clicking the copy icon next to it.
Use the Key
Set theCEREBRAS_API_KEY environment variable, or pass the key in the Authorization: Bearer <key> header on direct HTTP requests. See the Authentication guide for SDK initialization and shell setup.
Rotate or Delete a Key
API keys do not expire. Store them in a secrets manager and rotate them periodically. To rotate a key, create a new one, update your application to use it, then delete the old one. To delete a key, click the delete icon next to it on the API Keys page. Deletion is immediate and permanent — any application still using the key will receive401 Unauthorized errors.
