AI API cost calculator

Turn request volume and token counts into a monthly bill. Compare up to ten models side by side, see the exact formula, and share the scenario with a link.

Prices last verified on 2026-11-26 (dataset 2026.11.26-1). Prices are a manually maintained snapshot, not a live feed.

Usage

30 for always-on traffic, about 22 for business days.

Prompt + system message + conversation history + tool definitions.

Generated text, including reasoning/thinking tokens where billed.

Share of input tokens read from the prompt cache. Leave 0 if you do not use caching.

Models to compare
Currency (optional)

Estimated cost

ModelPer requestPer day Per monthPer year
Claude Sonnet 5.5Anthropic $0.007$70.00$2,100.00$25,200.00
GPT-6.2 SolOpenAI $0.007$70.00$2,100.00$25,200.00
Gemini 3.5 FlashGoogleLowest $0.00585$58.50$1,755.00$21,060.00
  • Gemini 3.5 Flash: Context cache storage ($1.00/1M tokens/hour) not included.
Show the formula

Prices are USD per 1,000,000 tokens. Each request costs:

Claude Sonnet 5.5

  • 1,500 uncached input tokens × $2.00 ÷ 1M = $0.003
  • 400 output tokens × $10.00 ÷ 1M = $0.004
  • $0.007 × 10,000 requests/day × 30 days = $2,100.00 per month; × 12 for a year.

Price source: platform.claude.com (verified 2026-11-26)

GPT-6.2 Sol

  • 1,500 uncached input tokens × $2.00 ÷ 1M = $0.003
  • 400 output tokens × $10.00 ÷ 1M = $0.004
  • $0.007 × 10,000 requests/day × 30 days = $2,100.00 per month; × 12 for a year.

Price source: developers.openai.com (verified 2026-11-26)

Gemini 3.5 Flash

  • 1,500 uncached input tokens × $1.50 ÷ 1M = $0.00225
  • 400 output tokens × $9.00 ÷ 1M = $0.0036
  • $0.00585 × 10,000 requests/day × 30 days = $1,755.00 per month; × 12 for a year.

Price source: ai.google.dev (verified 2026-11-26)

How AI API pricing works

Most model APIs bill per token, with separate prices for the tokens you send (input) and the tokens the model writes back (output). Output tokens usually cost four to eight times more than input tokens, so long answers dominate many bills.

Prompt caching lets a provider reuse a repeated prefix — a long system prompt, a document or tool definitions — and charge a much lower “cache read” price for those tokens. If 80% of every prompt is the same, caching can cut input cost dramatically.

Some prices depend on prompt size. A few models charge more once a single request goes past a threshold such as 100K or 200K input tokens; the calculator warns you when your scenario crosses one.

Ways to lower the bill

What is a token?

A token is a chunk of text, roughly three-quarters of an English word on average. Each provider uses its own tokenizer, so the same text can produce a different number of tokens on different models. Check your provider’s usage dashboard for real numbers.

Pricing data →