LLM Cost Calculator
Estimate what a model API call costs before you ship it.
This GPT API pricing calculator turns token counts into dollars. Choose a chat model, type how many input and output tokens a call uses, then multiply by your call volume to see the monthly bill. Prompt caching, if the provider offers it, drops the cached tokens onto a cheaper rate. Everything runs in your browser against a shared price table, so you can compare GPT-4o, Claude and Gemini side by side without an account.
Your API call
Cost for 1,000 calls
$7.50
$0.007500 per call on GPT-4o
- Per call
- $0.007500
- Input cost / call
- $0.002500
- Output cost / call
- $0.005000
- Price / 1M in · out
- $2.50/1M · $10/1M
Per call
$0.007500
- Input (fresh)33%
- Output67%
Prices updated January 2026. List pay-as-you-go rates — verify with the provider's own pricing page before you budget. Token counts are yours to supply; this tool does not tokenize your text.
How it works
- 1
Pick the model
Select the model you call from the dropdown. The per-1M input and output rates update underneath so you can see what you are paying for before you enter a single token.
- 2
Enter tokens per call
Set the input (prompt) and output (completion) tokens for a typical request. Drag the sliders for quick what-ifs, or type exact counts from a usage log. If the model supports prompt caching, add the cached share to price it at the lower rate.
- 3
Scale to your volume
Enter how many calls you expect — a batch job, a daily total, or a month of traffic. The hero figure shows the combined cost; the stat grid keeps the per-call number and the input/output split in view.
Instant & 100% private — nothing is uploaded
Every calculation runs locally in your browser. The prompts, token counts and numbers you enter stay on your own device and are never sent to a server — nothing is stored, logged or shared.
Frequently asked questions
- How does this AI API cost estimator calculate the price?
- It multiplies your input tokens by the model's input rate and your output tokens by the output rate, both quoted per million tokens, then sums them for one call and multiplies by your call count. Cached input tokens use the provider's cheaper cached rate when one exists.
- Why are input and output priced differently?
- Providers charge more for generated (output) tokens than for the prompt (input) tokens they read. GPT-4o, for example, bills output at four times the input rate, so a chatty completion costs far more than a long prompt with a short answer.
- How do I get the token counts to enter?
- Use your provider's usage dashboard or the token count returned in each API response. This token cost calculator does not tokenize text itself — it takes the counts you supply and does the pricing math, which keeps it accurate for any model.
- Are the prices current?
- Rates come from a shared table dated on the page under the result. Providers change pricing often, so treat the number as a close estimate and confirm against the official pricing page before you commit a budget.
Important
For planning and estimates only. Prices come from a published rate table dated on the page; providers change pricing without notice, and token counts here are approximations. Confirm against the provider’s own pricing before you budget or commit.
More tools
More from the Hivly network
Free sister tools on our other sites.