AI API Cost Calculator – Compare GPT, Claude, Gemini & DeepSeek

Free developer tool

AI API Cost Calculator

Compare estimated token costs for OpenAI, Claude, Gemini, and DeepSeek. Model a single request or forecast your full monthly AI bill.

No sign-up Runs in your browser Cache-aware estimates
01

Build your workload

Calculate using
Scale the workload
Estimated tokens / request1,000 in · 500 out
Projected requests / month3,000
Projected tokens / month4.50M
02

Choose models to compare

Prices checked Aug 12, 2026
4 selected
Add a custom model or update a price

Custom prices are saved only in this browser.

03

Your cost comparison

Estimated for 3,000 monthly requests

Lowest estimated cost $0.00 / month
Potential cache savings $0.00 / month Using your selected cache-hit share
Budget status Within budget

Monthly cost at a glance

Lower is cheaper for this workload

USD / month

Detailed comparison

Estimates use published token rates and your cache setting

ModelPer requestDailyMonthlyAnnualCache saves
Calculator guide

How to calculate AI API costs

AI providers usually price text models per one million tokens. A token is a small piece of text: roughly four English characters or about three-quarters of a word, although the exact count varies by model and language.

Monthly cost((uncached input × input rate) + (cached input × cache rate) + (output × output rate)) ÷ 1,000,000 × monthly requests

This calculator separates input, cached input, and output because output tokens are often more expensive. It then multiplies the per-request estimate by users, requests per user, and active days to create monthly and annual forecasts.

Why real API bills may differ

Tokenizers, reasoning tokens, tool calls, web search, image or audio input, retries, long-context pricing, regional endpoints, batch discounts, and provider-specific tiers can change your final bill. Use exact token usage from your API logs whenever possible and treat word-based calculations as planning estimates.

Frequently asked questions

AI token cost calculator FAQ

How do I calculate the cost of an AI API request?

Multiply input tokens by the model’s input price per million, multiply output tokens by its output price per million, add both amounts, and divide by one million. Apply the lower cached-input rate only to eligible cache-hit tokens.

How many tokens are in 1,000 words?

A common planning estimate is about 1,333 tokens for 1,000 English words. The exact number depends on the model’s tokenizer, punctuation, formatting, code, and language, so exact API usage data is more reliable.

What are cached input tokens?

Prompt caching lets a provider reuse eligible prompt content instead of processing it at the full input rate. Providers have different eligibility rules, minimum prompt sizes, retention windows, cache-write charges, and cache-hit prices.

Does this include reasoning or thinking tokens?

Enter all billable output tokens reported by your provider, including reasoning or thinking tokens when the provider counts them as output. A word estimate cannot predict hidden reasoning usage precisely.

Are ChatGPT Plus or Claude Pro included?

No. Consumer chat subscriptions and developer APIs are billed separately. This tool estimates pay-as-you-go API token costs, not monthly app subscription fees.

Is the text I paste into this calculator private?

Yes. This version performs its estimate inside your browser and does not send pasted text to SaaSVerdicts or an AI provider. Avoid pasting sensitive information into any website unless you trust the site and device.

Estimates only. Prices exclude taxes, credits, free tiers, fine-tuning, storage, web search, tools, media, long-context premiums, and enterprise agreements unless you add them manually.

Scroll to Top