Token and API Costs

LLM Cost Calculator

Estimate input, cached-input, and output token cost from source-linked model-provider rates.

Interactive Tool

Build a Scenario

Runs in your browser
Model
Provider

Published Rates

Estimated Cost: $0.65

View model pricing →
ComponentTokensRate / 1MEstimated cost
Uncached input1,000,000$0.15$0.15
Cached input0$0.030$0.0000
Output1,000,000$0.50$0.50
Total$0.65

Estimates exclude retries, minimum charges, taxes, tiered pricing, and price changes after the observation date.

Inputs

What the Calculation Needs

4 input groups
InputHow it is used
Model and providerThe exact endpoint whose rates should be used.
Input tokensAll billed prompt and context tokens in the workload.
Cached inputThe input subset eligible for a published cache-read rate.
Output tokensAll billed completion or reasoning output tokens.

Methodology

Each token component is multiplied by its source-linked per-million-token price. Cached tokens use a cache-read price only when that endpoint publishes one; otherwise they retain the normal input rate.

How to Interpret the Result

Use the result as a list-price scenario, then add retry, tool-call, storage, tax, and tier effects that apply to your contract.

Boundaries

What the Result Does Not Prove

  1. Price minima are not blended rates across providers.
  2. Unsupported currencies are not converted.
  3. Price changes after the observation timestamp are outside the estimate.

Catalog values retain their source and freshness on the linked model, provider, benchmark, or comparison page. Editable scenario assumptions are not Model Markets measurements.

Continue the Analysis

Related Tools

All tools →
ToolNext question
API Usage CalculatorTranslate request-level product assumptions into monthly token demand and spend.
Caching SavingsSeparate reusable prefix economics from total input volume before adopting prompt caching.
Monthly AI SpendBuild a bottom-up monthly AI budget from product or team behavior.

Questions

LLM Cost Calculator FAQs

What does the LLM Cost Calculator calculate?+

Price one explicit token workload against an exact published provider endpoint. It returns a component-level cost breakdown using the selected endpoint's published currency and token units.

Does the LLM Cost Calculator use current model data?+

Where the calculation needs model facts, it uses the current Model Markets catalog snapshot updated 2026-09-02. User-entered assumptions remain clearly editable, and unsupported values stay unknown rather than being inferred.

What should I verify before using the LLM Cost Calculator result?+

Price minima are not blended rates across providers. Unsupported currencies are not converted. Price changes after the observation timestamp are outside the estimate. Open the linked canonical records and primary sources before making a production or purchasing decision.

Send Feedback