LiveFor architects & developers

LLM Token & API Cost Estimator

Estimates token usage and monthly cost for AI features from prompt sizes, request volumes and caching, so you can compare model options before you build.

Runs in your browser. Your data never leaves this device.
~/apps/llm-cost-estimatorruns in your browser · nothing uploaded
Start from a typical workload
System prompt + history + retrieved context + the question
Include reasoning/thinking tokens: they are billed as output
 
30 for always-on, ~22 for business days
A stable system prompt or document that is reused gets cheap cache-hit pricing
Providers
Count tokens from sample text, or add your own rates
Stays in your browser and isn’t added to the share link. Roughly 4 characters per token.
 
 
 

Use this for negotiated rates, Azure OpenAI, Bedrock or Vertex pricing, or a model not listed.

Cheapest: Claude Haiku 5.5$20.28 a month ($243 a year) for 180M input and 24M output tokens a month. Cheaper isn’t always better: test quality on your own prompts before you choose.

Model$/M in · cached · outPer requestPer month
Claude Haiku 5.5 Anthropic0.1 · 0.01 · 0.5$0.00034$20.28
GPT-6 Luna OpenAI0.1 · 0.01 · 0.5$0.00034$20.28
Gemini 3.1 Flash-Lite Google0.25 · 0.025 · 1.5$0.00094$56.70
Gemini 2.5 Flash Google0.3 · 0.03 · 2.5$0.0014$84.84
GPT-5.4 mini OpenAI0.75 · 0.075 · 4.5$0.0028$170
GPT-6.1 Terra OpenAI1 · 0.05 · 5$0.0033$197
Gemini 3.5 Flash Google1.5 · 0.15 · 9$0.0057$340
Claude Sonnet 5.5 Anthropic2 · 0.1 · 10$0.0066$395
GPT-6.2 Sol OpenAI2 · 0.1 · 10$0.0066$395
Gemini 3.1 Pro (preview) Google2 · 0.2 · 12$0.0076$454
Claude Opus 5.5 Anthropic4 · 0.2 · 20$0.01$790
Claude Fable 5.2 Anthropic8 · 0.2 · 40$0.03$1,558
GPT-6.2 Astra OpenAI8 · 0.4 · 40$0.03$1,579
CSV
provider,model,input_per_mtok,cached_per_mtok,output_per_mtok,cost_per_request,cost_per_month,cost_per_year
Anthropic,"Claude Haiku 5.5",0.1,0.01,0.5,0.000338,20.28,243.36
OpenAI,"GPT-6 Luna",0.1,0.01,0.5,0.000338,20.28,243.36
Google,"Gemini 3.1 Flash-Lite",0.25,0.025,1.5,0.000945,56.70,680.40
Google,"Gemini 2.5 Flash",0.3,0.03,2.5,0.001414,84.84,1018.08
OpenAI,"GPT-5.4 mini",0.75,0.075,4.5,0.002835,170.10,2041.20
OpenAI,"GPT-6.1 Terra",1,0.05,5,0.003290,197.40,2368.80
Google,"Gemini 3.5 Flash",1.5,0.15,9,0.005670,340.20,4082.40
Anthropic,"Claude Sonnet 5.5",2,0.1,10,0.006580,394.80,4737.60
OpenAI,"GPT-6.2 Sol",2,0.1,10,0.006580,394.80,4737.60
Google,"Gemini 3.1 Pro (preview)",2,0.2,12,0.007560,453.60,5443.20
Anthropic,"Claude Opus 5.5",4,0.2,20,0.013160,789.60,9475.20
Anthropic,"Claude Fable 5.2",8,0.2,40,0.025960,1557.60,18691.20
OpenAI,"GPT-6.2 Astra",8,0.4,40,0.026320,1579.20,18950.40

USD per million tokens at standard pay-as-you-go rates, last checked December 2026. Not included: cache-write surcharges (Anthropic charges 1.25× input to write a 5-minute cache), Gemini cache storage per hour, tool and search fees, images and audio, regional or data-residency uplifts, and priority tiers. Tokenisers differ, so the same text can be a different number of tokens on each model (newer Claude models produce about 30% more). Prices change often: check the sources before you commit a budget: Anthropic: Claude pricing, OpenAI: API pricing, Google: Gemini API pricing.

What it does

  • Compare 13 modelsCurrent Claude, GPT and Gemini models side by side, cheapest first, with a bar chart of monthly cost.
  • Caching and batchModels prompt caching and the 50% batch discount, which often change the answer more than the model does.
  • Long-context pricingSwitches to the higher rates automatically when a request goes over a model’s long-context threshold.
  • Your own ratesAdd negotiated, Azure, Bedrock or Vertex prices, and count tokens from a sample prompt without it leaving your browser.

How to use it

  1. Pick a typical workload or enter your own token counts

    Input includes the system prompt, history and any retrieved documents.

  2. Set requests per day and days per month
  3. Set how much input is cached and whether you can use batch
  4. Compare the monthly costs and export the CSV

    Then test quality on your own prompts before choosing.

Questions people ask

How many tokens is a word?

In English, a token is roughly four characters or three-quarters of a word, so 1,000 words is about 1,300 tokens. Code and other languages vary, and each provider’s tokeniser is different.

Why are output tokens more expensive?

Output is generated one token at a time, which uses far more compute than reading input. Output is typically four to eight times the input price, and reasoning or thinking tokens are billed as output.

What is prompt caching?

If the start of your prompt (such as a long system prompt or document) is the same across requests, providers can cache it and charge a small fraction of the input price for those tokens on later requests.

When should I use the batch API?

For work that doesn’t need an instant answer, such as overnight summaries or classification backlogs. Results come back within 24 hours at about half the price.

Last updated 4 Dec 2026 · More in Cloud & FinOps

More Cloud & FinOps tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →