
Usage Accounting Cost Attribution
OpenRouter · OpenRouter
LLM routing and aggregation — OpenRouter
Evaluates OpenRouter's Usage Accounting & Cost Attribution across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's LLM routing and aggregation eval coverage.
About OpenRouter
OpenRouter is a unified LLM routing layer that gives developers access to hundreds of models through a single OpenAI-compatible API. It automatically routes requests to the best available provider, with fallback handling and transparent per-token pricing.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Finance reconciles nightly spend vs internal token counters; is_byok false on pooled routes. | usage.cost reflects OpenRouter-billed amount for platform-routed traffic; reconcile with dashboard credits and generation API records. | Pass / FailBillingcritical |
| 02 | Prompt cache hits spike after RAG template stabilization; need accurate marginal cost. | Explain cached_tokens reduces billed prompt cost per documented pricing; do not sum cached_tokens into regular prompt_tokens twice. | Pass / FailBillinghigh |
| 03 | Dispute on invoice line item; only generation id logged in proxy. | Pull model slug, provider path, token counts, cost, timestamps, and BYOK flags matching completion response usage. | Pass / FailObservabilitymedium |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric.
Rubric criteria
- Openrouter
- Ai Platform
- Usage Accounting Cost Attribution
Recommended for
Works with
Related evals
Claude API
Evaluates Anthropic's Batch API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Extended Thinking across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Files API & Citations across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
ViewFrequently asked questions
What does the Usage Accounting Cost Attribution eval for OpenRouter OpenRouter test?+
Evaluates OpenRouter's Usage Accounting & Cost Attribution across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's LLM routing and aggregation eval coverage.
How is the Usage Accounting Cost Attribution eval scored?+
The judge rubric: Grade against expected.ideal_behavior and expected.rubric.
How many test cases does this eval pack include?+
The Usage Accounting Cost Attribution pack for OpenRouter OpenRouter contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.
How do I run this eval?+
Sign up for Corsac, connect your model or agent endpoint, and run the Usage Accounting Cost Attribution pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.