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.

Input

Result

Pick a model, enter your tokens and calls per day, then press Calculate.

Price sheet used by this calculator

ProviderModelInput / 1MCached input / 1MOutput / 1M
Anthropic ClaudeClaude Fable 5.2$8.00$0.20$40.00
Anthropic ClaudeClaude Opus 5.5$4.00$0.20$20.00
Anthropic ClaudeClaude Sonnet 5.5$2.00$0.10$10.00
Anthropic ClaudeClaude Haiku 5.5 (<= 100k prompt tokens ctx)$0.10$0.01$0.50
Anthropic ClaudeClaude Haiku 5.5 (> 100k prompt tokens ctx)$0.50$0.05$2.50
Anthropic ClaudeClaude Mythos 5.2$8.00$0.20$40.00
Anthropic ClaudeClaude Fable 5.1$10.00$0.25$50.00
Anthropic ClaudeClaude Mythos 5.1$10.00$0.25$50.00
Anthropic ClaudeClaude Fable 5$10.00$1.00$50.00
Anthropic ClaudeClaude Mythos 5$10.00$1.00$50.00
Anthropic ClaudeClaude Opus 5$5.00$0.50$25.00
Anthropic ClaudeClaude Opus 4.8$5.00$0.50$25.00
Anthropic ClaudeClaude Opus 4.7$5.00$0.50$25.00
Anthropic ClaudeClaude Opus 4.6$5.00$0.50$25.00
Anthropic ClaudeClaude Opus 4.5$5.00$0.50$25.00
Anthropic ClaudeClaude Opus 4.1$15.00$1.50$75.00
Anthropic ClaudeClaude Opus 4$15.00$1.50$75.00
Anthropic ClaudeClaude Sonnet 5$2.00$0.20$10.00
Anthropic ClaudeClaude Sonnet 4.6$3.00$0.30$15.00
Anthropic ClaudeClaude Sonnet 4.5$3.00$0.30$15.00
Anthropic ClaudeClaude Sonnet 4$3.00$0.30$15.00
Anthropic ClaudeClaude Haiku 4.5$1.00$0.10$5.00
OpenAIgpt-6.2-astra (short context ctx)$8.00$0.40$40.00
OpenAIgpt-6.2-sol (short context ctx)$2.00$0.10$10.00
OpenAIgpt-6-astra (short context ctx)$10.00$1.00$50.00
OpenAIgpt-6.1-sol (short context ctx)$2.00$0.10$10.00
OpenAIgpt-6.2-astra (long context ctx)$16.00$0.80$60.00
OpenAIgpt-6.2-sol (long context ctx)$4.00$0.20$15.00
OpenAIgpt-6-astra (long context ctx)$20.00$2.00$75.00
OpenAIgpt-6.1-sol (long context ctx)$4.00$0.20$15.00
Google GeminiGemini 4 Carbon$4.00$0.20$20.00
Google GeminiGemini 4 Argon — deprecated, routes to Gemini 4 Carbon on 2026-12-15$4.00$0.20$20.00
Google GeminiGemini 4 Neon$3.00$0.15$15.00
Google GeminiGemini 4 Hydrogen$1.50$0.075$7.50
Google GeminiGemini 3.8 Flash$0.75$0.075$3.75
Google GeminiGemini 3.6 Flash$0.75$0.075$3.75
Google GeminiGemini 3.5 Flash-Lite$0.30$0.03$2.50
Google GeminiGemini 3.1 Flash-Lite$0.25$0.025$1.50
Google GeminiGemini 3.1 Pro Preview (<= 200k prompt tokens ctx)$2.00$0.20$12.00
Google GeminiGemini 3.1 Pro Preview (> 200k prompt tokens ctx)$4.00$0.40$18.00
Google GeminiGemini 3 Flash Preview$0.50$0.05$3.00
Google GeminiGemini 2.5 Flash-Lite$0.10$0.01$0.40
OpenAIgpt-6.1-terra (short context ctx)$1.00$0.05$5.00
OpenAIgpt-6-luna (short context ctx)$0.10$0.01$0.50
OpenAIgpt-6.1-terra (long context ctx)$2.00$0.10$7.50
OpenAIgpt-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

Fresh vs. cached input: When cached input tokens exceed zero, those tokens are billed at the model's cache-read rate and only the remaining fresh input tokens are billed at the full input rate.
Cost per call: The calculator multiplies fresh input tokens, cached input tokens, and output tokens by their respective per-million-token rates and sums the three amounts.
Cost per day: Daily cost multiplies the total cost per call by the number of API calls you enter per day.
Monthly cost: Monthly cost multiplies your daily cost by 30 to project a standard 30-day billing window.

FAQ

What counts as a token when calculating LLM API costs?
Tokens are small pieces of words used by language models to read prompts and generate responses. According to OpenAI's help center, one token equals roughly four characters in English, and 100 tokens equal about 75 words. Both your input prompt and the model's output reply count toward total billed tokens.
How are cached input tokens billed compared to fresh input?
Cached input tokens are billed at a lower cache-read rate instead of the full input rate. For example, on Claude Sonnet 5.5 and gpt-6.2-sol short context, fresh input is $2.00 per million tokens while cached input is $0.10 per million. Only the remaining non-cached input tokens pay the full input rate.
Do generated output tokens cost more than input tokens?
Yes, output tokens generally cost more per million tokens than fresh input tokens, though the multiplier varies by model from 3.75x to about 8.33x across the price sheet. Many flagship models are 5x (such as Gemini 4 Hydrogen at $1.50/$7.50), while long-context tiers like gpt-6.2-astra drop to 3.75x.
How can I estimate API token counts and costs before sending requests?
Estimate English text length using roughly four characters per token or 100 tokens per 75 words, then enter those counts with your expected daily calls. For example, OpenAI's gpt-6.2-sol short context costs $2.00 per million input tokens and $10.00 per million output tokens, while gpt-6.2-astra costs $8.00 and $40.00.
Can AI model token prices change after I run an estimate?
Yes. AI providers update their API pricing without notice. The rates in this calculator come from a snapshot checked on 2026-12-03, and each provider row links to its official pricing page. Always confirm the latest published rates directly with Anthropic, OpenAI, or Google before relying on an estimate for billing.

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

This tool runs as a single file, no external requests, nothing stored.