Last reviewed:
Explainer slide: three stacked cost bars split into tokens, platform and people for two hosted models and a self-hosted option.

LLM Cost Calculator: 3-Year Total Cost of Ownership for GPT, Claude, Gemini and Self-Hosting

Token prices are the number vendors quote, but they are rarely the biggest cost of running a language model in production: engineers, retrieval and monitoring often cost more. Enter your volume once and this calculator ranks ten current API models and a self-hosted option by total monthly cost, 3-year cost and cost per request, using each vendor's published list prices.

The calculator

Results update as you type, and the cheapest option moves to the top. Nothing you enter leaves your browser.

Usage
Platform and people
Self-hosted open-weight model (comparison row)

On these inputs, Claude Haiku 5.5 has the lowest 3-year cost at $912,377. Price is only one input: test quality on your own evaluation set before you choose.

ModelModel or GPU cost per monthPlatform and people per monthTotal per month3-year costCost per request
Claude Haiku 5.5Anthropic - Prompts up to 100,000 tokens; longer prompts cost five times as much.$94$25,250$25,344$912,377$0.127
GPT-5.6 LunaOpenAI$208$25,250$25,458$916,474$0.127
Gemini 3.8 FlashGoogle - Google has announced a rise to $1.50 input and $7.50 output from 01-01-2027.$704$25,250$25,954$934,326$0.130
GPT-5.4 miniOpenAI$779$25,250$26,029$937,026$0.130
Claude Sonnet 5.5Anthropic$1,858$25,250$27,108$975,888$0.136
GPT-5.6 TerraOpenAI$2,076$25,250$27,326$983,736$0.137
Gemini 3.1 Pro (preview)Google - Prompts up to 200,000 tokens; longer prompts cost more.$2,076$25,250$27,326$983,736$0.137
Claude Opus 5.5Anthropic$3,716$25,250$28,966$1,042,776$0.145
GPT-5.6 SolOpenAI$3,752$25,250$29,002$1,044,072$0.145
Claude Fable 5.1Anthropic$9,245$25,250$34,495$1,241,820$0.172
Self-hosted open-weight modelGPU rental plus extra engineers; quality differs from the hosted models$42,639$25,250$67,889$2,444,002$0.339

List prices per 1 million tokens, standard tier, short prompts, US dollars, from each vendor's official pricing page. Batch processing is 50% off at all three vendors. Prices last verified 11-08-2026.

How the calculation works

  • Model cost = (uncached input tokens x input price + cached input tokens x cached price + output tokens x output price) / 1,000,000, less 50% on the share sent as batch jobs.
  • Platform and people = engineers x loaded annual cost / 12, plus retrieval, plus observability, evaluation and hosting. It is the same for every hosted model.
  • Self-hosted = GPUs x 730 hours x price per GPU-hour, plus the extra engineers to run them, plus the same platform and people cost.
  • 3-year cost = monthly total x 36, with no discounting or price changes. Cost per request = monthly total / requests.

It compares cost only. A cheaper model that fails more often costs more in rework and escalations, so shortlist on price and decide on results from your own evaluation set.

Current list prices

Standard-tier prices for short prompts. Long prompts, priority processing and regional endpoints cost more; enterprise agreements often cost less.

ModelVendorInputCached inputOutputSource
GPT-5.6 SolOpenAI$4.00$0.40$20.00OpenAI pricing
GPT-5.6 TerraOpenAI$2.00$0.20$12.00OpenAI pricing
GPT-5.6 LunaOpenAI$0.20$0.020$1.20OpenAI pricing
GPT-5.4 miniOpenAI$0.75$0.075$4.50OpenAI pricing
Claude Fable 5.1Anthropic$10.00$0.25$50.00Anthropic pricing
Claude Opus 5.5Anthropic$4.00$0.20$20.00Anthropic pricing
Claude Sonnet 5.5Anthropic$2.00$0.10$10.00Anthropic pricing
Claude Haiku 5.5Anthropic$0.10$0.010$0.50Anthropic pricing
Gemini 3.1 Pro (preview)Google$2.00$0.20$12.00Google pricing
Gemini 3.8 FlashGoogle$0.75$0.075$3.75Google pricing

US dollars per 1 million tokens, last verified 11-08-2026.

What changes the answer

  • Volume. At low volume, people and platform dominate and the model barely matters. At millions of requests a month, token prices decide the ranking.
  • Output length. Output tokens cost five to ten times as much as input tokens at most vendors, so long answers and agent reasoning add up fast.
  • Caching and batch. Reused system prompts and documents bill at a fraction of the input price, and batch jobs are half price at all three vendors123.
  • Tokenizers differ. The same text can produce noticeably different token counts on different vendors' models, so measure token use with your own prompts before comparing.
  • Self-hosting. A GPU node costs the same whether it is busy or idle. It pays off only at high, steady volume, or when data must stay on infrastructure you control. Hourly rates for an H100 GPU range from about $4.59 at a specialist cloud to $7 to $12 on hyperscaler on-demand pricing67.

To weigh model cost against the business value of a workflow, use the ROI calculator; to compare who could build it, see the comparison matrix.

Where the defaults come from

DefaultValueBasis
Model pricesPer modelEach vendor's official pricing page123
Loaded engineer cost$190,000 a yearMedian software developer pay of $135,980 (BLS, May 2025)4 times 1.4 for benefits and overhead, an assumption
Retrieval$500 a monthPinecone's Enterprise plan minimum; its Standard plan starts at $505
GPU price$4.59 per GPU-hourLambda's listed rate for an 8x H100 node6
Usage, engineers, other platform costsAs shownAssumptions for a mid-sized internal assistant; replace with your own

Frequently asked questions

What is LLM total cost of ownership?

Everything it costs to run a language model in production: tokens or GPUs, plus the engineers who build and operate it, retrieval, monitoring and evaluation. For many workloads the people cost more than the tokens.

Is self-hosting an open-weight model cheaper than an API?

Only at high, steady volume. A GPU node costs the same around the clock, and running it needs extra engineers. Below that volume, API pricing is usually cheaper.

How current are the prices?

Every page is validated roughly twice a week or more, and the price table shows its last-verified date. Check the vendor's page before you sign.

Does the calculator include enterprise discounts?

No. It uses public list prices. Enter a negotiated price by adjusting usage or treat the result as a ceiling.

References

  1. OpenAI, API pricing, accessed 11-08-2026. developers.openai.com
  2. Anthropic, Claude pricing, accessed 11-08-2026. platform.claude.com
  3. Google, Gemini API pricing, accessed 11-08-2026. aistudio.google.com
  4. U.S. Bureau of Labor Statistics, Occupational Outlook Handbook, Software Developers. bls.gov
  5. Pinecone, pricing, accessed 11-08-2026. pinecone.io
  6. Lambda, GPU cloud pricing, accessed 11-08-2026. lambda.com
  7. Neurohive, "Cloud GPU pricing" guide (hyperscaler H100 on-demand rates). neurohive.io