Contact, if you are interested in this website / domain name / Sponsorship / Advertisement / Partnership — web.works/contact
Home / Tools / AI Token Cost Calculator
AI calculator

AI Token Cost Calculator

Large language model APIs are billed per token, with different prices for input (your prompt and context) and output (the model's reply). Small per-request costs become large monthly bills at scale — estimate before you ship. The default prices are examples only: paste your provider's current rates.

Your numbers

$
$

Results update as you type. Nothing you enter leaves your browser.

Show the work

Email me this result

Get these numbers plus a short explanation in your inbox.

Want a second pair of eyes?

Our free Numbers Check-up turns these figures into a one-page review with the one number to fix first.

Get my free Check-up

How it works

A token is a chunk of text — roughly three-quarters of an English word on average, though numbers and code often split into more tokens. Providers publish a price per million input tokens and per million output tokens. Multiply your typical prompt and reply sizes by those prices and by your volume.

The formula

Cost per request = (input tokens × input price + output tokens × output price) ÷ 1,000,000

Worked example

With 1,500 input tokens, 400 output tokens and example prices of $3 / $15 per million, one request costs $0.0105. At 2,000 requests a day that is about $21 a day, $630 a month and $7,665 a year.

How to cut AI costs

  • Trim context: long system prompts and retrieved documents are paid on every call.
  • Use prompt caching where your provider offers it for repeated context.
  • Route by difficulty: send easy tasks to smaller, cheaper models.
  • Cap output length and ask for structured, concise answers.
  • Batch non-urgent jobs if your provider discounts batch processing.
Always verify current pricing on your AI provider's official pricing page — rates change frequently and differ by model.

Frequently asked questions

How many tokens is a word?

For English prose, roughly 1.3 tokens per word on average; numbers, code and non-English text usually use more.

Why is output more expensive than input?

Generating each output token requires a full model step, so providers usually price output higher than input.

Are the default prices accurate?

They are illustrative. Enter the current rates for the exact model you use.

Last reviewed 2026-11-15 · Editorial policy · Estimates only, not financial advice.

Free Numbers Check-up — a 1-page review of your business numbers.Get mine