Model Pricing Calculator

Estimate model cost from input/output token counts and a cited, timestamped price catalog, or your own prices, locally.

  • Runs locally in your browser
  • No upload required

Try it

Estimated cost
0.010000 USD
Provider
OpenAI
Model
gpt-5.4
Prices read on
2026-10-10
Source
https://platform.openai.com/docs/pricing

Supported formats

Input
application/json
Output
text/plain, application/json

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Estimated 10.000000 USD for gpt-5.4.

How it works

  • Cost = (input tokens ÷ 1,000,000) × input price + (output tokens ÷ 1,000,000) × output price.
  • Input 2.500000 USD + output 7.500000 USD.
  • Prices read from the provider pricing page on 2026-10-10; verify the current price at the source.

Methodology

  1. Take input and output token counts and a per-million-token price for each.
  2. Cost = (input tokens ÷ 1,000,000) × input price + (output tokens ÷ 1,000,000) × output price.
  3. Bundled prices come from a dated snapshot of the official provider pricing pages; each catalog entry carries its source URL and retrieval date, and an entry without both is excluded.
  4. When no cited entry matches, the tool reports 'not measured' or accepts prices you enter, which it does not verify.

Usage

  1. Enter the input and output token counts (estimate them with the Token Counter).
  2. Pick a cited model, or enter your own per-million-token prices.
  3. Read the estimated cost; the bundled catalog shows its source and retrieval date.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

A cited model

jsonSelect to copy
{
  "entryId": "openai:gpt-5.4",
  "inputTokens": 1000000,
  "outputTokens": 500000
}

Your own prices

jsonSelect to copy
{
  "inputPricePerMillion": 1,
  "outputPricePerMillion": 2,
  "inputTokens": 2000000,
  "outputTokens": 1000000
}

Limitations

List prices are a starting point

Published list prices are the honest baseline, but real bills depend on caching, batch mode, long-context tiers and negotiated rates. Use this calculator for budgeting, then confirm against your provider invoice.

Frequently asked questions

Are the prices live?
No. The bundled prices are a dated snapshot read from the official provider pages; the tool shows the source URL and retrieval date and tells you to verify the current price at the provider.
What does 'not measured' mean?
It means no cited price was selected and no manual price was entered. The tool reports that instead of showing an invented figure.
Is my usage data uploaded?
No. The calculation runs in your browser; nothing is transmitted.

Sources

  1. ISO 4217 Currency codes — ISO
  2. OpenAI API pricing — OpenAI
  3. Anthropic pricing — Anthropic