Skip to main content
Every API response from ARouter includes detailed usage information. This lets you track costs and token consumption in real time without making additional API calls.

Usage in Responses

The usage object is returned in every non-streaming response (and in the final chunk of streaming responses):

Token Fields

Cost Tracking

ARouter bills based on the actual token counts reported by the upstream provider. Pricing is passed through at cost — no inference markup. To calculate exact cost:
Cached tokens are typically billed at a reduced rate (often 50% of the standard input price). See Prompt Caching for details.

Streaming Usage

In streaming mode, the final SSE chunk includes the full usage object with empty choices:
Enable streaming usage by passing stream_options: { include_usage: true } in your request.

Dashboard Reporting

All usage data is visible in the Activity page with filtering by:
  • Time period (1 hour → 1 year)
  • Grouping (Model, API Key, Creator)
Export as CSV or PDF for accounting and budget planning. See Activity Export.

API Access

Retrieve transaction history and balance programmatically: