Cost Estimator

Cost Estimator

Updated August 20, 2026

AI API cost calculator. Estimate GPT-5.6, Claude 5, Gemini 3.7 Flash, and DeepSeek V4 bills from published rates (updated 20 Aug 2026).

openai Input: $2/1M | Output: $12/1M
Quick presets:
Input Cost
$0.002000
1,000 tokens
Output Cost
$0.006000
500 tokens
Total per Request
$0.008000
1,500 tokens

Compare Models (select up to 3)

⚠️
Approximate Pricing
Prices last updated: 2026-08-20. Always check provider websites for current rates. Actual costs may vary based on region, volume discounts, and API version.

Quick Monthly Estimates

100/day
$24.00
/month
1,000/day
$240.00
/month
10K/day
$2400.00
/month
100K/day
$24000.00
/month

Features

  • Highly accurate, up-to-date pricing algorithms for top-tier LLM providers (OpenAI, Anthropic, Google, Meta, Mistral)
  • Distinct calculation streams for Input (Prompt) tokens versus Output (Completion) tokens
  • Advanced support for calculating Prompt Caching discounts (e.g., Claude Sonnet 5 cache hits at $0.20 / 1M)
  • Dynamic monthly SaaS budgeting based on projected Daily Active Users (DAU) and batch API scaling
  • Direct pasting support: paste raw text to instantly calculate both the token count and the exact monetary cost
  • Interactive side-by-side model comparison to instantly identify the most cost-effective AI engine

Common Use Cases

  • Pitching AI feature integrations to stakeholders by providing exact monthly API budget forecasts
  • Performing a rigorous cost-benefit analysis between using a flagship model (GPT-5.6 Sol or Claude Opus 5) versus a fast model (GPT-5.6 Luna or Gemini 3.7 Flash)
  • Calculating the exact monetary cost of processing a massive 1-million-token RAG context window
  • Estimating the overhead of "invisible" reasoning tokens generated by models like GPT-5.6 Sol, Claude Opus 5, or DeepSeek V4 Pro
  • Budgeting for massive offline batch processing jobs (which often receive a 50% API discount)

The Asymmetric Economics of LLM APIs

Generative AI pricing is almost universally calculated dynamically based on volume, specifically measured per 1 million tokens ($/1M).

The Core Pricing Dynamics:

  • Asymmetric Billing (Input vs Output): The computational power required to read text (Input) is drastically lower than the power required to generate new text (Output). Therefore, Output tokens are typically priced 3x to 5x higher than Input tokens.
  • The Intelligence Premium: Frontier models (Claude Fable 5 at $10/$50, GPT-5.6 Sol at $5/$30, Claude Opus 5 at $5/$25) still cost many times more per token than Luna ($0.20/$1.20), Gemini 3.7 Flash ($0.75/$3.75 intro), or DeepSeek V4 Flash peak ($0.44/$1.32).
  • Prompt Caching Discounts: Modern APIs now offer massive discounts (often 50% to 90% off) for Cached Input. If you repeatedly send the exact same massive system prompt or RAG document within a short time window, the provider caches the initial computation, drastically dropping your bill.

Examples

Valid - Standard Chat Query
Input: 500 tokens (System + History)
Output: 200 tokens
Cost Profile: Negligible. Best handled by fast, cheap models.
Valid - Massive RAG Query
Input: 100,000 tokens (10 PDF Documents)
Output: 500 tokens
Cost Profile: Highly asymmetric. The massive input dominates the cost unless Prompt Caching is utilized.
Valid - Reasoning Model Generation
Input: 1,000 tokens
Output: 5,000 tokens (4,500 invisible reasoning tokens + 500 visible answer tokens)
Cost Profile: Extremely high. You pay for the "thinking" time.

Frequently Asked Questions

How frequently do LLM API prices change?
The AI industry is currently in a massive "race to the bottom". Providers like OpenAI, Google, and DeepSeek frequently slash prices (sometimes by 50% overnight) to undercut competitors. This calculator uses the most recently published public API rates.
What is the difference between a "Prompt" and a "Completion"?
These are the legacy terms used by OpenAI. The "Prompt" is your Input—the text, history, and instructions you send to the server. The "Completion" is the Output—the novel text the AI model generates and sends back to you.
How are reasoning tokens (like in GPT-5.6 Sol or DeepSeek V4 Pro) billed?
Models equipped with Chain-of-Thought (CoT) reasoning generate thousands of internal, invisible tokens before they output the final answer. Providers bill these invisible reasoning tokens at the exact same high rate as standard Output tokens, making Sol, Opus 5, and similar reasoning models significantly more expensive to run in production.
What are the best strategies to reduce my monthly AI API bill?
1. Model Routing: Use cheap models (GPT-5.6 Luna, Gemini 3.5 Flash-Lite, DeepSeek V4 Flash) for 80% of simple tasks, and route only the hardest 20% to Sol, Opus 5, or Fable 5. 2. Implement Semantic Caching to avoid querying the API for identical user questions. 3. Utilize the Batch API for non-urgent background tasks (OpenAI and Anthropic still list 50% off).

Tips

  • Always calculate your Input (Prompt) and Output (Generation) estimates separately. RAG apps are entirely Input-heavy, while creative writing apps are entirely Output-heavy.
  • Do not forget to multiply your estimates by your expected Daily Active Users (DAU) and add a 15% buffer for retries, errors, and system prompt overhead.