AI Cost
Token Cost Calculator
Estimate what your LLM API workload will cost per call, per day, and per 30-day month before you run it in production. Select a model from Anthropic, OpenAI, or Google and enter your expected input, cached input, and output token counts along with daily call volume.
Result
Pick a model, enter your tokens and calls per day, then press Calculate.
Monthly figure = daily cost × 30. Cached tokens are billed at the model's cached-input rate shown in the table below.
Price sheet used by this calculator
| Provider | Model | Input / 1M | Cached input / 1M | Output / 1M |
|---|---|---|---|---|
| Anthropic Claude | Claude Fable 5.2 | $8.00 | $0.20 | $40.00 |
| Anthropic Claude | Claude Opus 5.5 | $4.00 | $0.20 | $20.00 |
| Anthropic Claude | Claude Sonnet 5.5 | $2.00 | $0.10 | $10.00 |
| Anthropic Claude | Claude Haiku 5.5 (<= 100k prompt tokens ctx) | $0.10 | $0.01 | $0.50 |
| Anthropic Claude | Claude Haiku 5.5 (> 100k prompt tokens ctx) | $0.50 | $0.05 | $2.50 |
| Anthropic Claude | Claude Mythos 5.2 | $8.00 | $0.20 | $40.00 |
| Anthropic Claude | Claude Fable 5.1 | $10.00 | $0.25 | $50.00 |
| Anthropic Claude | Claude Mythos 5.1 | $10.00 | $0.25 | $50.00 |
| Anthropic Claude | Claude Fable 5 | $10.00 | $1.00 | $50.00 |
| Anthropic Claude | Claude Mythos 5 | $10.00 | $1.00 | $50.00 |
| Anthropic Claude | Claude Opus 5 | $5.00 | $0.50 | $25.00 |
| Anthropic Claude | Claude Opus 4.8 | $5.00 | $0.50 | $25.00 |
| Anthropic Claude | Claude Opus 4.7 | $5.00 | $0.50 | $25.00 |
| Anthropic Claude | Claude Opus 4.6 | $5.00 | $0.50 | $25.00 |
| Anthropic Claude | Claude Opus 4.5 | $5.00 | $0.50 | $25.00 |
| Anthropic Claude | Claude Opus 4.1 | $15.00 | $1.50 | $75.00 |
| Anthropic Claude | Claude Opus 4 | $15.00 | $1.50 | $75.00 |
| Anthropic Claude | Claude Sonnet 5 | $2.00 | $0.20 | $10.00 |
| Anthropic Claude | Claude Sonnet 4.6 | $3.00 | $0.30 | $15.00 |
| Anthropic Claude | Claude Sonnet 4.5 | $3.00 | $0.30 | $15.00 |
| Anthropic Claude | Claude Sonnet 4 | $3.00 | $0.30 | $15.00 |
| Anthropic Claude | Claude Haiku 4.5 | $1.00 | $0.10 | $5.00 |
| OpenAI | gpt-6.2-astra (short context ctx) | $8.00 | $0.40 | $40.00 |
| OpenAI | gpt-6.2-sol (short context ctx) | $2.00 | $0.10 | $10.00 |
| OpenAI | gpt-6-astra (short context ctx) | $10.00 | $1.00 | $50.00 |
| OpenAI | gpt-6.1-sol (short context ctx) | $2.00 | $0.10 | $10.00 |
| OpenAI | gpt-6.2-astra (long context ctx) | $16.00 | $0.80 | $60.00 |
| OpenAI | gpt-6.2-sol (long context ctx) | $4.00 | $0.20 | $15.00 |
| OpenAI | gpt-6-astra (long context ctx) | $20.00 | $2.00 | $75.00 |
| OpenAI | gpt-6.1-sol (long context ctx) | $4.00 | $0.20 | $15.00 |
| Google Gemini | Gemini 4 Carbon | $4.00 | $0.20 | $20.00 |
| Google Gemini | Gemini 4 Argon — deprecated, routes to Gemini 4 Carbon on 2026-12-15 | $4.00 | $0.20 | $20.00 |
| Google Gemini | Gemini 4 Neon | $3.00 | $0.15 | $15.00 |
| Google Gemini | Gemini 4 Hydrogen | $1.50 | $0.075 | $7.50 |
| Google Gemini | Gemini 3.8 Flash | $0.75 | $0.075 | $3.75 |
| Google Gemini | Gemini 3.6 Flash | $0.75 | $0.075 | $3.75 |
| Google Gemini | Gemini 3.5 Flash-Lite | $0.30 | $0.03 | $2.50 |
| Google Gemini | Gemini 3.1 Flash-Lite | $0.25 | $0.025 | $1.50 |
| Google Gemini | Gemini 3.1 Pro Preview (<= 200k prompt tokens ctx) | $2.00 | $0.20 | $12.00 |
| Google Gemini | Gemini 3.1 Pro Preview (> 200k prompt tokens ctx) | $4.00 | $0.40 | $18.00 |
| Google Gemini | Gemini 3 Flash Preview | $0.50 | $0.05 | $3.00 |
| Google Gemini | Gemini 2.5 Flash-Lite | $0.10 | $0.01 | $0.40 |
| OpenAI | gpt-6.1-terra (short context ctx) | $1.00 | $0.05 | $5.00 |
| OpenAI | gpt-6-luna (short context ctx) | $0.10 | $0.01 | $0.50 |
| OpenAI | gpt-6.1-terra (long context ctx) | $2.00 | $0.10 | $7.50 |
| OpenAI | gpt-6-luna (long context ctx) | $0.20 | $0.02 | $0.75 |
USD per 1M tokens. All rates are in USD per 1M tokens from a snapshot checked against each provider's official pricing page on 2026-12-03, with official source links provided on each provider row. Vendor prices change without notice, so always confirm current rates on the official pricing page before relying on a number for billing.
How the calculator computes your estimate
FAQ
How token pricing works
Language models process text in small units called tokens, which represent pieces of words rather than whole words. According to OpenAI's help center, one token is roughly four characters in English, and 100 tokens equal approximately 75 words. Because providers meter every request and response by token count, estimating your prompt and completion lengths in tokens is the first step toward predicting API expenses.
Your total API token cost equals the number of tokens in each category multiplied by that model's published rate per one million tokens. Input tokens sent to the model, cached input tokens read from prompt cache, and generated output tokens each carry separate rates. Multiplying per-call cost by daily requests and 30 days lets developers budget realistically before launching.
Related calculators
- Claude API Pricing CalculatorEstimate per-call, daily, and 30-day Claude API costs across Sonnet, Opus, Haiku, caching, and batch tiers.
- OpenAI API Pricing CalculatorEstimate per-call, daily, and 30-day OpenAI API costs across models, context bands, and tiers.
- ChatGPT Plus vs Claude Pro CalculatorCompare the $20 subscriptions, annual Claude Pro pricing, and your API breakeven token volume.
This tool runs as a single file, no external requests, nothing stored.