$T TokenCostDB

Last verified: 2026-11-30

Methodology & Pricing Verification

TokenCostDB normalizes pricing daily from two primary public sources: the LiteLLM open-source vendor pricing dictionary (cross-linked to official OpenAI, Anthropic, Google, DeepSeek, xAI, Mistral, and DashScope pricing pages) and the live OpenRouter /api/v1/models catalog.

1. Direct Official vs. Gateway Attribution

When a model matches an official direct provider entry in LiteLLM, we display the direct vendor rate as primary and expose OpenRouter’s gateway rate alongside the percentage spread. Models without a direct vendor dictionary match are clearly labeled Gateway.

2. Prompt Cache, Batch & Reasoning Assumptions

Unlike simplistic calculators that ignore prompt cache write costs, our simulator lets you toggle cache-write refresh overhead (10% default refresh rate), apply real 24-hour Batch API rates where vendors expose them, and apply a reasoning multiplier to account for hidden thinking tokens billed at output rates.

3. GPU Break-Even Utilization Baseline

GPU self-hosting estimates multiply hourly GPU rates by 730 hours/month, enforce minimum VRAM footprints per model class, assume realistic 35% average cluster utilization (to accommodate traffic peaks rather than 100% synthetic saturation), and include editable monthly DevOps/monitoring overhead ($250/mo default).

4. Sanity Check Circuit Breaker

Every automated sync checks each price before anything is published. If a paid model drops unexpectedly to $0, or an input or output rate moves more than 50% from the last accepted price, that model stays at its last accepted price until a person reviews the change, and its page shows the date that price was last verified. If the catalog shrinks by more than 20%, or more than 10% of models look anomalous at once, the whole update is rejected.