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.When a key stops working
Every one of these returns401 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.