API Keys

Give each application its own access and usage limits.

Create a key

New API keys start in your default project. Select or create another project before saving, then configure model restrictions, quota, expiry and provider access. Existing keys keep their original project and historical usage.

Project attribution

A key’s project cannot be changed after creation. Create a new key for a different project so historical usage stays attributable. Workspace requests are paid from the workspace owner’s balance.

Protect credentials

Store keys in server environment variables or a secret manager. Revoke a compromised key and replace it in your applications. Do not paste keys into support tickets or public repositories.