LLM API cost

LLM API cost calculator

Monthly and per-request cost of an LLM API workload from input tokens, output tokens, requests a month, cached share and the Batch discount.

Model, priced from the vendor page on the verified date
Input (prompt) tokens per request
Output (completion) tokens per request
Requests a month
Share of input tokens served from the prompt cache
cost per request0.00

Prices read from the vendor pages on 2026-10-20. Arithmetic on list prices, not advice or a quote.

Pro

Saving and exports need Norwell Tools Pro, $9 a month. See what is in it. Everything above is free.

How it works

Vendors price input and output tokens separately per million tokens. Output tokens cost several times more than input, so a chatty assistant costs more than a long-prompt classifier with the same total token count. Cached input tokens are billed at the cache-read price (often a tenth of the input price or less) and the Batch API halves both prices at most vendors in exchange for asynchronous delivery.

The formula

cost_per_request = (input_tokens * ((1 - cached) * input_price + cached * cached_price) + output_tokens * output_price) / 1,000,000 * (batch ? 1 - discount : 1); monthly = cost_per_request * requests

Worked example

With the inputs the page opens on:

  • model: claude-sonnet-5-5
  • input tokens: 1500 tokens
  • output tokens: 500 tokens
  • requests per month: 100000
  • cached share pct: 0%
  • batch: false

gives

  • cost per request: $0.00800
  • cost per 1k requests: $8
  • monthly cost: $800
  • monthly input cost: $300
  • monthly output cost: $500
  • input share pct: 37.5 %

Sources

Prices read from each vendor's own pricing page on 2026-10-20; the page may have changed since. This is arithmetic on published list prices, not advice or a quote. Check the vendor's page before committing a budget.

Questions

Where do the prices come from?
Each vendor's own pricing page, read on 2026-10-20. The source link is under the result.
Does this include thinking or reasoning tokens?
Reasoning tokens are billed as output tokens at every vendor shown. Add your typical reasoning length to output tokens.
Why does my bill differ?
Tiered pricing (prompts over 200K tokens at Google and xAI, over 100K on Claude Haiku 5.5), regional multipliers, fast modes and tool calls change the rate. This tool uses the standard list price.

Related tools