costs calculator

Token Cost Calculator

Compare token costs across LLM providers — estimate daily and monthly bills based on your input and output token usage, and see which model is cheapest for your workload.

Token cost estimate

ProviderAnthropic Claude Sonnet 4.6
Daily input cost$0
Daily output cost$0
Daily total$1
Monthly total$13
Annual total$158
Avg cost per 1K tokens$0

Input: $3/M tokens · Output: $15/M tokens. Costs assume 22 active days/month. Actual costs vary with caching, batch discounts, and rate limits.

How this calculator works

Daily cost = (input tokens ÷ 1M × input price) + (output tokens ÷ 1M × output price). Monthly cost = daily cost × active days. Supports caching discounts and batch pricing where available.

Useful scenarios

  • A developer comparing OpenAI GPT-4o vs Anthropic Claude for a chatbot handling 100K input and 20K output tokens daily.
  • A solo founder building an AI writing assistant — estimating monthly API bills at different usage levels to decide between providers.
  • A content creator using AI for batch processing — comparing DeepSeek V3 vs Gemini 2.5 Pro for 500K daily tokens on heavy processing days.

FAQ

Why are input and output tokens priced differently?

Output tokens cost more because generating text requires more compute than processing input. Most providers charge 3-5x more for output tokens. For chat-heavy workloads, output costs usually dominate.

How many tokens does a typical API call use?

A short chat message uses 200-500 tokens. A code review with context uses 4,000-8,000 tokens. Document analysis with a 50-page PDF uses 15,000-30,000 input tokens. Adjust your daily token estimates based on your actual use case.

Should I consider prompt caching?

Yes. If you send the same system prompt repeatedly, caching can reduce input costs by up to 50% on some providers. This calculator does not model caching — your actual costs may be lower if you implement it.