devpocket.dev

LLM Cost Calculator

Estimate per-request, daily, and monthly API costs and compare models for one workload.

Runs locally
Loading tool…

How to use

Choose a model, enter input and output tokens per request, then add the expected cache-hit share and requests per day. Enable Batch when the workload can use a provider's asynchronous batch API. Results update immediately and the table ranks every included model for the same workload.

Long prompts switch to long-context rates where the provider has them (OpenAI above 272K input tokens, Claude Haiku 5.5 above 100K), marked in the table. Announced price changes apply automatically from their effective date.

Cached input means cache reads only. Cache writes, cache storage, tools, images, regional surcharges, and priority processing are not included. Prices are a dated snapshot, so confirm them before budgeting production spend.

FAQ

How is cached input calculated?

The selected percentage of input tokens uses the provider cache-read price; the rest uses the standard input price.

Does monthly cost use calendar months?

The monthly estimate uses 30 days for a stable comparison.

Are tool calls and images included?

No. The calculator covers text-token charges only. Provider-specific tool, image, audio, storage, and regional fees are excluded.

Related tools