Price data: JSON files and RSS feed
The price table, the change log and the collection status as plain files, with the units and the times you need to read them.
Collected from the OpenRouter models API (476 entries). 104 models are cross-checked against provider list prices in the LiteLLM price table.
The files
| Address | Format | What it holds |
|---|---|---|
/data/models.json | JSON | Every model in the last collection: prices, context window, inputs and outputs, and the provider list price where LiteLLM records one. |
/data/changes.json | JSON | The change log: every price move, model added and model removed, from the first collection this site kept. |
/changes.xml | RSS 2.0 | The newest 60 entries of the change log, for a feed reader or an alert. |
/api/collect-status | JSON | When the last collection ran, whether it was accepted, how many models it held, and the reason when a run is refused. |
/api/fx | JSON | The PTAX selling rate used for prices in reais, with its date and bulletin. |
Reading the price file
- Prices are in US dollars per 1 million tokens, as OpenRouter lists them.
price.inandprice.outare the standard input and output prices.cacheRead,cacheWrite,batchInandbatchOutarenullwhen the source does not publish them. nullmeans the source does not publish that price. It is not zero:0means the model is free.statusispaid,freeornodata.officialholds the provider list price recorded in the LiteLLM table, including the above-200K prices, when a model matches it.divergesistruewhen the OpenRouter price differs from that list price by more than 1%.contextis in tokens,createdis the Unix time, in seconds, when OpenRouter first listed the model, andcollectedAtis a UTC timestamp.- In the change log,
dateis the day of the collection that noticed a change,sinceis the day of the collection it was compared with, andfieldisinorout, withfromandtogiving the old and the new price.
When the numbers update
The site collects once a day, at 06:23 UTC. Each collection is compared with the one before, and it is saved only when it passes two checks: it must not hold more than 20% fewer models than the last saved one, and at least 80% of its models must carry a price. A run that fails either check is refused, and the previous files stay in place. /api/collect-status shows the result of the last run.
Judge how old the data is by collectedAt, not by the time of your download. Browsers may keep the data files for 30 minutes, so a reload does not always fetch a new copy.
Sources and credit
The file names its sources in the sources field. The catalogue and the routing price come from the OpenRouter models API. Provider list prices, batch prices and the above-200K prices come from the LiteLLM price table, published under the MIT licence. The Intelligence Index is produced by Artificial Analysis and relayed by OpenRouter. The reais rate is the PTAX selling rate of the Banco Central do Brasil.
Keep that credit if you republish any of it, and confirm a price on the provider’s own pricing page before you rely on it for a bill.
The quality column shows one third-party score, the Intelligence Index: a single number per model, credited to Artificial Analysis (linked on the About page). The site does not copy Artificial Analysis’s charts, methodology or other benchmark tables. Its reuse terms are Artificial Analysis’s, so read them there before you reuse the number. No second quality score is shown: a figure from another source is added only after that source’s reuse terms have been read at the source.
Reading the file in code
// text: the content of /data/models.json, already saved by your own tool
const { collectedAt, models } = JSON.parse(text);
// price.in and price.out are USD per 1M tokens; null means no published price
const priced = models.filter((m) => m.price.in !== null);Questions and answers
Do I need an API key to read the data?
No. The files are served without an account or a key. The price file is refreshed once a day, and a browser may keep its copy for 30 minutes.
Why is a price null instead of zero?
A null means the source does not publish that price for the model, so the file leaves the field empty rather than guessing. A zero means the model is free for that token type.
How do I know whether the last collection worked?
Read /api/collect-status. It gives the time of the last run and whether it was accepted. A refused run carries the reason, and the previous files stay in place.
Can I get the prices in reais from the files?
The price file is in US dollars. The reais rate comes from /api/fx: the PTAX selling rate of the Banco Central do Brasil, with its date and bulletin. Convert with that rate, and expect your bank to apply another one.
Keep going
- Price tableEvery model and its price, sorted by your monthly bill.
- Cost calculatorYour bill on up to four models, what switching saves and how long a budget lasts.
- Cheapest modelsThe five lowest-cost models in each category.
- Free modelsModels listed at zero price, kept apart from the paid ones.
- Price changesA dated log of every price that went up or down.
- Caching and batch discountsHow the two discounts work and what you save.
- Long-context pricingModels that read very long prompts, and what they charge.