Create a key
Open API Keys and create a key. The usual flow is:- Enter a name. Use the project name, environment, or tool name, such as
prod-weborcursor-local. - Set an expiration date. Temporary test keys should use a short expiry.
- Set a quota. Unlimited quota is on by default; turn it off and enter a cap when you want cost control.
- Restrict models and source IPs when needed. Only allow the models your project needs, or fixed egress IPs.
- Choose a group. Groups are only for organizing keys in the list; they do not affect permissions, quota, or routing.
- Create multiple keys if needed. Fill in the quantity when you want several keys with the same settings.
If your page shows “Cross-group retry”, it is only for automatic fallback. The group itself is still just a management label.
Use a key
OpenAI-compatible requests use:Bearer prefix.
Manage keys
- View usage for a key.
- Edit quota, expiration, model limits, IP limits, and group.
- Disable a key temporarily.
- Delete exposed or unused keys permanently.
Security practices
- Use separate keys for development, production, automation, and external clients.
- Set quota limits for browser plugins, desktop clients, and temporary tests.
- Store keys in environment variables or a secret manager.
