LLM API Cost & Monthly Budget Calculator
Compare inference costs across 20+ foundation models with prompt caching and batch discounts.
Workload Presets
Parameters
Applies discounted cached input rate on supported models.
| Model β | Provider β | Skills (0β100) β | Daily Cost β | Monthly (30d) β | Annual Cost β | Compare |
|---|
Understanding LLM API Pricing & Token Economics
Modern Large Language Model APIs charge based on token volumeβspecifically per 1,000,000 (1M) input tokens and 1,000,000 output tokens. Because output generation requires heavy autoregressive sampling while input processing benefits from parallelized matrix operations, output tokens typically cost 4Γ to 10Γ more than input tokens.
Our calculator factors in Prompt Caching (which discounts repeated system prompts or RAG context by 75β90%) and Batch API Mode (which offers 50% off for asynchronous workloads processed during off-peak hours).
Formula for Monthly Cost
If Batch API Mode is active, the resulting total is multiplied by 0.50.
Official Pricing Sources
All rates are synchronized with official vendor documentation:
Frequently Asked Questions
How much can Prompt Caching and Batch API discounts save?
Prompt Caching typically cuts repeated system-prompt or RAG input costs by 75% to 90% on OpenAI, Anthropic, Google Gemini, and DeepSeek. Enabling asynchronous Batch API mode applies an additional 50% discount on supported models, while DeepSeek also offers 50% off-peak UTC pricing.
Why do LLM output tokens cost 4Γ to 5Γ more than input tokens?
Input tokens are processed simultaneously during a single parallel prefill pass, whereas output tokens must be generated sequentially one token at a time with full KV-cache memory bandwidth. Controlling max_tokens and concise output formatting has the largest impact on monthly spend.
How can I share this cost table with my engineering team?
Use Copy Shareable Link to preserve your exact token volume and filter parameters in the URL, click Copy Markdown to paste a formatted table directly into GitHub PRs or Notion docs, or use Export CSV for spreadsheets.
Explore Provider Hubs & Popular Model Comparisons
Jump directly to verified provider rate sheets or side-by-side frontier model benchmarks: