LLM API cost calculator

Estimate a monthly API bill from three numbers you already know: prompt size, reply size, and how many requests you send a day. Then compare every major model on the same workload.

Prices verified November 25, 2026

Your workload

The prompt you send, including system message and context.
The reply. Reasoning models also bill thinking tokens here.
Use 30 for a monthly estimate, 22 for weekdays only.
Resending the same long system prompt? Try 80%. Cached input is billed at 5%–25% of the normal rate.
Cheapest option for this workload — Calculating…
Lowest monthly cost
—
—
—
Cheapest flagship-tier model
—
—
—
Cost per request
—
cheapest model
Requests / month
—
—
Tokens / month
—
input + output, cheapest

Monthly cost, top 6

lower is cheaper
All matching models, sorted by monthly cost. Rates: USD per 1M tokens, standard tier.
# Model Input Output Per request Monthly
Loading…

Flagship badge marks each provider's top reasoning tier. Long-context surcharges and batch discounts (usually 50% off) are not applied; see the methodology below.

How to use this calculator

  1. Estimate your prompt size. Paste a typical request into any tokenizer, or count words and multiply by 1.3. Add the system prompt and any retrieved context, because you pay for those on every call.
  2. Estimate the reply size. Three paragraphs of English are roughly 400–500 tokens. If you use a reasoning model, add its thinking budget, which is billed as output.
  3. Enter requests per day. Take a real day from your logs if you have one. Early estimates are usually 3–5× too low because retries and follow-up calls are forgotten.
  4. Adjust the cache share. If every request starts with the same 3,000-token instruction block, most of that input can be cached. Setting 70–90% here is realistic for that pattern and cuts the input line dramatically.
  5. Compare. The table sorts by monthly cost. Look at the flagship column too — the gap between the cheapest model and the cheapest flagship is where quality decisions live.

Worked example

A support assistant handles 1,000 conversations a day. Each call sends 1,500 input tokens (instructions, ticket history, help-centre snippets) and returns 500 output tokens. Thirty days a month, no caching.

Using the published rates:

  • GPT-6.2 Sol ($2 input / $10 output per 1M): 30M input tokens × $2 = $60, plus 15M output tokens × $10 = $150. Total $210/month, $0.007 per conversation.
  • Claude Sonnet 5.5 ($2 / $10): the same $210/month.
  • Gemini 4 Hydrogen ($1.50 / $7.50): $45 + $112.50 = $157.50/month.
  • GPT-6 Luna ($0.10 / $0.50): $3 + $7.50 = $10.50/month, twenty times cheaper than the Sol tier.

That 20× spread is the whole point of this page: for classification, routing, drafting and short support answers, the budget tier is usually enough. Reserve the flagship tier for the requests where a wrong answer is expensive.

How we calculate this

For each model m, with R requests per month, I input tokens and O output tokens per request:

monthly = R × [ (I × (1 − c) × P_in + I × c × P_cache + O × P_out) / 1,000,000 ]

R       = requests per day × billing days per month
c       = share of input tokens served from the prompt cache (0–1)
P_in    = input price per 1M tokens
P_cache = cached input price per 1M tokens
P_out   = output price per 1M tokens

Where a model has no published cache rate, the normal input rate is used. Long-context tiers (for example prompts above 200,000 tokens on OpenAI and xAI models) are not modelled; a request that crosses the threshold is billed at the higher rate for all its tokens, which can double a bill on its own.

What this number leaves out. Failed and retried calls, image or audio input, tool-use round trips (each one is another billed request), batch discounts of about 50%, and taxes. Treat the result as a planning baseline, then check your provider's usage dashboard after a week of real traffic.

Frequently asked questions

How many tokens is a page of text?

Around 650–700 tokens for 500 English words. A rough rule is 1 token per 4 characters, or 1.3 tokens per word. Code, JSON and Korean or Japanese text produce more tokens for the same visual length.

Why do reasoning models cost more than their rate suggests?

Reasoning models generate internal thinking tokens before answering, and providers bill those as output. A 500-token visible answer can easily consume 2,000–5,000 output tokens on a hard question. Model the thinking budget as part of your output estimate, or measure one real request.

Should I use the cheapest model for everything?

No. The usual pattern that survives contact with production is routing: send classification, extraction, translation and short drafting to the budget tier, and escalate hard cases to a mid or flagship model. Ask yourself whether a wrong answer costs more than the price difference — for a customer-facing refund decision, it usually does.

Is batch pricing worth restructuring for?

If your workload is not interactive — nightly enrichment, backfills, report generation — batch APIs are typically 50% off at OpenAI and Google. That is a larger saving than switching model tiers in many cases, and it costs you only a queueing delay.

These prices differ from what I pay. Why?

Enterprise agreements, committed-use discounts, regional resale (Bedrock, Vertex) and promotional rates all diverge from list price. This tool uses published list prices for the standard tier, checked on November 25, 2026.

Do you store what I type?

No. Every calculation runs in your browser and no value is transmitted or saved. See the privacy page.

Sources: OpenAI API pricing, Anthropic model pricing, Gemini Developer API pricing, DeepSeek models and pricing, xAI models and pricing — all read on November 25, 2026. Full list on the about page.