LLM API Cost Calculator

Compare per-request and monthly API costs across 10 major LLM models side by side. Model prompt caching, output length, and request volume in seconds.

Sample:
Fast client-side estimate. Need exact reconciliation? Switch to Exact Token Counts.
Est. Input Tokens
0
Client-side heuristic estimate
Cost / Request
$0.00
Standard API rates
Monthly Cost
$0.00
At configured volume
Prompt Text Stats
0
0 words · 0 B
0 / 200,000 tokens 0.00%
Share link carries parameters & price version only — never prompt text.

Multi-Model API Cost Comparison

Sorted from lowest to highest monthly cost · Prices in USD per 1M tokens · Verified 2026-12-02
Model Provider Input Tok In / Out (1M) Cache Read (1M) Cost / Req Monthly Cost

Explore Model-Specific Calculators

How to Price Your AI SaaS Without Losing Margin

Before launching an AI-powered tool or SaaS subscription, always model your worst-case heavy user. If a $9/month subscriber triggers 1,000 requests with 4,000 input tokens and 1,000 output tokens on a flagship model, your API bill can silently exceed your subscription price.

Three Rules for Healthy AI Unit Economics

  1. Route by task: Use fast, low-cost models (Haiku, GPT-4o mini, Gemini Flash, DeepSeek V3) for 80% of requests and reserve flagship models for complex steps.
  2. Cap output length: Output tokens cost 3×–5× more than input tokens. Set sensible max_tokens limits.
  3. Enable prompt caching: Keep static instructions and schemas at the top of your prompt so repeated calls hit the cache.

Frequently Asked Questions

Which LLM API is cheapest in 2026?

Among major hosted APIs, GPT-4o mini, DeepSeek V3, and Gemini 2.5 Flash consistently offer the lowest per-million-token pricing for high-volume workloads.

Can I export this comparison for my team?

Yes. Click Export CSV or Copy Markdown right above the comparison table to share your budget numbers with stakeholders.