Skip to content

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

AddressFormatWhat it holds
/data/models.jsonJSONEvery model in the last collection: prices, context window, inputs and outputs, and the provider list price where LiteLLM records one.
/data/changes.jsonJSONThe change log: every price move, model added and model removed, from the first collection this site kept.
/changes.xmlRSS 2.0The newest 60 entries of the change log, for a feed reader or an alert.
/api/collect-statusJSONWhen the last collection ran, whether it was accepted, how many models it held, and the reason when a run is refused.
/api/fxJSONThe 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.in and price.out are the standard input and output prices. cacheRead, cacheWrite, batchIn and batchOut are null when the source does not publish them.
  • null means the source does not publish that price. It is not zero: 0 means the model is free.
  • status is paid, free or nodata.
  • official holds the provider list price recorded in the LiteLLM table, including the above-200K prices, when a model matches it. diverges is true when the OpenRouter price differs from that list price by more than 1%.
  • context is in tokens, created is the Unix time, in seconds, when OpenRouter first listed the model, and collectedAt is a UTC timestamp.
  • In the change log, date is the day of the collection that noticed a change, since is the day of the collection it was compared with, and field is in or out, with from and to giving 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.