LLM API Cost Calculator
Model your monthly AI API spend across leading frontier and open-weight models—factoring in daily request volume, input/output token ratios, and prompt caching hit rates.
Visual Monthly Cost Breakdown
Updated Nov 2026Input (obsidian) vs Output (terracotta) share across selected models.
$0.1/1M in · $0.5/1M out · $0.01/1M cached | 1M | $11.04 $9.60 + $1.44 | $16.88 | -$12.96 | $27.91 |
$0.1/1M in · $0.5/1M out · $0.01/1M cached | 1.05M | $11.04 $9.60 + $1.44 | $16.88 | -$12.96 | $27.91 |
$0.1/1M in · $0.5/1M out · $0.01/1M cached | 1.05M | $11.04 $9.60 + $1.44 | $16.88 | -$12.96 | $27.91 |
$0.15/1M in · $0.47/1M out · $0.016/1M cached | 1M | $16.70 $14.40 + $2.30 | $15.86 | -$19.30 | $32.57 |
$0.15/1M in · $0.47/1M out · $0.016/1M cached | 1M | $16.70 $14.40 + $2.30 | $15.86 | -$19.30 | $32.57 |
$0.1/1M in · $0.3/1M out · no cache tier | 1.31M | $24.00 | $10.13 | No cache | $34.13 |
$0.15/1M in · $0.6/1M out · $0.003/1M cached | 1.05M | $14.83 $14.40 + $0.43 | $20.25 | -$21.17 | $35.08 |
$0.15/1M in · $0.5/1M out · $0.03/1M cached | 1.05M | $18.72 $14.40 + $4.32 | $16.88 | -$17.28 | $35.59 |
$0.15/1M in · $0.6/1M out · $0.015/1M cached | 262K | $16.56 $14.40 + $2.16 | $20.25 | -$19.44 | $36.81 |
$0.15/1M in · $0.6/1M out · $0.015/1M cached | 1.05M | $16.56 $14.40 + $2.16 | $20.25 | -$19.44 | $36.81 |
$0.2/1M in · $1.25/1M out · $0.02/1M cached | 400K | $22.08 $19.20 + $2.88 | $42.19 | -$25.92 | $64.27 |
$0.37/1M in · $1.25/1M out · $0.075/1M cached | 1.05M | $46.32 $35.52 + $10.80 | $42.19 | -$42.48 | $88.51 |
$0.37/1M in · $1.25/1M out · $0.075/1M cached | 1.05M | $46.32 $35.52 + $10.80 | $42.19 | -$42.48 | $88.51 |
$0.35/1M in · $1/1M out · $0.17/1M cached | 524K | $58.08 $33.60 + $24.48 | $33.75 | -$25.92 | $91.83 |
$0.3/1M in · $2.5/1M out · $0.03/1M cached | 1.05M | $33.12 $28.80 + $4.32 | $84.38 | -$38.88 | $117.50 |
$0.7/1M in · $2.1/1M out · $0.07/1M cached | 1.05M | $77.28 $67.20 + $10.08 | $70.88 | -$90.72 | $148.15 |
$0.764/1M in · $1.5016/1M out · $0.2/1M cached | 1.05M | $102.14 $73.34 + $28.80 | $50.68 | -$81.22 | $152.82 |
$0.825/1M in · $4.125/1M out · $0.0825/1M cached | 1.05M | $91.08 $79.20 + $11.88 | $139.22 | -$106.92 | $230.30 |
$1.25/1M in · $2.5/1M out · $0.2/1M cached | 2M | $148.80 $120.00 + $28.80 | $84.38 | -$151.20 | $233.18 |
$0.75/1M in · $4.5/1M out · $0.075/1M cached | 400K | $82.80 $72.00 + $10.80 | $151.88 | -$97.20 | $234.68 |
$1/1M in · $5/1M out · $0.05/1M cached | 1.05M | $103.20 $96.00 + $7.20 | $168.75 | -$136.80 | $271.95 |
$1/1M in · $5/1M out · $0.05/1M cached | 1.05M | $103.20 $96.00 + $7.20 | $168.75 | -$136.80 | $271.95 |
$1.425/1M in · $4.275/1M out · $0.0713/1M cached | 1M | $147.07 $136.80 + $10.27 | $144.28 | -$194.93 | $291.35 |
$1.4/1M in · $4.4/1M out · $0.0689/1M cached | 1.05M | $144.32 $134.40 + $9.92 | $148.50 | -$191.68 | $292.82 |
$1.68/1M in · $5.28/1M out · $0.336/1M cached | 1M | $209.66 $161.28 + $48.38 | $178.20 | -$193.54 | $387.86 |
$1.5/1M in · $7.5/1M out · $0.075/1M cached | 1.05M | $154.80 $144.00 + $10.80 | $253.13 | -$205.20 | $407.93 |
$2/1M in · $6/1M out · $0.5/1M cached | 500K | $264.00 $192.00 + $72.00 | $202.50 | -$216.00 | $466.50 |
$2/1M in · $10/1M out · $0.1/1M cached | 1M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.1/1M cached | 1.05M | $206.40 $192.00 + $14.40 | $337.50 | -$273.60 | $543.90 |
$2/1M in · $10/1M out · $0.2/1M cached | 1.05M | $220.80 $192.00 + $28.80 | $337.50 | -$259.20 | $558.30 |
$2/1M in · $10/1M out · $0.2/1M cached | 1.05M | $220.80 $192.00 + $28.80 | $337.50 | -$259.20 | $558.30 |
$2/1M in · $10/1M out · $0.2/1M cached | 1.05M | $220.80 $192.00 + $28.80 | $337.50 | -$259.20 | $558.30 |
$2.5/1M in · $15/1M out · $0.25/1M cached | 1.05M | $276.00 $240.00 + $36.00 | $506.25 | -$324.00 | $782.25 |
$3/1M in · $15/1M out · $0.15/1M cached | 1.05M | $309.60 $288.00 + $21.60 | $506.25 | -$410.40 | $815.85 |
$3/1M in · $15/1M out · $0.3/1M cached | 1M | $331.20 $288.00 + $43.20 | $506.25 | -$388.80 | $837.45 |
$4/1M in · $12/1M out · $0.5/1M cached | 1M | $456.00 $384.00 + $72.00 | $405.00 | -$504.00 | $861.00 |
$4/1M in · $20/1M out · $0.2/1M cached | 1M | $412.80 $384.00 + $28.80 | $675.00 | -$547.20 | $1,087.80 |
$4/1M in · $20/1M out · $0.4/1M cached | 1.05M | $441.60 $384.00 + $57.60 | $675.00 | -$518.40 | $1,116.60 |
$5/1M in · $25/1M out · $0.5/1M cached | 1M | $552.00 $480.00 + $72.00 | $843.75 | -$648.00 | $1,395.75 |
$8/1M in · $40/1M out · $0.2/1M cached | 1M | $796.80 $768.00 + $28.80 | $1,350.00 | -$1,123.20 | $2,146.80 |
$8/1M in · $40/1M out · $0.4/1M cached | 1.05M | $825.60 $768.00 + $57.60 | $1,350.00 | -$1,094.40 | $2,175.60 |
$8/1M in · $40/1M out · $0.4/1M cached | 1.05M | $825.60 $768.00 + $57.60 | $1,350.00 | -$1,094.40 | $2,175.60 |
$10/1M in · $50/1M out · $0.25/1M cached | 1M | $996.00 $960.00 + $36.00 | $1,687.50 | -$1,404.00 | $2,683.50 |
$10/1M in · $50/1M out · $1/1M cached | 1.05M | $1,104.00 $960.00 + $144.00 | $1,687.50 | -$1,296.00 | $2,791.50 |
$10/1M in · $50/1M out · $1/1M cached | 1.05M | $1,104.00 $960.00 + $144.00 | $1,687.50 | -$1,296.00 | $2,791.50 |
How it works
- 1Choose a realistic workload preset (SaaS Copilot, Coding Agent, RAG, Classifier) or dial in your exact daily requests and active days.
- 2Set your average input and output tokens per request—use our Token Counter first if you want exact numbers from a sample prompt.
- 3Adjust your expected Prompt Cache Hit Rate (%) to see how prefix caching cuts input spend on Claude, OpenAI, Gemini, DeepSeek, and Grok.
- 4Compare the Cheapest Frontier Option vs Cheapest Overall, inspect input/output cost split bars, and export the full breakdown to CSV.
Frequently asked questions
Why do input and output tokens cost different amounts?
Output generation is memory-bandwidth bound and runs sequentially token-by-token, whereas input prefill runs in parallel. As a result, output tokens are typically 3× to 8× more expensive per million than input tokens.
How does Prompt Cache Hit Rate change my bill?
When you place static system instructions, tool schemas, or shared documents at the start of every request, providers discount cached input reads by 50% to 98%. Models without a cache tier on a given serverless API are billed at full input rate.
Which models count as 'Cheapest Frontier Option'?
We compare flagship and frontier reasoning models—GPT-6.2 Astra & Sol, Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Gemini 4 Neon, DeepSeek V4 Pro, and Grok 4.7—and highlight whichever delivers the lowest monthly bill for your traffic.
Are reasoning tokens accounted for in output tokens?
Yes—when estimating costs for reasoning models like GPT-6.2 Astra, Claude Fable 5.2 with adaptive thinking, Gemini 4 Neon, or DeepSeek V4 Pro, add your expected thinking tokens to Average Output Tokens per request.