To estimate LLM API cost, enter the number of input tokens and output tokens and choose a model; the calculator multiplies each by the published per-million-token price and adds them. Output tokens usually cost more than input tokens.
How to use the LLM Cost Calculator
- Estimate or enter your input token count.
- Enter the expected output token count.
- Choose the model.
- Read the estimated cost per call, then multiply by your expected volume.
Worked example
If a call uses 2,000 input tokens and 500 output tokens, the cost is the input tokens times the input price plus the output tokens times the output price, each per million tokens.
Tips and common mistakes
- Use the Token Counter to estimate input tokens from your real prompts.
- Multiply the per-call cost by daily calls to project a monthly budget.
- Prices change, so confirm against the provider’s current pricing page.
Frequently asked questions
Where do the prices come from?
They are the published model prices shown on the tool page. Always check the provider for the latest.
Why are output tokens more expensive?
Generating text is more computationally costly than reading it, so providers price output higher.
Is it exact?
It is an estimate based on the token counts you enter.