Skip to content

Canonical database

All pricing data lives in the repository under database/, normalized from OpenRouter and LiteLLM and refreshed every six hours by the sync service. The SDKs, the CLI, the dashboard, and the notifier all read from these files — there is no separate backend.

Layout

PathContent
database/current/prices.jsonThe canonical model catalog with current prices
database/history/prices-<timestamp>.jsonImmutable snapshots, one per sync
database/changelog/latest.jsonDiff summary of the most recent sync window
database/current/openrouter.json / litellm.jsonRaw upstream payloads from the last sync

Raw access (no authentication required):

https://raw.githubusercontent.com/Atena-IT/tokenpricing/main/database/current/prices.json
https://raw.githubusercontent.com/Atena-IT/tokenpricing/main/database/changelog/latest.json

Model record

json
{
  "provider": "anthropic",
  "model_id": "anthropic/claude-opus-4",
  "display_name": "Anthropic: Claude Opus 4",
  "pricing": {
    "input_per_million": 15.0,
    "output_per_million": 75.0,
    "cache_read_per_million": 1.5,
    "cache_creation_per_million": 18.75,
    "currency": "USD"
  },
  "context_window": 200000,
  "max_output_tokens": 32000,
  "model_type": "text",
  "supports_vision": true,
  "supports_function_calling": true,
  "supports_streaming": true,
  "category": "flagship",
  "sources": { "openrouter": { "...": "..." } }
}

Model types

model_type follows the OpenRouter output-modality taxonomy:

TypeMeaning
textChat / completion language models
imageImage generation and editing
embeddingsVector embedding models
audioGeneral audio models
videoVideo generation
rerankSearch-result reranking
speechText-to-speech
transcriptionSpeech-to-text

category is an editorial tier: budget, standard, or flagship.

Changelog

database/changelog/latest.json summarizes the latest sync window with per-model change entries typed as model_added, model_removed, pricing_changed, or cache_price_changed — the same events the notifier delivers to webhooks, and what the dashboard's Changelog tab renders.

Browsing

The live dashboard provides a sortable explorer over the full catalog, two-model comparison, a cost calculator, price history charts built from the snapshots, and the changelog.

Pricing data synchronized from OpenRouter and LiteLLM every six hours.