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
Monthly Token Volume 1230M tokens
Inputs
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) Uncached Input vs. Cached Context vs. Output Tokens
Uncached Input Tokens: USD 562.50Cached Context Tokens: USD 180.00Output Generation Tokens: USD 900.00 Uncached Input Tokens USD 562.50 Cached Context Tokens USD 180.00 Output Generation Tokens USD 900.00
Graph 2 • Revenue vs. Cost / Overhead Share Ring Proportional unit economics composition
TOTAL USD 1,600.00 Uncached Input Tokens 562.5 (34.2%) Cached Context Tokens 180 (11.0%) Output Generation Tokens 900 (54.8%)
Graph 3 • Monthly LLM Token Spend ($) Across Daily API Traffic Tiers Shows how rates or revenues scale with utilization and volume
0 8.9k 17.7k 1k req/d: 328.5 328.5 1k req/d 5k req/d: 1,642.5 1.6k 5k req/d 10k req/d: 3,285 3.3k 10k req/d 25k req/d: 8,212.5 8.2k 25k req/d 50k req/d: 16,425 16.4k 50k req/d
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 & Mathematical Methodology: 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.

Developer Tools · AI Engineering & Cloud Cost Estimation

API Token Cost Calculator: inputs, method, and how to read the result

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

Choose inputs for the case you are checking

The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.

  • Display Currency: Amounts are treated in the selected currency; no foreign-exchange conversion is applied.
  • Daily API Requests: Total API calls across all users per day.
  • Uncached Input Tokens per Request: Fresh prompt tokens sent on each call (~1 token ≈ 0.75 English words).
  • Cached Context Tokens per Request: System prompt or document tokens served from context cache.

What the calculation includes

With the default values shown, Estimated Monthly API Spend (30 Days) is USD 1,642.50. The calculation follows Per-Request & Monthly Token Billing Equation; the formula and variable definitions above show how the inputs combine.

One-input check: With the other defaults held constant, changing Daily API Requests from 10,000 calls / day to 11,000 calls / day changes Estimated Monthly API Spend (30 Days) from USD 1,642.50 to USD 1,806.75. This is a comparison inside the calculator's stated model, not a prediction.

Where to use caution

  • Default token prices are dated October 2026 reference benchmarks and are 100% editable to match any provider or batch discount tier.
  • Does not include hourly context-cache storage fees charged by some providers.

Scope: Global (USD per 1,000,000 Tokens) Check the assumptions and limitations against your situation before relying on the estimate.

More in Developer Tools: SaaS Metrics Calculator (MRR, ARR, LTV, CAC & Break-Even), Aspect Ratio, Image Dimensions & Storage Converter, App Ad & Subscription Revenue Calculator.