Let's talk.

Whether it's a project, a role, or you just want to say hi, my inbox is open.

kadhar.mfn@gmail.com
AboutExperienceProjectsWritingResearchFree guidesToolsGames

© 2026 Kadharmoideen Fadurudeen. Made with care.

LLM Cost Calculator

See what an AI feature will cost before you build it. Enter your traffic and tokens to compare Claude, GPT and Gemini side by side, with caching and batch discounts.

Your usage

Prompt + context
The reply

Discounts

Share of each prompt that's cached

If every request starts with the same instructions or documents, providers charge much less to reuse them. 50 to 90% is common for chatbots with a long system prompt.

Not sure how many tokens?

About 0 tokens

A rough guide for English: about 4 characters or ¾ of a word per token. Code and other languages often use more. Nothing you paste leaves your browser.

Claude Sonnet 5.5 would cost about

$1,200/month

Per request
$0.0080
Per 1,000 requests
$8.00
Per day
$40.00
Per year
$14,400
Claude Sonnet 5.5$1,200/month

Every model, same usage

Cheapest here: Claude Haiku 5.5 at $60.00/month. The most expensive costs about 80× as much. Cheaper only matters if it passes your tests.

AI model prices per million tokensList prices checked on November 20, 2026. Batch is 50% off input and output.
ModelTierInputCached inputOutput
Claude Fable 5.2AnthropicFrontier$8$0.20$40
GPT-6.2 AstraOpenAIFrontier$8$0.40$40
Gemini 4 CarbonGoogleFrontier$4$0.20$20
Gemini 4 ArgonGoogleFrontier$4$0.20$20
Claude Opus 5.5AnthropicEveryday$4$0.20$20
Gemini 4 NeonGoogleEveryday$3$0.15$15
Claude Sonnet 5.5AnthropicEveryday$2$0.10$10
GPT-6.2 SolOpenAIEveryday$2$0.10$10
Gemini 4 HydrogenGoogleEveryday$1.50$0.075$7.50
GPT-6.1 TerraOpenAIEveryday$1$0.05$5
Gemini 3.5 Flash-LiteGoogleSmall$0.30$0.03$2.50
Gemini 3.1 Flash-LiteGoogleSmall$0.25$0.025$1.50
Claude Haiku 5.5AnthropicSmall$0.10$0.01$0.50
GPT-6 LunaOpenAISmall$0.10$0.01$0.50

Cost per request is the uncached input tokens times the input price, plus cached tokens times the cached price, plus output tokens times the output price, all divided by a million. Batch halves the total. A month is 30 days.

Prices are list prices for short prompts. Very long prompts can cost more on some models, writing to the cache has its own fee, and Gemini 4 Carbon and Argon are shown at their prices from December 1, 2026. Always check the provider's pricing page before you set a budget.

Everything runs in your browser. Nothing you type or paste is sent anywhere.

Frequently Asked Questions

How do I calculate the cost of an LLM API call?

Multiply input tokens by the input price and output tokens by the output price, add them, and divide by one million, since prices are quoted per million tokens. Multiply by your number of requests to get a daily or monthly total.

What is a token?

A token is a chunk of text the model reads or writes. In English it's roughly four characters or three quarters of a word, so 1,000 tokens is about 750 words. Code, numbers and many other languages use more tokens per word.

Why are output tokens more expensive than input tokens?

The model has to generate output one token at a time, which takes much more computing than reading the prompt. On most current models output costs about five times as much as input, so long replies drive the bill.

How much does prompt caching save?

Cached input usually costs between 2.5% and 10% of the normal input price. If most of every prompt is the same instructions or documents, caching can cut input costs by more than half. Writing to the cache has a small extra fee that this calculator leaves out.

What is the batch API?

Anthropic, OpenAI and Google all offer a batch API at half price. You send many requests at once and get results back within about a day instead of instantly. It suits work nobody is waiting on, like nightly reports or labelling old data.

Which AI model is the cheapest?

In November 2026 the cheapest models here are Claude Haiku 5.5 and GPT-6 Luna at $0.10 per million input tokens and $0.50 per million output tokens. The cheapest model is only a good deal if it passes your own tests.

Related Tools

How to Choose the Right AI Model
Tiers, pros and cons, and real examples
JSON Viewer
Format and inspect API responses
JWT Token Parser
Decode and inspect JSON Web Tokens