MultiTools
AI & LLM

AI API Cost Calculator

Estimate and compare LLM costs before you ship.

  • Local by default
  • No signup
  • AI is opt-in

≈ 1,200 tokens · about one page

The model's reply length

≈ 1,000 per day

Don't know your token counts? Estimate from text
Rough estimate: 0 tokens

Models to compare

Estimated cost

Estimates only. Prices are list prices in USD per 1M tokens and exclude taxes, fine-tuning, storage and provider-specific surcharges. Always verify against the provider's pricing page before committing to a budget.

Token pricing is the part of an LLM bill that surprises teams most often. This calculator converts token counts into cost per call, per thousand calls and per month, and lets you compare up to four models at once so the choice is based on numbers rather than vibes.

How token-based pricing works

Every provider bills in tokens, not words or characters. A token is roughly four characters of English text, so 1,000 tokens is about 750 words. Pricing is quoted in USD per one million tokens and is split into two directions: input (the prompt you send, including system instructions, retrieved context and conversation history) and output (what the model generates).

Output is almost always the expensive side — typically three to five times the input rate — because generation is sequential and compute-bound. A request with a 1,200-token prompt and a 400-token answer is therefore not "80% input, 20% output" in cost terms; the bill is usually much closer to an even split.

Input tokens include everything you resend on every turn. In a multi-turn chat, a long system prompt is charged repeatedly unless the provider caches it.

The three levers that actually change the bill

  1. Prompt caching. Providers charge a fraction of the input price to read a cached prefix — commonly 10% of the normal input rate. The cache only helps when the same prefix is reused often and is long enough to qualify (typically 1,024+ tokens). Cache writes can cost slightly more than normal input, so caching a one-off prompt loses money.
  2. Batch APIs. OpenAI, Anthropic and Google all discount asynchronous batch jobs by around 50% in exchange for a completion window measured in hours. This is the cheapest lever available for offline jobs such as classification, backfills and nightly summarisation.
  3. Model routing. Most production workloads do not need the top-tier model for every request. Sending easy requests to a small model and escalating only the hard ones often cuts spend by 60–80% with no visible quality change.

Estimating monthly volume without guessing

Monthly requests is the number teams get wrong. Estimate it from product behaviour instead of ambition: monthly requests ≈ active users × sessions per user × messages per session × 1.2. The 1.2 accounts for retries, regenerations and background jobs. If you are pre-launch, run the calculation for 1,000 active users and again for 10,000 — the shape of the curve matters more than the exact figure.

Watch for hidden multipliers: RAG pipelines that stuff eight retrieved chunks into every prompt, agents that call the model several times per user action, and reasoning models that generate internal tokens billed as output. A single user click can easily become five billed calls.

Reading the comparison table

The per call column is what you feel during development; the per month column is what your finance team sees. Sorting by monthly cost is usually the right default, but two caveats apply. First, the cheapest model is not automatically the best value — a model that needs two attempts to get an answer right often costs more than a stronger model that succeeds once. Second, context window matters: a cheaper model that cannot hold your document will force chunking, which multiplies requests.

Where these numbers come from

Prices shown here are public list prices in USD per one million tokens, normalised to a common schema and refreshed daily from maintained public pricing datasets. The date under the results tells you when the snapshot was taken. Anything billed outside the token list price — image inputs, fine-tuning, storage, provisioned throughput, taxes, regional surcharges — is not included.

Treat every figure as a budgeting estimate, not an invoice. Provider pricing pages are the source of truth, and they change without notice.

Frequently asked questions

How much does GPT-4o cost per 1M tokens?

At list price, GPT-4o is about $2.50 per million input tokens and $10.00 per million output tokens, with cached input around $1.25. Always confirm the current figure on the provider pricing page, since these rates change.

How do I calculate the cost of 1,000 requests?

Multiply the per-call cost by 1,000. The calculator shows this directly: enter your input and output tokens, then read the "1K calls" column. For 1,000 calls with 1,200 input and 400 output tokens on GPT-4o, the input side is 1.2M tokens ($3.00) and the output side is 0.4M tokens ($4.00).

Does prompt caching really reduce costs?

Yes, but only for repeated prefixes. Cache reads are typically billed at about 10% of the input rate on OpenAI and Anthropic models. If your system prompt is identical across requests and long enough to qualify, caching is the single highest-leverage optimisation. Caching a prompt you send once costs more than it saves.

Why is my real invoice higher than this estimate?

The usual causes are retries and regenerations, system prompts resent on every turn, retrieved context, image tokens (billed differently from text), reasoning tokens billed as output, and minimum charges per request. Add a 20–30% buffer on top of any estimate before committing to a budget.

Are these prices affiliated with the model providers?

No. This is an independent calculator. Model and company names are trademarks of their respective owners and are used only to identify the products being compared.