Cost formula
Savings = (original input tokens − compressed input tokens) / 1,000,000 × input price × monthly requests; With cache: savings += cached tokens / 1M × (full input price − cache read price) × hit rate × monthly requests
Calculator
Compare baseline prompt spend against shorter prompts plus cached context to quantify monthly savings.
Prompt compression
$391.6859.3% lower
4,800 input tokens saved / request · 20,000 requests
Before / after
Shorter prompts plus optional cache share on the compressed prefix.
Token bar
Visualize the input cut that drives the cost delta.
Cache pricing applies only when the selected model lists a cached input rate. Cached share of compressed: 60%.
Cache pricing applies only when the selected model lists a cached input rate. Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Estimate how much you save by shortening prompts, trimming context, or enabling prompt caching. Every removed token cuts input cost on every request, which compounds quickly at high monthly volume. Use this to justify compression, summarization, or cache investments with concrete dollar figures.
Savings = (original input tokens − compressed input tokens) / 1,000,000 × input price × monthly requests; With cache: savings += cached tokens / 1M × (full input price − cache read price) × hit rate × monthly requests
Long prompts are a recurring tax on every API call. Teams that grow context without measuring cost often spend more on redundant instructions and stale history than on the actual generation task.
Aggressive cuts can degrade results. This calculator shows cost impact only—you should eval quality after compression changes before deploying.
Compression removes tokens from the prompt. Caching stores repeated prefix tokens so re-reads bill at a lower rate. Many production systems use both.
No. CentsPerToken uses approximate list prices for planning. Actual savings depend on real token counts, cache hit rates, and current provider rates.
Start with 50–70% for workloads with stable system prompts and shared document context. Measure actual hit rates in provider logs after deployment.