llm-prices provides language model pricing data and makes it available through a JSON API.

github.com/simonw/llm-prices
Llm Prices homepage screenshot

About Llm Prices

llm-prices is a GitHub repository that holds pricing data for large language models from various vendors. The data is published as JSON through a current-prices file and a historical-prices file on www.llm-prices.com, which is hosted on Cloudflare Pages.

The data is kept in one file per vendor in the repository's data/ directory. A build script (scripts/build.py) generates the two public JSON files from those vendor files. Each price is given in USD per million tokens, with separate fields for input, output, and cached input pricing. Cached input pricing is null for models that do not offer it.

Key features

  • Current prices JSON file with an updated_at date and model price list
  • Historical JSON file listing all price records, including past changes
  • Input and output prices per million tokens, in USD
  • from_date and to_date fields showing when each price applies
  • Cached input price field, set to null when not offered
  • One data file per vendor, rebuilt into JSON with a script
Best for: Developers and analysts who need LLM price data in a machine-readable form, such as through JSON requests.
Good for
  • Prices are stated per million tokens, with clear units
  • Historical records include start and end dates for each price
  • Each vendor's data is kept in its own file
Watch out for
  • All prices are listed in USD only
  • Cached input pricing is null for models that do not offer it
  • Updated JSON files must be regenerated with the build script after data edits

Llm Prices at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Llm Prices alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Directories & Resources

Well-known listings from the same topic.

All 139

Llm Prices FAQ

Where can the pricing data be accessed?
The current prices are available as JSON at https://www.llm-prices.com/current-v1.json, and the historical prices are at https://www.llm-prices.com/historical-v1.json.
How do the date fields work in the historical data?
from_date is the inclusive start date of a price, and to_date is the exclusive end date, meaning the price was valid up to but not including that date. A null from_date means an initial price with no explicit start, and a null to_date means the price continues with no end date.
How is the JSON data generated?
Vendor files in the data/ directory are edited first. Then the command python scripts/build.py generates the current-v1.json and historical-v1.json files.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing