Same workload, wildly different bills. Enter your monthly input and output tokens once — every major chat model is priced side by side, cheapest first.
| Model | Input / 1M | Output / 1M | Your month |
|---|
Sources & pricing date: prices checked 5 December 2026 on the official pricing pages — OpenAI (openai.com/api/pricing), Anthropic (platform.claude.com/docs/en/about-claude/pricing), Google Gemini API (ai.google.dev/gemini-api/docs/pricing), DeepSeek (api-docs.deepseek.com/quick_start/pricing), xAI (docs.x.ai/docs/models). Gemini 3.8 Flash is at an introductory $0.75 / $3.75 through 31 December 2026, rising to $1.50 / $7.50 from 1 January 2027. Batch APIs and prompt caching can cut these bills by up to 50%. Confirm current pricing on the provider's page before budgeting.
Enter your monthly input and output tokens and the calculator prices that exact same workload on every model in its table, using each model's per-1M-token input and output prices: monthly cost = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price). It then sorts the models cheapest first, so you can see the cheapest model, the most expensive one, and what you save by picking the cheapest.
Worked example: 10,000,000 input tokens and 2,000,000 output tokens a month:
At 10 million input and 2 million output tokens a month, Gemini 2.5 Flash-Lite costs $1.80 while Claude Opus 5.5 costs $80.00 — the same words, 44× apart. You are paying for capability: the cheapest models are small, fast and best for classification, extraction and simple chat; the flagship models reason harder and write better code. The smart setup is routing: send 90% of traffic to a cheap model and only the hard 10% to a flagship. Also note that output tokens cost 4–10× input tokens everywhere, so short replies are the fastest way to cut any bill.
For light work, Gemini 2.5 Flash-Lite at $0.10 input / $0.40 output per 1M tokens — 10M input + 2M output tokens costs $1.80 a month. For full-size models, DeepSeek V3.1 ($0.27 / $1.10) is the cheapest at $4.90 for the same workload.
Generating text is more compute-intensive than reading it, so every provider charges 4–10× more for output tokens. Keeping replies concise is the easiest way to cut an AI API bill.
Gemini 3.8 Flash is at an introductory $0.75 input / $3.75 output per 1M tokens through 31 December 2026, then rises to $1.50 / $7.50 from 1 January 2027. This calculator uses the introductory price — budget with the January rate for 2027.
Shorten prompts, use prompt caching for repeated context, route simple tasks to a mini/flash/lite model, cap output length, and use batch APIs (often 50% off) for work that does not need instant replies.