API Token Cost Calculator

Estimate daily and 30-day LLM API spend with separate uncached input, cached context, and output token rates.

Estimated Monthly API Spend (30 Days) USD 1,642.50 USD 54.75/day • USD 5.48 per 1,000 requests
Cost per 1,000 Calls USD 5.48
Monthly Input + Cache Cost USD 742.50
Monthly Output Token Cost USD 900.00
Inputs
Try:
Amounts are treated in the selected currency; no foreign-exchange conversion is applied.
calls / day
Total API calls across all users per day.
tokens
Fresh prompt tokens sent on each call (~1 token ≈ 0.75 English words).
tokens
System prompt or document tokens served from context cache.
tokens
Generated completion/reasoning tokens per call.
USD / 1M
Editable reference rate per 1M input tokens ($).
USD / 1M
Editable reference rate per 1M cached context tokens ($).
USD / 1M
Editable reference rate per 1M output tokens ($).
Results & Graph
Estimated Monthly API Spend (30 Days)
USD 1,642.50
USD 54.75/day • USD 5.48 per 1,000 requests
Cost per 1,000 Calls
USD 5.48
Monthly Input + Cache Cost
USD 742.50
Monthly Output Token Cost
USD 900.00
Monthly Token Volume
1230M tokens

Monthly Token Cost Breakdown (USD)

Uncached Input vs. Cached Context vs. Output Tokens
Graph 1 • Monthly Token Cost Breakdown (USD) — Core KPI & Supporting Drivers Displays primary efficiency benchmark alongside your top 3 commercial drivers.
Monthly Token Cost Breakdown (USD) • unit economics HEADLINE BENCHMARK USD 1,642.50 Estimated Monthly API Spen ✓ Verified Commercial Model Cost per 1,000 Calls USD 5.48 Monthly Input + Cache Cost USD 742.50 Monthly Output Token Cost USD 900.00
Graph 2 • Multi-Point Performance & Compounding Curve Tracks how your target metric scales across operating checkpoints.
0 1.1k 2.3k --- High-Leverage Case 1.3k -20% 1.5k -10% 1.6k +0% 1.8k +10% 2.0k +20%
Graph 3 • Result from 70% to 130% of current volume Quantifies downside resilience and upside operating leverage.
0 1.2k 2.3k 1.1k 70% 1.4k 85% 1.6k 100% 1.9k 115% 2.1k 130%
Summary: Monthly API cost is USD 1,642.50, consisting of USD 562.50 uncached input, USD 180.00 cached input, and USD 900.00 output tokens.
Summary: At 10,000 requests/day (1,500 uncached input, 2,000 cached input, and 600 output tokens per call), your monthly 30-day API spend is USD 1,642.50 (USD 742.50 input/cache and USD 900.00 output generation).
Interactive chart & math engine powered by CalculatorGraph

Formula: Per-Request & Monthly Token Billing Equation

Costrequest = TinPin + TcachePcache + ToutPout106
Cost_req = (T_in × P_in + T_cache × P_cache + T_out × P_out) / 1,000,000; Monthly = Cost_req × DailyCalls × 30
  • Tin, T_cache, T_out: Uncached input, cached context, and output token counts per call
  • Pin, P_cache, P_out: USD price per 1,000,000 tokens for each tier

Rounding: Monthly and daily totals round to 2 decimal places; per-1,000-call cost rounds to 3–4 decimal places.

Worked example: 10,000 Calls/Day with 1,500 Input ($1.25/1M), 2,000 Cached ($0.30/1M), and 600 Output ($5.00/1M)

Estimate monthly inference spend for a production assistant handling 10,000 calls/day.

  1. Input cost/call = 1,500 × $1.25 ÷ 1,000,000 = $0.001875.
  2. Cached cost/call = 2,000 × $0.30 ÷ 1,000,000 = $0.000600.
  3. Output cost/call = 600 × $5.00 ÷ 1,000,000 = $0.003000.
  4. Total per call = $0.005475 ($5.475 per 1,000 calls) → $54.75/day → $1,642.50/month.
Result: $1,642.50/month ($54.75/day) across 1,230M total monthly tokens.

Frequently Asked Questions

How many tokens is 1,000 English words?

With modern BPE tokenizers, 1 token averages roughly 4 characters or 0.75 words in English, so 1,000 words is approximately 1,330 tokens.

Why is the cost per 1,000 calls the same in every preset?

Because the presets only change how many calls you make per day. The tokens per call and the prices per token are unchanged, so each call still costs $0.005475 and every 1,000 calls cost $5.475. Only the daily and monthly totals move with volume, in direct proportion to the number of calls.

Are the default token prices current?

The page describes them as dated reference benchmarks that are fully editable. They are not tied to any particular provider or model. Before using the result in a budget, look up the current published rates for the exact model you call and replace all three price fields with those figures.

What is the difference between uncached and cached input tokens?

Uncached input is new text the model has to process from scratch on this call, such as the user's message. Cached input is a repeated prefix, such as a long system prompt, that the provider has stored from an earlier call and bills at a lower rate. On the default the cached rate is $0.30 per million against $1.25.

How do I know how many of my tokens are actually cached?

Check the usage data your provider returns with each response or in its billing dashboard. Many APIs report cached input tokens as a separate count. Average that over real traffic and enter it in the cached field, putting the rest of the input in the uncached field. Do not assume every repeated token hits the cache.

Why does output cost more than input on the default?

Output is commonly priced above input on published rate cards, and this page follows that pattern. On this page's defaults output is $5 per million against $1.25 for uncached input. That is why 600 output tokens cost more each month than the 1,500 plus 2,000 tokens of combined input and cached context.

Does the monthly figure include tax?

No. The calculator multiplies tokens by the prices you enter and nothing else. Sales tax, VAT or GST, foreign transaction fees on your card, and any minimum spend or platform fees are not included. Add them separately based on how your provider invoices you and where your business is registered. Those extras can be a meaningful share of the final bill.

How should I model a chatbot where history grows each turn?

Work out the average input across all turns, not just the first. If the first turn sends a few hundred tokens and the tenth sends several thousand because it includes the whole conversation, the average sits somewhere in between. Put the repeated system prompt in the cached field and the growing history in the uncached field unless your provider caches it too.

What does the monthly token volume line tell me?

It is the total of all three token types over 30 days, in millions. On the default it is 1230M tokens. It is handy for checking against rate limits or usage quotas, and for comparing with what your provider's dashboard reports, which is a quick way to catch an input mistake.

How do I estimate an annual budget from this page?

Multiply the daily cost by the number of days in the year rather than the 30-day monthly figure by 12. On the default, $54.75 a day over a full year is a little more than twelve times $1,642.50, because twelve 30-day months fall five days short of a calendar year. Then add expected growth in traffic and token counts.

Can I compare two models with this calculator?

Yes, run it twice. Keep the request volume and token counts the same, change only the three prices, and compare the per-1,000-call figure. If one model tends to give longer answers, adjust its output tokens too, because a cheaper rate can be cancelled out by more verbose responses. Cached pricing may also differ between models.

Why would my invoice be higher than this estimate?

Usually because the token counts entered were too low, cache hits were fewer than assumed, or extra charges such as cache storage, tool calls or hidden reasoning tokens were billed. Compare a week of real usage logs with the inputs here and adjust the fields until the estimate matches what you were charged.

What the $1,642.50 default is made of

The default models an application making 10,000 API calls a day. Each call sends 1,500 tokens of fresh input, reuses 2,000 tokens of cached context, and gets back 600 tokens of output. The rates are $1.25 per million uncached input tokens, $0.30 per million cached tokens and $5 per million output tokens. The result is $1,642.50 for a 30-day month, $54.75 a day, or $5.475 for every 1,000 requests.

The page splits that monthly figure into two parts: $742.50 for input and cached context together, and $900.00 for output. It also reports monthly token volume of 1230M tokens, which is the 1,500 plus 2,000 plus 600 tokens in each call, times 10,000 calls, times 30 days, written in millions.

Those rates are the page's editable reference values, not a quote from any provider. Replace all three with the prices on your provider's current pricing page for the exact model and tier you use before trusting any total.

One call, worked out by hand

Per call, the uncached input costs 1,500 tokens times $1.25 divided by a million, which is $0.001875. The cached context costs 2,000 times $0.30 divided by a million, $0.0006. The output costs 600 times $5 divided by a million, $0.003. Add the three and one call costs $0.005475.

Everything else scales from there. Multiply by 1,000 for the $5.475 per 1,000 calls line. Multiply by 10,000 daily calls for $54.75 a day, and by 30 for $1,642.50 a month. We checked each step and the page agrees with the hand calculation exactly.

The month is fixed at 30 days. For a 31-day month your bill would be one day's cost higher, and for annual budgeting you should multiply the daily figure by the full number of days in the year rather than the monthly figure by 12, which would undercount by five days.

Doing this arithmetic once is worthwhile because it shows where the money goes before you touch any field. Here the output line alone is more than half of every call, the uncached input is about a third, and the cached context, despite being the largest block of tokens, is only about a tenth of the cost.

Output tokens are a small share of volume and a big share of cost

Of the roughly four thousand tokens in each default call, only 600 are output, roughly 15% of the volume. Yet output accounts for $900.00 of the $1,642.50 monthly bill, about 55%. That is because the default output rate is four times the uncached input rate and more than sixteen times the cached rate.

So the most effective single lever is usually the length of the response. Halve output from 600 tokens per call, leave everything else alone, and the per-1,000 cost falls from $5.475 to $3.975, a cut of more than a quarter. Shorter system instructions asking for concise answers, structured output formats and sensible maximum token limits all push in this direction.

Input trimming helps too, but less per token at these rates. Removing 100 uncached input tokens per call saves $0.000125 a call, while removing 100 output tokens saves $0.0005, four times as much.

How much the cached context field saves

Cached tokens are input tokens your provider has already seen and stored, typically a long system prompt, tool definitions or a reference document repeated on every call. On the default they are billed at $0.30 per million instead of $1.25, a 76% discount on those 2,000 tokens.

To see what caching is worth, move the 2,000 cached tokens into the uncached field, or set the cached price equal to the uncached price. The per-1,000 cost rises from $5.475 to $7.375. Caching saves $1.90 per 1,000 calls on these inputs, roughly a quarter of what the bill would otherwise be.

The saving depends on the cache actually being hit. If calls arrive too far apart, or the cached prefix changes between calls, the provider may bill the tokens at the full input rate. Use your provider's usage logs to see what share of input was really served from cache, and enter that split here rather than assuming every repeated token is cached.

Cache charges this page does not include

The page's stated limitation is that it does not include hourly context-cache storage fees that some providers charge. If your provider bills for keeping a cache alive, or charges a different rate for writing tokens into the cache the first time, those costs need to be added separately.

The page also has no field for batch discounts, priority tiers, fine-tuned model surcharges, image or audio inputs, or tool and search calls that some APIs bill on top of tokens. If your workload uses any of those, the total here is a floor rather than an estimate.

A practical method is to run this calculator for the token part, then add a separate line for each extra charge from your provider's price list. Keep both in the same spreadsheet so you can update one without losing the other.

Scaling the request volume: 6,000 and 15,000 calls

The lower preset drops traffic to 6,000 calls a day and the higher one raises it to 15,000 calls a day. Cost per 1,000 calls stays at $5.475 in both, because the per-call token mix has not changed. The monthly totals scale in direct proportion: $985.50 at 6,000 calls and $2,463.75 at 15,000 calls a day.

That straight line is the main assumption to question. Real traffic is rarely flat across a month. A product launch, a marketing campaign or a weekday-heavy usage pattern can make some days several times busier than others. If your daily volume varies, enter an average, then run your peak day separately to see what the worst month could look like.

The model also assumes the token counts per call stay constant as volume grows. In practice, new features, longer conversations and growing reference documents tend to push input tokens up over time, so revisit the inputs whenever the product changes.

Counting tokens per request correctly

The most common error is to enter the size of the user's message alone. A real request usually contains the system prompt, any tool or function definitions, conversation history and retrieved documents, as well as the new message. All of that counts as input. In a multi-turn chat, history grows with every turn, so the average input per call is higher than the first turn suggests.

The cleanest source is your provider's usage report or the token counts returned with each API response. Take an average over a representative sample of real calls, split into uncached input, cached input and output, and enter those three figures.

If your model produces hidden reasoning tokens that are billed as output, include them in the output field. They do not appear in the visible reply but they do appear on the invoice, and at the default output rate they are the most expensive tokens in the call.

Turning $0.005475 a call into a per-user cost

The monthly total is useful for a finance team, but product decisions are usually made per user or per feature. The per-call figure is the bridge. On the default, one call costs $0.005475. A user who triggers 20 calls a day costs about 11 cents a day, or roughly $3.29 over a 30-day month.

Compare that with what the user pays you, or what the feature is worth to the business. If a plan earns a few dollars a month and a heavy user can trigger many times the average number of calls, the API bill for that user may exceed their revenue. Running the calculator for your heaviest users, not just the average, shows whether you need usage limits or a higher tier.

The same logic applies to individual features. Give each feature its own run with its own token profile: a summarisation feature with long input and short output will cost very differently from a drafting feature with short input and long output, even on the same model. Adding them up gives a more realistic total than one blended average, and it shows which feature to optimise first.

Finally, leave headroom. Token counts per call tend to drift upward as prompts are extended and features are added, and traffic rarely stays where it was when you set the budget. Re-running the page every month or two with fresh averages from your usage logs keeps the estimate honest.

A currency switch that only changes the symbol

The page offers a display currency selector, but changing it does not convert anything. Switch the default to INR and the result reads INR 1,642.50 instead of $1,642.50, with the same digits. The price fields are still labelled in USD per million tokens.

So if you are budgeting in rupees or euros, either keep the calculation in dollars and convert the final total yourself at your card or invoice rate, or enter prices already converted into your currency and treat the field labels as unitless. Mixing the two would give a total that is wrong by the exchange rate.