Last verified: 2026-12-05
Methodology & Pricing Verification
TokenCostDB reconciles daily LLM, multimodal, and cloud GPU rate cards from official provider documentation, the LiteLLM pricing registry, and the OpenRouter models API, separating direct vendor billing from gateway markups while holding back >50% price swings or unexpected zero-dollar anomalies before publication.
Primary Upstream Sources & Guardrails
| Pricing Domain | Primary Official References | Normalization & Hold Rule |
|---|---|---|
| Direct Vendor LLM APIs | Anthropic Claude, OpenAI, Google Gemini, DeepSeek & LiteLLM dictionary | Normalized to USD per 1M input, output, cache-read, cache-write & 24h batch tokens |
| Gateway Routing Feeds | OpenRouter /api/v1/models live catalog | Labeled Gateway when no direct vendor match exists; rate-limited $0 free tiers excluded from primary paid rank |
| Circuit-Breaker Thresholds | Automated twice-daily sync (06:00 & 18:00 UTC) | Per-model hold on >50% swing or sudden $0; whole-feed abort if <200 models, >20% shrinkage, or >10% anomalies |
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. Models billed per song, image, or video second are routed to /multimodal/ rather than listed as $0 per token.
2. Prompt Cache, Batch & Reasoning Assumptions
Unlike simplistic token tables 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 discounts where vendors expose them, and apply a reasoning multiplier to account for hidden chain-of-thought 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 parameter class, assume realistic 35% average cluster utilization to accommodate diurnal traffic peaks rather than 100% synthetic saturation, and include editable monthly DevOps and observability overhead ($250/mo default).
4. Scope & Estimation Boundaries
All outputs on TokenCostDB are engineering planning estimates. Long-context tier surcharges (such as prompts exceeding 128K or 200K tokens on select providers), enterprise committed-use discounts, cloud marketplace markups, and regional taxes can alter your final invoice. Always confirm production rate cards directly with your chosen API or GPU provider.
Frequently Asked Questions
What happens if an upstream pricing feed reports an unexpected $0 rate or >50% price swing?
Our automated sanity-check circuit breaker holds that specific model at its last verified price, logs a review alert, and displays the exact date that rate was last confirmed rather than publishing unverified zeroed data.
Do TokenCostDB formulas replace AWS Bedrock, Google Vertex AI, or enterprise contract quotes?
No. Direct rates reflect public pay-as-you-go vendor documentation and OpenRouter gateway endpoints. Managed cloud marketplaces, provisioned throughput units (PTUs), committed-use contracts, and regional taxes can change final billing.