LLM API cost calculator
Budget an AI feature from active users, requests, caching and retries. Share the assumptions with finance, then compare model prices for your token volumes.
At a glance
An LLM API cost budget combines expected users, requests, tokens per request and applicable token prices. Use this free planner to estimate monthly token charges and share an illustrative scenario. Provider billing, non-token fees and actual request behaviour can differ from the estimate.
What will your AI feature cost?
Build an illustrative monthly token budget from adoption and request sizes. Adjust the assumptions, then share the scenario with finance.
Estimated monthly token cost
$825.00
33,000 attempts including retries · $0.03 per planned request
Cached-input pricing is used where available; otherwise full input price applies. Batch discount is your assumption: verify eligibility and stacking with your provider. Cache writes, long-context surcharges, tools, infrastructure, tax and subscription seats are excluded. Extra attempts use the same token sizes.
Compare models on your own tasks before switching. A benchmark score does not guarantee the same output quality.
Compare models by monthly token volume
Enter volumes in millions of tokens (e.g. 10 = 10,000,000). Uses provider list prices per 1M tokens; cached-input discounts and tiered rates aren’t applied.
Estimated monthly cost
$110
gpt-5.5 · OpenAI · 80.6% coding
Equal-or-better coding, lower cost
claude-opus-4-7
Anthropic · 83.5% coding
$100/mo
save $10.00 (9%)
google/gemini-2.5-pro
DeepInfra · 83.1% coding
$32.50/mo
save $77.50 (70%)
Prices updated 24 November 2026. See the full LLM API Pricing Index. Benchmarks: coding via Aider polyglot & SWE-bench Verified; reasoning & math via Epoch AI.
How the calculator works
- How is the LLM cost calculated?
- The feature planner multiplies users, requests and tokens per request, includes your extra-attempt assumption, applies cached-input prices where available and an optional user-supplied batch discount. Verify batch eligibility and stacking with the provider. The token-volume comparison below uses standard input and output list prices. Both are estimates: cache writes, long-context tiers, tools, infrastructure, subscription seats and tax are excluded.
- How do I find a cheaper model without losing quality?
- Pick a model, token volume and use case in the comparison calculator. Coding, reasoning and math use available benchmark scores; vision, tool use and long context use capability filters. These comparisons suggest candidates for evaluation, not guaranteed equal output quality. Test quality, latency and compatibility on your own tasks before switching model or host.
- Are these real, current prices?
- Yes — prices come from the StackSpend LLM Pricing Index, synced daily from public sources across OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral, and inference hosts like Groq, Together AI, Fireworks, and DeepInfra.
- Where do the benchmark scores come from?
- Coding comes from the Aider polyglot leaderboard and Epoch AI’s SWE-bench Verified; reasoning from GPQA Diamond; math from MATH Level 5 and Mock AIME — the Epoch AI Benchmarking Hub (epoch.ai), used under CC BY. Vision, tool-use, and long-context are capability filters (not yet quality-scored).