LLM API Cost Calculator
Estimate monthly AI API costs from input/output tokens, requests per day and price per million tokens. Compare models side by side.
🔒 Processed locally in your browser — we don’t upload your input.
Enter current prices (USD per 1M tokens) from your provider’s pricing page:
How to use the LLM Cost Calculator
Before you ship a chatbot, summariser or AI agent, you need to know what it will cost at scale. This calculator multiplies the average input and output tokens per request by your expected request volume and each model’s price per million tokens, giving per-request, daily and monthly figures. Output tokens are priced separately because nearly every provider charges more for generated text than for prompt text.
Prices change often and vary by provider, region and discount tier, so the tool does not hard-code a price list that would quickly go out of date. Instead you enter the current input and output price for up to three models, taken from the provider’s pricing page, and see them compared side by side. You can also set a cache-hit percentage to approximate prompt caching discounts, which many providers now offer for repeated system prompts.
Use the Token Counter to measure a realistic prompt and response first, then plug those numbers in here. Product managers use it for budgeting, developers for choosing between a large and a small model, and founders for pricing their own AI features. All maths runs locally in your browser.
Frequently asked questions
Where do I get current prices?
From each provider’s official pricing page. Enter the price per 1 million input and output tokens.
Why are output tokens separate?
Providers usually charge more for output tokens than input tokens.
What does cache hit % do?
It applies your discount to the cached share of input tokens to approximate prompt-caching savings.
Is the month 30 days?
Yes, monthly cost uses 30 days.
About this tool
Estimate monthly AI API costs from input/output tokens, requests per day and price per million tokens. Compare models side by side. People also look for: llm cost calculator, openai api cost calculator, ai api pricing calculator, token cost.
Related searches