AI providers · Read with a key
OpenRouter
Daily OpenRouter spend and token usage by model, endpoint, workspace and API key, plus the credit balance, from OpenRouter's activity, credits and keys endpoints. OpenRouter is a reseller, so its charges are recorded as billing for the provider "openrouter" with the upstream model kept as the model. A request that went through OpenRouter is billed by OpenRouter only: it is never merged with or added to a direct OpenAI or Anthropic connection's bill. Send telemetry for such requests with provider "openrouter" so it is compared with this bill and not with the upstream provider's. Inference paid with your own provider key (BYOK) is billed by that provider and is not counted here.
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- API key or token
- What it covers
- billed cost, provider-reported usage
- Money
- The vendor's billed amount
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- Completed UTC days only: a day appears after it ends. History is limited to 30 days.
- History on first sync
- Up to 30 days
- Not included
- customer, feature, end user
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- In OpenRouter open Settings → Management Keys and create a key with Read only access.
- Paste the key here. It is encrypted at rest and never shown again (only a masked hint).
- We call GET /api/v1/activity, /api/v1/credits and /api/v1/keys only.
- If your services send telemetry for requests routed through OpenRouter, set provider to "openrouter" on those events.
What it needs
An OpenRouter management key with read access (Read only is enough). An organization-scoped key reads every workspace and the credit balance; a workspace-scoped key reads its own workspace and cannot read credits. Management keys cannot make model requests.