LLM API cost calculator

What will your app cost to run? Set your traffic once and see the monthly bill on every model, before a single user signs up. The same workload carries over to the models, cheapest and cache pages.

Prices updated Nov 29, 2026150 models20 providers
Build your workload from users and prompts
Enter prompt sizes in

5,000 users × 8 prompts is 40,000 requests a day, or 1.2M a month. Applying this replaces the workload above.

Cheapest for you

Solar Mini 4.5 (Preview) costs $9.84 a month, then Nemotron 3.5 Lightning ($24.00) and Inkling 2 Mini ($28.23).

Your pick

Solar Mini 4.5 (Preview) would cost $9.84 a month, $120 a year. It ranks 1 of 150.

Best value

Claude Haiku 5.5 is the cheapest strong model (ECI 160+), at $113 a month.

Your bill

Solar Mini 4.5 (Preview)

Upstage, $0.010 in, $0.001 cached, $0.040 out per 1M tokens

$9.84Solar Mini 4.5 (Preview), per month
Input (360M tokens)$3.6037%
Cached input (240M tokens)$0.242%
Output (150M tokens)$6.0061%
Per year$120
Per 1,000 requests$0.03
Per request$0.00003
Assumes a 30-day month and steady traffic. Per year uses 365 days.

Compare with

Cheapest alternatives to Solar Mini 4.5 (Preview), as a difference from its bill

  • $24.00+144%
  • $28.23+187%
  • $31.74+223%
  • $34.08+246%
  • $47.70+385%

The same workload on every model

ModelInput /1MOutput /1MPer 1,000 requestsYour monthvs Solar Mini 4.5 (Preview)
1$0.010$0.040$0.03$9.84selected
2$0.016$0.031$0.04$11.13+13%
3$0.020$0.096$0.08$24.00+144%
4$0.026$0.105$0.09$28.23+187%
5$0.030$0.130$0.11$31.74+223%
6$0.035$0.140$0.11$34.08+246%
7$0.045$0.136$0.12$36.84+274%
8$0.060$0.150$0.16$47.70+385%
9$0.051$0.203$0.16$49.05+398%
10$0.050$0.200$0.16$49.20+400%
11$0.080$0.130$0.19$57.90+488%
12$0.065$0.260$0.21$64.08+551%
13$0.075$0.300$0.25$73.68+649%
14$0.060$0.350$0.26$76.50+677%
15$0.061$0.400$0.28$83.40+748%
16$0.075$0.400$0.30$88.68+801%
17$0.140$0.280$0.31$93.12+846%
18$0.133$0.223$0.32$97.41+890%
19$0.100$0.500$0.37$111.96+1038%
20$0.100$0.500$0.38$113.40+1052%
21$0.100$0.500$0.38$113.40+1052%
22$0.100$0.500$0.38$113.40+1052%
23$0.150$0.470$0.43$128.34+1204%
24$0.150$0.470$0.43$128.34+1204%
25$0.050$0.700$0.43$129.00+1211%

Monthly cost of three common LLM apps

Before you enter your own numbers, here is what three typical workloads cost per month at today’s prices on the newest models from each provider, plus the cheapest model we track:

  • Support chatbot: 5,000 requests a day, 1,000 input and 300 output tokens each, 30% of input served from the prompt cache.
  • RAG search: 2,000 requests a day, 4,000 input and 400 output tokens each, 50% of input served from the prompt cache.
  • Coding assistant: 500 requests a day, 20,000 input and 1,500 output tokens each, 70% of input served from the prompt cache.
Monthly cost over 30 days at standard (non-batch) rates, updated Nov 29, 2026. Sorted by the chatbot column.
ModelSupport chatbotRAG searchCoding assistant
Solar Mini 4.5 (Preview) Upstage$2.90$2.28$2.01
Inkling 2 Mini Thinking Machines$8.04$7.20$7.43
Muse Ember Meta$33.18$24.48$21.09
Claude Haiku 5.5 Anthropic$33.45$25.20$22.35
DeepSeek V4.1 Flash 1017 DeepSeek$42.88$32.76$27.63
Muse Spark Open Meta$329.25$270.00$239.63
Qwen4 Max Qwen$345.20$282.12$239.35
Gemini 4 Hydrogen Google$498.38$369.00$319.50
GPT-6.2 Sol OpenAI$664.50$492.00$426.00
Kimi K3.1 Pro Moonshot$669.00$504.00$447.00
Gemini 4 Neon Google$996.75$738.00$639.00
Claude Fable 5.2 Anthropic$2,649$1,944$1,662
GPT-6.2 Astra OpenAI$2,658$1,968$1,704

Prompt length alone does not decide the bill. The coding assistant sends prompts 20 times longer than the chatbot’s, but a tenth as many requests, and with 70% of that input served from the cache it can come out cheaper per month. Request volume and cache hit rate move the total as much as the model you pick. Set your own traffic in the calculator above to price your app exactly.

How the calculator works

The projection is a straightforward token-volume model. From your inputs we derive monthly request volume and token counts, then price them against every model’s live rates:

  • Prompts per month = requests per day × 30 days. If you think in users rather than requests, open Build your workload from users and prompts: monthly active users × prompts per user per day gives the requests per day.
  • Input tokens = prompts per month × average input tokens per prompt.
  • Output tokens = prompts per month × average output tokens per prompt.
  • Monthly cost = (input tokens ÷ 1M) × blended input rate + (output tokens ÷ 1M) × output rate, where the blended input rate applies your prompt-cache hit rate: cached tokens are billed at each model’s own cached-input rate and the rest at the standard input rate.

In other words, a 30% cache hit rate means 30% of your input tokens are billed at the model’s cached rate and 70% at the full input rate. Output tokens are never cached, so they’re always billed at the standard output rate.

The workload you set here is the same one used on the models table, the cheapest models ranking and the home page. It is saved in your browser and in the page link, so a copied link reopens the same numbers.

A worked example

Say you have 5,000 monthly active users, each sending 8 prompts a day, with 1,500 input tokens and 500 output tokens per prompt, at a 30% cache hit rate. That’s 1.2M prompts/month → 1.8B input tokens and 600M output tokens. For a model priced at $2 input / $10 output / $0.20 cached per 1M, the blended input rate is ($2 × 0.7) + ($0.20 × 0.3) = $1.46/1M, so input ≈ 1,800 × $1.46 = $2,628 and output ≈ 600 × $10 = $6,000 — about $8,628/month. Change any field in the workload bar and every model re-ranks instantly.

If this estimate looks higher than you'd like, four concrete levers move it the most — caching, batching, model routing, and context trimming — each with worked math in How to Cut Your LLM API Bill by 80%. Since caching discounts vary a lot by provider, use the cache savings calculator to see which model rewards your repeated context the most before picking one from this table.

The estimate assumes a 30-day month and steady traffic; real bills vary with burst patterns, retries, and tool-use overhead. Treat it as a planning figure and confirm live rates on the pricing page. See methodology for data sources. This projects chat/completion cost only — if your app also embeds documents for search or RAG, see embedding model pricing and rankings for that side of the bill. And if you're building a multi-step tool-using agent rather than single-turn chat, this model badly underestimates the real cost — use the agent cost calculator instead, since agent context grows quadratically with step count, not linearly.

API pricing by provider

Frequently asked questions

Is the calculator accurate for my real usage?
It is a planning estimate. It models steady monthly traffic at a 30-day month using live per-token rates. Real bills vary with traffic bursts, retries, tool-use overhead, and streaming, so treat the figure as a well-grounded projection rather than an invoice.
How is the prompt-cache hit rate applied?
Only to input tokens. At a 30% hit rate, 30% of input tokens are billed at the model’s cached-input rate and 70% at the standard input rate. Output tokens are never cached and are always billed at the full output rate.
Are the values I enter sent anywhere?
No. All calculation happens in your browser. The traffic and token numbers you type are never transmitted to or stored on our servers.
Why does the cheapest model change when I adjust output length?
Because models have very different input-to-output price ratios. A model with cheap input but expensive output can win for short answers and lose for long ones, so the ranking re-sorts as you change the input/output mix.
What counts as a 'prompt'?
One request/response round trip to the model. Multi-turn conversations send the prior history as input each turn, so long chats increase input tokens — account for that in your average input-tokens figure.