Overview
ARouter uses two types of keys:
Management keys can create API keys with scoped access:
- Allowed providers — e.g. only OpenAI and Anthropic
- Allowed models — e.g. only
gpt-5.4andclaude-sonnet-4.6 - Spending limits — max budget per day/week/month
- Expiry — auto-expire after a date
Create an API Key
- cURL
- Python
- Go
- Node.js
The
key field is only returned once at creation time. Store it securely — you cannot
retrieve it later.Response
List API Keys
page_size, page_token, and offset query parameters.
Update an API Key
name, disabled, limit, limit_reset, allowed_providers, and allowed_models.