AI Token Cost Calculator

To estimate the cost of an LLM API call, choose a model, enter input and output token counts, and optionally set a repeat workload (requests per day or per month). The calculator returns per-request cost, input cost, output cost, cached-prompt cost and savings, plus daily and monthly projections.

Estimate token cost by model
Choose a provider and model, then enter the token counts you expect per request. This works well for OpenAI token cost checks, Claude token cost estimates, and repeated daily or monthly workload planning.

Calculation mode

This calculator covers OpenAI, Anthropic Claude, and Google Gemini model pricing, with a range of models from each provider.

The result shows the selected model's price with a link to the provider's official pricing page.

Use billable prompt tokens before any cache savings are applied.

Use the completion or response tokens you expect back from the model.

Count only the input tokens billed at the cached-input rate. Cached tokens should not exceed total input tokens.

Used only in repeated mode. Enter how many requests you expect per day or per month.

Workload horizon

Results are approximate. Provider billing rules, tokenizer differences, retries, and add-on features can change your final bill.

Prices come from the @pydantic/genai-prices dataset. If anything differs, the provider's official pricing page is authoritative.

Accuracy notice

This calculator is a best-effort estimate, not an exact billing system. Prices can be incomplete or drift because model providers do not publish perfectly machine-readable pricing data for every billing rule and pricing tier.

If you are making a finance, procurement, or production rollout decision, verify the selected model against the provider's official pricing page before relying on the estimate.

Estimated cost breakdown
The result card shows per-request cost, the selected workload total, and how input, output, and cached-input pricing contribute to the estimate.

Choose an OpenAI, Claude, or Gemini model to see the estimate

The calculator will estimate per-request token cost first, then scale it to a daily or monthly workload if you enable repeated mode.

AI Token Cost

How this AI token cost calculator works

You bring the token counts, the page applies the selected model's pricing, and the result scales to a daily or monthly workload when needed.

Choose a provider and model
Pick one of the supported models from OpenAI, Anthropic Claude, or Google Gemini.
Enter token counts
Fill in input, output, and optional cached-input tokens for one request.
Scale the estimate
Switch to repeated mode when you want the same request estimate projected across a daily or monthly workload.

Notes and boundaries

This page estimates token-based API cost from a third-party aggregated pricing dataset. It covers OpenAI, Claude, and Gemini models, but it does not attempt to reconcile exact provider invoices, billing exports, tool-use charges, or retries.

Cached-input pricing is provider-specific. In this calculator, cached tokens are treated as a discounted portion of input tokens rather than extra tokens on top of the prompt.

For ChatGPT, this page estimates API pricing for OpenAI models; it does not calculate ChatGPT subscription plan fees.

Some providers apply special long-context, batch, grounded-search, or regional-processing pricing. The assumptions panel shows what is modeled in the current estimate, but official provider pages still win when there is any mismatch.

AI token cost calculator FAQ

Can I use this page as an OpenAI token calculator?
Yes. If you choose a supported OpenAI model, the page estimates prompt, completion, and cached-input cost from the model's current pricing data, then scales the result by request volume when repeated mode is enabled.
Can I estimate Claude token cost here?
Yes. Choose a supported Anthropic Claude model and enter the input, output, and optional cached-input tokens you expect per request. The calculator then estimates per-request, daily, or monthly token cost.
Does this work as a ChatGPT token calculator?
For API usage, yes. If you are pricing OpenAI API models used in a ChatGPT-like product flow, this page works as a ChatGPT token calculator. It is not meant to estimate ChatGPT Plus, Pro, Team, or Enterprise subscription fees.
What is the difference between an OpenAI token calculator and a token cost calculator?
An OpenAI token calculator usually refers to pricing one OpenAI model. A token cost calculator is broader: it applies the same token-based math across supported providers such as OpenAI, Claude, and Gemini.
What are cached tokens?
Cached tokens are prompt tokens billed at a discounted cached-input rate when the provider supports prompt caching or an equivalent cache mechanism.
Why might this estimate differ from my actual bill?
Real bills can differ because of tokenizer differences, retries, tool calls, grounding, long-context tiers, regional processing, provider-side pricing changes, and differences between aggregated pricing data and the provider's final billing logic.
Which providers and models are included?
The page covers OpenAI, Anthropic Claude, and Google Gemini text and reasoning models that have published pricing. Image, audio, embedding, and other SKUs that are not directly comparable are not included.

Related tools

Other calculators that help when you plan usage and costs.

Percentage Calculator - Open tool
Percentage Calculator
Work out percentage changes, for example how much switching models or a price change raises or lowers your monthly cost.
Open tool
Unit Converter - Open tool
Unit Converter
Convert data sizes between bytes, KB, MB, GB, and TB, along with other everyday units.
Open tool