← back to flaviocopes.com

Inference cost calculator

← All tools· Model prices· Methodology

The dominant cost of an AI app is the LLM calls — and almost nobody can estimate it. Pick what you're building, tune the assumptions, and compare 29 models across OpenAI, Anthropic, Google, xAI, Mistral, OpenRouter and Workers AI.

~~~

What are you building?

~~~

Daily active users

Usage assumptions (all editable)

Agent steps count as calls, not runs.

System prompt + history + retrieved context. ~4 chars ≈ 1 token.

Output tokens cost 4–6× more than input on most models.

Share of input tokens billed at the provider's cached rate (~90% cheaper).

publishes no cached-input discount, so the cache rate is ignored for it.

~~~

Estimated monthly inference bill · 

/mo

per user / month

per LLM call

Fresh input Cached input Output

calls ·  input tokens ·  output tokens per month

Suggested for these assumptions

at scale

Daily active usersMonthly billPer user

Every model, same assumptions

Sorted by monthly bill. Click a row to select that model.

ModelProviderTier$/mo$/uservs selected