LLM API cost calculator
Estimate what an AI feature will cost to run. Enter the average input and output tokens per request and how many requests you expect each day. The calculator ranks popular models by monthly cost and lets you edit every price, apply a prompt-caching share and switch on batch pricing.
How API pricing works
Most providers charge per million tokens, with a lower price for input and a higher price for output. Reasoning tokens usually bill as output. Cached input and batch processing can cut costs substantially, which is why those two fields are included.
Why prices are editable
Model lineups and prices change often, and some models charge more above a long-context threshold. The default table holds indicative list prices from public comparisons as of November 2026. Overwrite any figure with the number on your provider's pricing page for an accurate forecast.
Cutting your AI bill
Shorten system prompts, cache repeated context, cap output length, route simple requests to cheaper models, and use batch endpoints for work that can wait. Use the LLM Token Counter to measure real prompt size first.
What it does not include
Image, audio and tool-use charges, fine-tuning, hosting, embeddings and rate-limit tiers are not modelled. Treat the result as a planning estimate.