AI Token Cost Calculator

Use this free AI token cost calculator to separate uncached input, cached input, and output charges without relying on stale model-price presets.

Illustration for AI Token Cost Calculator showing estimate uncached, cached, output, and total AI token costs.
AI Token Cost Calculator artwork matches the live tool workflow: estimate uncached, cached, output, and total AI token costs. Use it with the calculator, examples, and result notes.View in the smoke-kawaii gallery
Inputs explainedResult checksExample valuesRuns in your browser
Estimated AI token cost$13.50

10000 requests; no cached input included

Uncached input cost
$6.00
Output token cost
$7.50
Cost per request
$0.00135
Cost per 1,000 requests
$1.35
Requests for $100
74074

No cached input is included in this result. Add the cached part of total input and the current cache-read rate when your provider usage log reports cache hits. Cache writes, storage, batch rates, tool calls, retries, credits, and taxes still need separate checks.

Formula steps

  1. Treat cached input as part of total input, then subtract it to find uncached input.
  2. Multiply uncached input, cached input, and output tokens by request count.
  3. Apply each matching per-million price, then add the three costs.

Examples

Recent answers

Recent token cost estimates will appear here.

Token cost math stays local. Enter current standard, cached-input, and output rates because provider pricing can change.

Inputs and recent answers stay in this browser tab and are not sent to a server.

How to use the AI Token Cost Calculator

  1. Enter total input tokens, then enter the cached part of that total when your usage log reports cache reads.
  2. Add output tokens, request count, and the current standard-input, cached-input, and output rates from the same provider price card.
  3. Press Calculate token cost to compare uncached input, cached input, output, total, and per-request cost.
  4. For batch work, enter the provider's batch rates instead of assuming one universal discount. Check cache writes, storage, tool calls, credits, and taxes separately.

What people use it for

Estimate the monthly cost of an AI support bot, writing helper, or internal tool.

Measure how much a repeated prompt prefix could change input cost when cache reads are reported.

Compare two model price cards using the same token and request assumptions.

Turn a token estimate into a rough budget before building a prototype.

Explain why long prompts and long answers can cost different amounts.

Quick examples

Cached support bot month

10,000 requests, 1,200 total input with 800 cached, 500 output, $2 standard input, $0.20 cached input, and $8 output per 1M

$8 uncached input + $1.60 cached input + $40 output = $49.60 total, or $0.00496 per request.

Small prototype

1,000 requests, 300 input tokens, 150 output tokens, $0.15 input and $0.60 output per 1M

$0.045 input + $0.09 output = $0.135 total, about $0.000135 per request.

Long summaries

2,000 requests, 8,000 input tokens, 700 output tokens, $1.25 input and $5 output per 1M

$20 input + $7 output = $27 total; long prompts drive most of the cost.

Need the guide or a nearby tool?

Need a slower walkthrough, a related calculator, or the full library? These links keep you close to the task you started.

Frequently asked questions

Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.

When should I use the AI Token Cost Calculator?

Use it when your task matches one of these common needs: Estimate the monthly cost of an AI support bot, writing helper, or internal tool. Measure how much a repeated prompt prefix could change input cost when cache reads are reported. It works best when you already know the measurements, amounts, units, or options the page asks for.

What is the AI Token Cost Calculator doing with my inputs?

In plain language: Uncached input tokens per request = total input tokens - cached input tokens. Uncached input cost = uncached input tokens * requests / 1,000,000 * standard input price. Cached input cost uses the cached-input tokens and cached-input price. Output cost uses output tokens and output price. Total cost = uncached input cost + cached input cost + output cost. The examples on the page are there so you can compare your inputs with a worked example before copying the answer.

What do the main AI Token Cost Calculator inputs mean?

Requests: How many model calls you want to estimate, such as one day, one month, or one product test. Total input tokens per request: All tokens sent to the model, including instructions, prompt text, context, tool messages, and any cached part reported inside that total. Cached input tokens per request: The part of total input served from cache. Enter 0 when you have no cache-read count. Output tokens per request: Tokens generated by the model in each response. Standard input price per 1M tokens: The current uncached input rate for the model and service tier you plan to use. Cached input price per 1M tokens: The current cache-read rate. Cache creation or storage can be a separate charge. Output price per 1M tokens: The current provider rate for one million output tokens. This is often different from the input price.

What should I double-check before trusting the answer?

This is a planning estimate, not a live provider bill. Cached input must be part of the total input count, not extra input added on top. Providers can charge separately for cache writes, cache storage, long context, service tiers, batch jobs, tools, images, audio, credits, and taxes. Use the current rate card and real usage logs for budgets that matter. Also check the unit, scale, mode, and result limit because small input changes can change the answer.

How should I read the AI Token Cost Calculator answer?

Start with total cost, then compare uncached input, cached input, and output cost. Cost per request and cost per 1,000 requests make the scale easier to judge. Requests for $100 is a runway estimate using the same average token counts and rates, not a provider spending limit.

Why does the calculator ask me to enter model prices?

Model prices change and different providers charge different rates for input, output, cached input, fine-tuned models, batch jobs, and special tools. Entering the rate yourself keeps the calculator useful without pretending one price is always current.

How does the calculator count cached input tokens?

Enter cached input as the part of total input that received the cache-read rate. The calculator subtracts that part from total input, prices the uncached remainder at the standard rate, and prices cached input separately. Do not add cached input on top of total input.

How do I estimate batch API pricing?

Use the provider's current batch input, cached-input, and output rates in the price fields. Do not apply a guessed universal discount because model support, service tiers, cache treatment, and batch rules can change.

How do I estimate monthly AI API cost?

Use the number of requests you expect in a month, then enter the average input tokens and output tokens for one request. The total cost is the input spend plus output spend for that whole request count.

Why are input and output prices separate?

Many model providers charge different rates for tokens you send and tokens the model generates. Long prompts raise input cost, while long answers raise output cost, so keeping them separate makes the estimate easier to check.

Is the token count exact?

Only if your token numbers came from the exact tokenizer or usage logs for the model. Rough text estimates can be useful for planning, but code, symbols, non-English text, whitespace, and tool messages can change the real token count.

What can make my AI token cost estimate too low?

Retries, longer system prompts, tool messages, retrieval context, cache writes, cache storage, long-context tiers, and streamed follow-ups can change the bill. Pull input, cached-input, and output averages from provider logs when the app has traffic.

Can I compare two AI models with this calculator?

Yes. Keep the request count and token assumptions the same, then enter one model price card and compare it with another. This shows the pricing effect, not quality, latency, rate limits, or reliability.

Does this include hosting, vector database, or tool-call costs?

No. It only estimates model token charges from the rates you enter. Add hosting, storage, retrieval, image/audio/video tools, retries, monitoring, and other platform costs separately.

Does the site save what I enter?

No. The calculator runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.

Related tools

Prompt Token EstimatorEstimate prompt tokens from text length with a visible rough range and tokenizer warning.
API Pricing CalculatorEstimate API usage cost from request count, units per request, unit price, fees, and overhead.
Text SummarizerSummarize pasted notes into a browser-generated draft.