LLM Token Cost Calculator
Estimate AI model costs from input tokens, output tokens, price per million tokens, request volume, and caching assumptions.
Frequently Asked Questions about the LLM Token Cost Calculator
How does the calculator work out the cost?
It uses the standard per-million-token pricing that OpenAI, Anthropic, Google, and most LLM APIs publish. Input cost is input tokens divided by 1,000,000 times your input price, output cost is output tokens divided by 1,000,000 times your output price, and the two add up to the cost per request. That per-request figure is then multiplied by your requests per day, and the daily total is multiplied by 30 for a monthly run rate.
Why are input and output tokens priced separately?
Almost every provider charges more for output (generated) tokens than for input (prompt) tokens, often two to four times as much. Keeping the two rates apart lets you enter the exact prices from your provider's pricing page and see which side of the request drives your bill. The result panel also shows the input share so you can tell at a glance whether prompts or responses dominate.
What is a token and how many words is that?
A token is a chunk of text the model reads or writes, usually a short word or part of a word. As a rough rule of thumb, 1,000 tokens is about 750 English words, so a token averages around four characters. Counts vary by model and language, so for precise billing use your provider's tokenizer or the token usage reported in the API response.
Can I use this for any model, including one not listed?
Yes. The calculator does not assume a specific model. You type in the input price and output price per million tokens for whatever model you are using, so it works for GPT, Claude, Gemini, open-weight models on a hosted endpoint, or anything else billed per token. Just copy the two prices from the provider's pricing page.
Why might my real invoice differ from this estimate?
This is a list-price estimate, not a billing guarantee. It does not account for cached or batch-discounted prompts, free tiers, image or audio tokens, fine-tuning surcharges, tiered enterprise rates, or taxes, and it assumes a flat 30-day month. Treat the output as a planning figure and confirm the exact numbers on your provider's invoice.
How do I price just one API call?
Set requests per day to 1. The cost per request value then equals your single-call cost, and the daily and monthly figures simply repeat that call once per day over 30 days. To compare two models on the same workload, keep the token counts fixed and swap in each model's input and output prices.
Related Calculators
More calculators in "Tech"
RGB to Hex ConverterTwo's Complement CalculatorUptime SLA CalculatorBitwise CalculatorColor Palette GeneratorIEEE 754 Floating Point Calculator
See all 98 calculators in "Tech"