Free developer tool

LLM Cost Calculator: Compare API Token Costs

Turn a workload into a token budget. Compare standard API costs across four providers using the same request volume, input, output, and cache assumptions.

Standard text API rates, without Batch or free allowances. Output should include billed reasoning tokens. Cache percentages split the input; their sum cannot exceed 100%.

LLM Cost Calculator: Compare API Token Costs
Model / rate tierEstimated total (USD)Prices checked
Claude Sonnet 5.5$30.00
Claude Haiku 5.5 · Input ≤100K$1.50
Claude Haiku 5.5 · Input >100KChoose the matching input tier
gpt-6.1-sol$30.00
gpt-6-luna$1.50
deepseek-flash · Peak$4.20
deepseek-flash · Off-peak$2.10
deepseek-v4-pro · Peak$17.16
deepseek-v4-pro · Off-peak$8.58
gemini-4-argon$30.00
gemini-3.8-flash$11.25
gemini-3.5-flash-lite$5.50

Excludes cache storage, search/tools, media, taxes, regional uplifts, and custom discounts. Rate tiers are not guarantees of model context capacity. Check the linked pricing page for limits and promotion dates. Totals are rounded to cents after calculation; positive amounts below half a cent display as $0.00.

How the estimate works

For each request, split the total input into uncached input, cache reads, and cache writes. Multiply each part by its own price per million tokens. Add the output cost, then multiply by the request count.

A cache hit percentage is a share of input tokens, not a share of requests. Use measured cache-token counts from your API responses when available. Writing a cache and reading it are separate charges; a cold request does not qualify as a hit.

Choose a request count for the period you want to budget, such as one day or one month. Every request in this estimate uses the same token counts. For mixed workloads, estimate each group separately and add the totals.

Example: 1,000 requests with 10,000 input and 1,000 output tokens each = 10 million input and 1 million output tokens. Changing the request count scales the full workload, including cache writes.

Check prices and connect your accounts

Use the vendor pages for rate details, then follow the setup guide to compare estimates with reported costs or balances.

Start monitoring

Understand your API costs

LLM cost calculator FAQ

Is this a live billing total?
No. It is a scenario estimate using the listed prices and their check dates. Your provider's billing records are authoritative; requests can include extra billable items.
Why do some models have no estimate?
A model may not list a cache rate you selected, or the input may use another pricing tier. Missing prices are shown explicitly instead of treated as zero.
Can I compare identical text across models?
This tool compares identical token counts. Tokenizers differ, so identical text can produce different counts. For procurement decisions, measure representative requests for each model and evaluate answer quality too.