What are API Keys
API Keys are secure tokens required to authenticate and make requests to the AI Router. You can provision multiple API keys for different environments (production, staging, development), purposes, or team members, providing granular control and auditing of who accesses the AI Router. With API Keys, you can:- Authenticate requests to the AI Router
- Control access by environment or team
- Set optional budget limits to prevent unexpected costs
- Track usage and consumption per key
Creating an API Key
To create your API keys:- Navigate to the API Keys page in the AI Router
- Choose Create API Key, the following modal opens:

- A unique Name for the key
- An optional Expiration Date for the key
Setting Limits
API Keys support optional spending limits to control costs and prevent unexpected usage:- Cost Limit (in USD): Caps the total spend for requests made with this key.
- Token Limit: Caps the total number of tokens consumed.
- Requests/Min: Caps the number of requests within a rolling 60-second window.
- Reset Limit Period: Defines when the Cost and Token counters reset, allowing recurring budget allocations for different teams or projects. Does not apply to Requests/Min, which always uses a 60-second window.
Managing API Keys
API Keys can be created, viewed, and managed from the dedicated AI Router page to ensure secure access.
- To disable an API Key, use the Toggle, it can be re-enabled at any time.
- To delete an API Key, use the
...button, and choose Delete to revoke an API Key. - To see details of the consumption for your API Key, use the
...button, and choose Overview. Here you can see the current usage and limits for the selected key.
Caution: Revoking an API key is permanent and cannot be undone. Make sure the key is not being used by any applications before revoking it.