Open LLM API price data

Every price on this site, free to download and reuse: today’s rates for 150 chat models from 20 providers, and every price change we have recorded since Jul 13, 2026. JSON and CSV, no sign-up, no API key, refreshed daily.

Files

FileWhat it holds
prices.json · prices.csvCurrent list prices: 217 rows (150 models plus their batch rates where offered).
price-history.json · price-history.csv1005 price points for 236 models, retired ones included. A model gets a new row only on the day one of its rates changes.
trends/feed.xmlRSS feed of the last 30 days of price cuts, increases, new and retired models, one item per day.

The files are rebuilt every time prices refresh, once a day. They are served with open CORS headers, so a browser app or notebook can fetch them directly. The price trends page shows the same history as a readable log.

Fields

All prices are US dollars per 1 million tokens.

  • id: our model id, the same one used in /models/<id> page URLs.
  • input_per_1m, output_per_1m: the standard rates for prompt and completion tokens.
  • cached_input_per_1m: the rate for prompt tokens read from cache. Where a provider publishes none, we store an estimate of 10% of the input rate, as described in the methodology.
  • context_tokens: the context window, rounded to the nearest thousand.
  • batch: true for a model’s batch-API rate, listed as its own row with a -batch id.
  • released: the date the model was first listed.
  • History only: date is the day a price took effect in our data, and removed_on is the first day a model was no longer listed.

Using the data

Load the history into pandas and see how one model’s price moved:

import pandas as pd
df = pd.read_csv("https://www.llmapicosts.com/data/price-history.csv")
df[df.id == "openai-gpt-6-astra"]

Or fetch today’s cheapest models in JavaScript:

const { models } = await (await fetch("https://www.llmapicosts.com/data/prices.json")).json();
models.filter((m) => !m.batch).sort((a, b) => a.input_per_1m - b.input_per_1m).slice(0, 5);

License and citation

The data is released under CC BY 4.0. You can use it for anything, commercial work included, as long as you credit TokenCost with a link to this page.

TokenCost (2026). LLM API price data. https://www.llmapicosts.com/data
@misc{tokencost_llm_prices_2026,
  author = {{TokenCost}},
  title = {LLM API price data},
  year = {2026},
  url = {https://www.llmapicosts.com/data},
  note = {Accessed Nov 29, 2026}
}

What to know

  • Prices come from OpenRouter’s public model list, which carries each provider’s list price. They do not include volume discounts, regional pricing or provider-specific surcharges such as long-context rates.
  • The files hold prices only. Benchmark scores shown elsewhere on the site belong to their publishers (Epoch AI, Artificial Analysis and others) and keep their own licenses.
  • History before Jul 13, 2026 is not available, and a gap of several days between two rows means the price did not change in between.
  • Spotted a wrong price? Tell us and we will check it against the provider’s own pricing page.