Newshot

Token Bill – Estimate and Compare LLM API Costs

Original text(via HN AI)

Claude Haiku 5.5

  • Requests60,000
  • Input 90M × $0.10$9.00
  • Output 18M × $0.50$9.00

$0.0003 per request. Pick any row to itemize it.

108M tokens a month. Claude Haiku 5.5 is the cheapest option; GPT-6 Astra costs 100× more.

Go further than the calculator

Same prices, other views: find the best value, compare models side by side, or learn how to pay less.

Pay less: short reads

  • 4 min read How to cut your LLM API bill Six practical ways to lower an LLM API bill: choose the right model, shorten answers, trim input, cache, batch and route requests. Read the guide →
  • 4 min read Prompt caching: when it saves money How prompt caching works, how to build prompts so the cache is hit, and a worked example of the savings, with the cases where it does not help. Read the guide →
  • 17 terms Glossary of LLM pricing terms Plain-language definitions of the terms behind LLM API bills: tokens, context window, prompt caching, batch API, long-context pricing and more. Open →

Routing planner

Send simple requests to a cheap model and only the hard ones to a strong model. Uses your traffic, cache and batch settings above.

Hard requests are often longer, especially with reasoning models. Set their size above, then check answer quality on your own data before you switch.

LLM API price list

List prices per million tokens, standard rate, before batch or caching discounts.

ModelProvidersInput $/1MCached $/1MOutput $/1MContext
Claude Fable 5.1Anthropic$10.00$0.25$50.001M
Claude Fable 5.2Anthropic$8.00$0.20$40.001M
Claude Opus 5.5Anthropic$4.00$0.20$20.001M
Claude Sonnet 5.5Anthropic$2.00$0.10$10.001M
Claude Haiku 5.5Anthropic$0.10$0.01$0.501M
DeepSeek V4 ProDeepSeek$0.66$0.022$1.981M
DeepSeek V4.1 FlashDeepSeek$0.15$0.0030$0.601M
Gemini 4 NeonGoogle$3.00$0.15$15.001.05M
Gemini 4 CarbonGoogle$2.00$0.10$10.001.05M
Gemini 4 ArgonGoogle$2.00$0.10$10.001.05M
Gemini 3.1 ProGoogle$2.00$0.20$12.001.05M
Gemini 4 HydrogenGoogle$1.50$0.075$7.501.05M
Gemini 3.8 FlashGoogle$0.75$0.075$3.751.05M
Gemini 3.5 Flash-LiteGoogle$0.30$0.03$2.501.05M
Llama 4 MaverickMeta$0.35$0.17$1.00524K
GPT-6 AstraOpenAI$10.00$1.00$50.001.05M
GPT-6.2 AstraOpenAI$8.00$0.40$40.001.05M
GPT-6.1 SolOpenAI$2.00$0.10$10.001.05M
GPT-6.2 SolOpenAI$2.00$0.10$10.001.05M
GPT-6.1 TerraOpenAI$1.00$0.05$5.001.05M
GPT-6 LunaOpenAI$0.10$0.01$0.501.05M
Qwen4 MaxQwen$1.50$0.075$4.501M
Qwen3.8-27BQwen$0.15$0.0375$1.875262K
Grok 4.7xAI$2.00$0.50$6.00500K

? = not confirmed by a published source yet.

How the estimate is calculated

The formula

  • Cost per request = input tokens × input price ÷ 1,000,000 + output tokens × output price ÷ 1,000,000.
  • Monthly cost = cost per request × requests per day × 30. Yearly = monthly × 12.
  • Caching: the cached share of input is billed at the cache-read price, the rest at the normal input price. Models with no published cache price are billed at the full input price and tagged.
  • Batch: when the box is ticked, models with a batch API are billed at their batch price: half price on most, a smaller discount on a few.
  • Long context: when the prompt goes over a model's threshold, its higher rate applies to the whole request, as those providers bill it.
  • Promotions: the promo price is used until its end date, which is shown next to the model with the price that follows.

Not included

  • Cache write and cache storage fees
  • Reasoning (thinking) tokens, unless you add them to the output tokens
  • Tool calls, web search and code execution fees
  • Images, audio and video, priced per item or per second on many models
  • Embeddings, vector databases and hosting
  • Taxes, free tiers, credits and volume discounts

Questions

A token is a piece of text the model reads or writes. In English, 1,000 tokens is about 750 words. Most other languages need more tokens for the same text, and Arabic often needs about twice as many as English. Each provider has its own tokenizer, so counts differ a little. The text estimator above gives a rough figure.

Writing a reply takes more computing than reading a prompt, so providers charge several times more per output token. Long answers and reasoning models raise the bill fast, so the output setting often matters more than it looks.

When many requests start with the same text, such as a system prompt, a policy or a document, the provider can keep it and bill later reads at a lower rate. Set the cached share to the part of your input that repeats. Some providers also charge to write or store the cache; those fees are not included here.

When nobody waits for the answer: tagging, overnight summaries, data extraction. Results arrive within up to 24 hours at about half price. It does not suit chatbots or anything interactive.

From each provider's official pricing page, linked at the bottom of this page. Prices for open models come from third-party hosts, named next to the model. The date at the top shows when prices were last checked. Check the official page before you commit to a budget.

Not always. Price says nothing about answer quality on your task. Shortlist two or three models here, then test them on 10 to 20 of your real examples. The Which model? pages list candidates by task.

From the blog

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗