Skip to main content

Create a key

Open API Keys and click Create API Key. Create one key per tool or app, so you can limit and revoke them separately. Send the key in the Authorization: Bearer YOUR_API_KEY header. Anthropic-format tools may send it as x-api-key instead; both work.

Ready-made tool configs

Click Integration config next to the key to get a config with your key, the base URL and a model ID already filled in, for Claude Code, Codex, OpenCode, Python and cURL. Copy for your agent turns it into instructions you can paste to an AI coding assistant, which then writes the config for you.
The generated config contains your full key. Do not share screenshots of it or commit it to a repository.

When a key stops working

Every one of these returns 401 Invalid token or a 403 error, even with credit in your wallet:
  • the key is disabled, deleted or expired;
  • the key has used up its own quota;
  • the key’s model limits do not include the model you called;
  • the request comes from an IP outside the key’s allowlist.
Check the key’s status, expiry, remaining quota and model list on the API Keys page. See Errors for the exact messages.

Leaked keys

Delete a leaked key right away, create a new one, and update the tools that used it. Calls made with the old key before you deleted it are billed to your account.