Skip to main content

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.4 and claude-sonnet-4.6
  • Spending limits — max budget per day/week/month
  • Expiry — auto-expire after a date

Create an API Key

The key field is only returned once at creation time. Store it securely — you cannot retrieve it later.

Response

List API Keys

Supports pagination with page_size, page_token, and offset query parameters.

Update an API Key

You can update name, disabled, limit, limit_reset, allowed_providers, and allowed_models.

Delete an API Key

Deleted keys are immediately invalidated and cannot be restored.

Use Cases