APIs / LLM Prices API
Tokens
LLM Prices API

What every major model costs per million tokens

Published input and output price for each tracked model, with the page it was verified against. Free, no key.

GET/api/v1/modelslive
{
  "unit": "usd_per_million_tokens",
  "tier": "standard",
  "models": [
    {
      "lab": "…",
      "model_id": "…",
      "input_per_mtok": …,
      "output_per_mtok": …,
      "verified_date": "…"
    }
  ]
}
$0Every API, every field
No keyCall it straight away
1,000Requests a day per IP
DailyHow often it updates

Fields

FieldTypeWhat it is
models[].labstringThe lab that publishes the model
models[].model_idstringThe lab’s own model id
models[].input_per_mtoknumberUSD per million input tokens, standard tier
models[].output_per_mtoknumberUSD per million output tokens
models[].verified_againsturlThe official page the price was read from
models[].verified_datedateWhen it was last checked by hand

Calls to try

/api/v1/models/api/v1/datasets/llm.csv
Good to knowLatest; per-model history on the site. Formats: JSON, CSV. Please credit “Data: Price of Compute, priceofcompute.com”.

What people build with it

Model choicePick a model on price, and see when it changes
Cost modelsPrice a workload across labs
TrackingA dated record of token prices

Related APIs

Same data on the site: See model prices. Full reference: API docs. How the numbers are made.