Yabanin Spend Audit

_generated: 2026-09-13 01:50:38 UTC_

Source: /Users/reireirei/PycharmProjects/PythonProject/startup/tokenrouter/datasets/audit/sample_traffic.jsonl

Pricing source: pkg/pricing/bundled.json (historical list prices, seeded from pkg/pricing/pricing.go)

Version: sha256:af4e6cba31df31ac0f6342f3bf17c84482236565d33fa0ce408f8780d929dc5c

As of: unknown

Usage-based estimate, not invoice reconciliation. Cached-token discounts, negotiated rates and provider service tiers are not included in audit totals.

1. Summary

ModelRequestsCostShareUnpriced
gpt-4o449$ 4.2191.4%
claude-3-5-sonnet-latest37$ 0.388.3%
gpt-4o-mini100$ 0.010.3%
internal-finetuned-7b14Unknown0.0%yes
ProviderRequestsShare
openai54991.7%
anthropic378.3%
(unknown)140.0%

2. What we found

3. Cache simulation (exact)

ModelRequestsHit rate
gpt-4o44966.1%
gpt-4o-mini10057.0%
claude-3-5-sonnet-latest3713.5%
internal-finetuned-7b140.0%

4. Routing simulation (rule_tier)

ClassRequests
easy426
hard79
medium95

5. Data quality

6. Recommendations

  1. Investigate the top spenders — The top 1% of requests hold 2.5% of spend; confirm each is intended before scaling it.
  2. Cache the system prefix — 13 repeated prefixes cost $2.03 of prompt tokens; provider prompt caching may discount eligible repeated input; confirm model-specific rates.
  3. Stop paying for errors — 32 error responses billed $0.24 of output tokens.
  4. Enable cache + tier routing — Simulated combined savings of $3.29 (cache $2.59 + routing on misses $2.65; overlap $1.95 not double-counted).