Last updated: 2026-06-16
Bearer Token Authentication
All API requests require an API Key in the header:Getting an API Key
- Log in to Crazyrouter
- After signing in, go to the Token Management page
- Click “Create Token”
- Set the token name, quota limit, available models, etc.
- Copy the generated key starting with
sk-
Usage Examples
For OpenAI-compatible access, use
https://api.crazyrouter.com/v1 as the default international address. For East Asia, prefer https://cn.crazyrouter.com/v1. If you are configuring Claude Code, Hermes, OpenClaw, or another client, check API Endpoints first.Token Permission Controls
When creating a token, you can configure:- Name: For easy identification of its purpose
- Quota Limit: Set the maximum available quota
- Expiration Time: Set a validity period
- Available Models: Restrict which models can be called
- IP Whitelist: Restrict the source IPs allowed to make calls