Measured Lab Ledger

AI model prices for your tools

Use dated price files in your gateway, coding tool or cost dashboard. Each Ledger price includes its source and the date it was read.

New releases are published when the site has new data, usually daily. Reviewing the data for your team rather than connecting a tool? See what to check.

Latest release

The two “through” dates are the newest data in this release. Inside the file, each price also keeps the date it was read from its source, which can be earlier. Test-request data comes from Measured Lab’s own test requests to models: time to first token, output speed and success share.

Key terms on these pages
Release
A dated Ledger file with prices, limits and test-request results. Each release has its own address under /ledger/v/; /ledger/latest.json is the newest one.
Read date
The date a price was read from its source (observed_at). It can be earlier than the release date.
Channel
Where a model is offered and billed: the provider’s own API or OpenRouter.
Compatibility file
A file in the format LiteLLM, opencode or genai-prices expects. It keeps the tool’s original catalog and adds published Measured Lab values where the model and price field match.
Last checked release
last-good.json points to the latest release that passed both the LiteLLM and opencode checks. It is not a price catalog.
Announced price
A future price a provider has announced, recorded with its start date and kept separate from the price listed now.
Unknown
A price that is not available is null with a reason, never a substitute zero.
Signature
A .sig file. With OpenSSH and the public signing key it shows whether a file has changed since it was signed.

Connect your tool

Choose the tool you use. Each compatibility file keeps its original catalog and adds published Measured Lab values where the model and price field match. Not every model or field is covered. Check the model and channel you use.

Why each tool shows fewer models than the full release: only matching models are updated, and OpenRouter prices are not included. Other entries in your tool’s catalog stay as they were. Full source quotes are in the Ledger release. The compatibility files use the formats their tools expect.

LiteLLM

Set this variable before starting the Python SDK or proxy. It tells LiteLLM where to load its cost map.

export LITELLM_MODEL_COST_MAP_URL=https://measuredlab.com/ledger/compat/litellm.json

Measured Lab models mapped in this release: 21.

LiteLLM step by step
  1. Check that your model is covered: open the model mapping file /ledger/compat/litellm.mapping.json and look for it under confirmed. Models that are not listed keep the prices from LiteLLM’s own catalog.
  2. Set the variable above in the same shell or service environment that starts the proxy or your Python application, then start it. LiteLLM then calculates costs for the mapped models with the prices in this file.
  3. See which LiteLLM version passed with this release in Compatibility results.
  4. The file at this address changes when a new release is published. To stay on one release, see how to choose a release URL.

opencode

Set the catalog base URL before starting opencode. The client adds /api.json to this address.

export OPENCODE_MODELS_URL=https://measuredlab.com/ledger/compat/models-dev

Measured Lab models mapped in this release: 20.

opencode step by step
  1. Check that your model is covered: open the model mapping file /ledger/compat/models-dev.mapping.json and look for it under confirmed. Models that are not listed keep the prices from opencode’s own catalog.
  2. Set the variable above in your terminal and start opencode. It reads /ledger/compat/models-dev/api.json and lists the mapped models with their Measured Lab input and output prices.
  3. To use a local catalog instead, download and verify the catalog (see Verify a file), then set OPENCODE_MODELS_PATH to its local file path before starting opencode.
  4. See which opencode version passed with this release in Compatibility results.

genai-prices

Use UpdatePrices in your Python application to load this catalog. Keep the updater active while your application uses the prices.

from genai_prices import UpdatePrices

with UpdatePrices(
    url="https://measuredlab.com/ledger/compat/genai-prices.json"
) as prices:
    prices.wait()
    print("Price data loaded.")

Measured Lab models mapped in this release: 12.

genai-prices step by step
  1. Check that your model is covered: open the model mapping file /ledger/compat/genai-prices.mapping.json and look for it under confirmed. Models that are not listed keep the prices from genai-prices’s own catalog.
  2. Run the example above. When prices.wait() returns, it prints Price data loaded. Calculate prices inside the with block, while the updater is active. The library setup guide shows how.
  3. Source details for the mapped entries are in a separate file, genai-prices.measuredlab.json; full quotes are in the Ledger release.
  4. To keep a local copy, download the catalog with curl and check it with its signature (see Verify a file):
    curl -fsSLO https://measuredlab.com/ledger/compat/genai-prices.json

Prometheus

Add this job to the scrape_configs list in your Prometheus configuration. It reads published unit prices and test-request measurements; your own usage metrics are needed to calculate your costs.

scrape_configs:
  - job_name: measuredlab
    scheme: https
    metrics_path: /ledger/prometheus/metrics
    scrape_interval: 1h
    static_configs:
      - targets: ["measuredlab.com"]
Prometheus step by step
  1. Open the metrics in your browser. Each metric has a short description line; the price metrics are in USD per 1M tokens, as their names show.
  2. Add the job above to scrape_configs and reload Prometheus. The measuredlab job then appears among your scrape targets.
  3. To estimate spend, multiply a price metric by your own token counts for the same model, divided by 1,000,000. Your token counts come from your own usage metrics.
  4. OpenRouter prices are not in the metrics; see Licence and attribution.

Read a price and its evidence

Every price comes with the date we read it, a link to the source page and a quote from that page. The card below is one real record from this release.

Google: Gemini 4 Argon

Provider's own API

Output price
$10.00 per 1M output tokens
Read on
Source
Open source

$4.00 starting December 1, 2026. --- * Output price (including thinking tokens) * Not available * $10.00 through November 30, 2026. $20.00 starting December 1, 2026.

Quoted from the source above on the read date. A release can include prices read on earlier days.

This source also announces a future price. The Ledger records it separately, in Announced price changes.

View the source fields in JSON
{
  "data_status": "published",
  "license": "CC BY 4.0",
  "observed_at": "2026-11-26",
  "quote": "$4.00 starting December 1, 2026. --- * Output price (including thinking tokens) * Not available * $10.00 through November 30, 2026. $20.00 starting December 1, 2026.",
  "source": "provider_page",
  "source_url": "https://ai.google.dev/gemini-api/docs/pricing"
}

These are the source fields attached to this price in the release.

Check a price and its source yourself
  1. Open latest.json, or the dated release if you need a file that does not change, and search for the model name.
  2. Under api_pricing.by_channel, pick the channel you use: direct is the provider’s own API, openrouter is OpenRouter.
  3. Next to each price, fields holds its source_url, observed_at (the read date) and quote. Open the source and compare. The page may have changed since the read date.
  4. A null price is unknown, not zero. Announced future prices are listed separately under scheduled_changes with their start date.

Unknown does not mean free

When a price is not available, the Ledger value is null with a reason. A 0 appears only when the source supports a zero price.

Cache read price
Unknown — no cache price in our data for this channel

Announced price changes in this release

When a provider announces a price change in advance, the Ledger records the announced price and its start date. An announced future price is separate from the price currently listed in the release.

Announcements recorded as of 26 Nov 2026. Check the effective date against the period you are calculating.

Google: Gemini 4 Argon · Provider's own API

Effective from

Price fieldListed in this releaseAnnounced price
Input price$2.00 per 1M tokens$4.00 per 1M tokens
Output price$10.00 per 1M tokens$20.00 per 1M tokens

Announcement read on

Read the announcement quote

Every token the model processes is counted and billed, including thinking tokens and internal tool system instructions and function declarations when using grounding. {% /callout %} {% tabs %} {% tab title="Standard" %} {% table %} * Feature * Free Tier * Paid Tier, per 1M tokens in USD --- * Input price * Not available * $2.00 through November 30, 2026. $4.00 starting December 1, 2026.

Input price

$4.00 starting December 1, 2026. --- * Output price (including thinking tokens) * Not available * $10.00 through November 30, 2026. $20.00 starting December 1, 2026.

Output price

Changes between releases

From to

  • Models added: 1
  • Models removed: 0
  • Price fields changed: 30

The change file lists every added model, removed model and changed price field, with previous and new values.

Show the first 5 of 30 changed price fields
ModelChannel and fieldPrevious valueNew valueRead dateSource
DeepSeek: DeepSeek V4 Flash 0731OpenRouter · Cache read price$0.035 per 1M tokens$0.015 per 1M tokensPrevious:
New:
Source
DeepSeek: DeepSeek V4 Flash 0731OpenRouter · Input price$0.047 per 1M tokens$0.06 per 1M tokensPrevious:
New:
Source
DeepSeek: DeepSeek V4 Flash 0731OpenRouter · Output price$0.30 per 1M tokens$0.18 per 1M tokensPrevious:
New:
Source
DeepSeek: DeepSeek V4 Pro 0423OpenRouter · Cache read price$0.108 per 1M tokens$0.20 per 1M tokensPrevious:
New:
Source
DeepSeek: DeepSeek V4 Pro 0423OpenRouter · Input price$1.28 per 1M tokens$0.888188 per 1M tokensPrevious:
New:
Source

Files and downloads

Which file to start with: for a supported tool, use its file from Connect your tool. If your own code reads the complete records and source quotes, use latest.json. For an audit or report that must not change, use the dated release. If your automation should only load releases that passed both checks, read last-good.json first. Signature links let you check a file before using it.

FileUseCheck
Latest Ledger release
/ledger/latest.json
Latest dated records: prices, limits and test-request results, with their source information.Signature
Dated Ledger release
/ledger/v/2026-11-26.json
This release at its own address. Its content stays unchanged.Signature
Last checked release details
/ledger/last-good.json
A pointer to the latest release that passed both compatibility checks, with versions and file checksums.Signature
Release changes
/ledger/changes.json
Differences between releases, including previous and new price values.Signature
Release status data
/ledger/status.json
Release dates, compatibility results and the recorded check history.Signature
File checksums
/ledger/SHA256SUMS
Checksums for the files listed in this manifest.Signature
Public signing key
/ledger/ledger-signing.pub
The public key used to verify Ledger signatures.How to verify
Tool catalogs and model mapping files
FileUseCheck
LiteLLM catalog
/ledger/compat/litellm.json
A cost map for LiteLLM.Signature
LiteLLM model mapping
/ledger/compat/litellm.mapping.json
Which Measured Lab models are mapped to LiteLLM entries in this release.Signature
opencode catalog
/ledger/compat/models-dev/api.json
A models.dev catalog for opencode. Set the base URL shown in the connection instructions.Signature
models.dev catalog
/ledger/compat/models-dev.json
The models.dev-format file at its alternate address.Signature
opencode model mapping
/ledger/compat/models-dev.mapping.json
Which Measured Lab models are mapped to models.dev entries in this release.Signature
genai-prices catalog
/ledger/compat/genai-prices.json
A provider catalog for genai-prices.Signature
genai-prices source details
/ledger/compat/genai-prices.measuredlab.json
Measured Lab source details for the genai-prices catalog.Signature
genai-prices model mapping
/ledger/compat/genai-prices.mapping.json
Which Measured Lab models are mapped to genai-prices entries in this release.Signature
LangSmith price table
/ledger/compat/langsmith.json
Model price entries for LangSmith cost tracking, one request body per model for its model price map API.Signature
LangSmith model mapping
/ledger/compat/langsmith.mapping.json
Which Measured Lab models are mapped to LangSmith entries in this release.Signature
Prometheus metrics
/ledger/prometheus/metrics
Published prices and test-request measurements in Prometheus text format.Signature

Built on this Ledger: AI APIs by country, with local AI API providers and regions in ten countries and what the same text costs by language at provider-page prices.

For site-wide CSV and JSON datasets and individual record histories, see Data downloads.
For older releases, see the release archive.

What the Ledger guarantees

Reviewing the Ledger for your team: what to check
  1. See how one price is proven, in Read a price and its evidence and Announced price changes.
  2. Read the rules below.
  3. Open Release status to see which tool versions passed with the latest release and how your engineers can choose a release URL.
  4. Read Licence and attribution, including where to report a data error.
  5. Send Connect your tool to your engineers, or MCP to people who use a coding assistant.
  • Source evidence for each price. Each price carries a source URL, the date it was read and a quote from the source.
  • Unknown stays unknown. An unavailable Ledger value is null with a reason, never a substitute zero. Prices are not estimated or filled in.
  • Signed files. Ledger files have signatures, and SHA256SUMS lists file checksums. Verification detects changes to the signed bytes.
  • Unchanged dated releases. Dated releases are not edited. Corrections appear in a new release and in changes.json.
  • Notice before breaking changes. Breaking changes require a new major version and are announced in deprecations at least six months in advance. The previous major version remains available for six months after the new major version is released.
Scheduled format changes
Field or file
ledger-podpis.pub
Replacement
ledger-signing.pub
Announced
Earliest removal
Removal version
2.0.0

The public key is published as ledger-signing.pub with the same content. ledger-podpis.pub, its earlier name, is published as well until 2.0.0.

Verify a file

A signature shows whether a file is exactly what was signed with the key you trust. It checks the signed contents, not whether a source price is still current.

Verify a file with OpenSSH, step by step

Use curl and an OpenSSH version that supports ssh-keygen -Y. Run these commands in a directory where you want to save the release files.

  1. First time: download the file, its signature and the public key, save the key as allowed_signers and verify.
    curl -fsSO https://measuredlab.com/ledger/latest.json \
         -O https://measuredlab.com/ledger/latest.json.sig \
         -O https://measuredlab.com/ledger/ledger-signing.pub
    printf 'measuredlab-ledger namespaces="measuredlab-ledger" %s\n' \
      "$(cut -d' ' -f1,2 ledger-signing.pub)" > allowed_signers
    ssh-keygen -Y verify -f allowed_signers -I measuredlab-ledger \
      -n measuredlab-ledger -s latest.json.sig < latest.json
    A successful check prints Good "measuredlab-ledger" signature and exits successfully.
  2. Keep allowed_signers. Reuse it for later checks. If you download the key again each time, you only check the file against whatever key is on the server that day.
  3. Next downloads: verify with your saved key.
    curl -fsSO https://measuredlab.com/ledger/latest.json \
         -O https://measuredlab.com/ledger/latest.json.sig
    ssh-keygen -Y verify -f allowed_signers -I measuredlab-ledger \
      -n measuredlab-ledger -s latest.json.sig < latest.json
  4. If verification fails, do not use that file as verified. Fetch the file and its signature again from the same release and check them together.

Other files work the same way: replace latest.json with the file you downloaded and use its .sig.

Licence and attribution

Measured Lab data is published under CC BY 4.0. Credit Measured Lab, link to the file you used and include its release date or dataset version.

Source: Measured Lab — https://measuredlab.com/ledger/v/2026-11-26.json. Dataset version: 2026.11.26-r1.

OpenRouter-sourced values carry their own licence information. These prices are not included in the Measured Lab compatibility updates or Prometheus metrics. Tool catalogs retain the licences of their original projects. Short quotes from provider pages belong to their respective owners.

Report a data error through Corrections or email corrections@measuredlab.com.

Explore the website

Browse prices, read model pages or calculate the cost of a task.