Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Category

Token counters and AI cost calculators

Everything that decides what an AI feature costs, measured in your browser: tokens, prices, context limits, plans and the hardware to run models yourself.

Start here

Pick a tool by what you need

Tools

Every tool in this category

About

How these tools fit together

AI APIs bill by the token, so every cost question starts with a count. The token counter gives exact counts for OpenAI and open-weight models and official counts for Claude and Gemini when you add your own key. From there, the cost calculator turns tokens per request into a daily, monthly and yearly bill, including cached input, batch discounts and long-context price tiers. If you think in words or pages rather than tokens, the tokens to words converter translates between them with ratios measured on real text.

The two biggest discounts each have their own calculator. The prompt caching calculator estimates how often a repeated prompt prefix is actually read from the cache, given your traffic and the cache lifetime, and whether the write premium pays off. The batch API calculator prices the share of your work that can wait for results at the providers’ batch rates.

Price per token is only half the story. Models split the same text into different numbers of tokens, reasoning models bill their thinking as output, and a chat or agent resends its whole history every turn. The model comparison and the model pages show prices next to context windows and features, and the head-to-head comparisons price the same workloads on two models at once, so you compare like with like.

Prices come from public sources (OpenRouter’s models API and LiteLLM’s price list) and refresh every day; the AI pricing changes log records every move. Plan prices are checked by hand against each provider’s pricing page. Nothing you type in these tools is sent to our server.

Read

Guides

FAQ

Questions people ask

How accurate are the cost estimates?

The arithmetic is exact for the prices and token counts you give it. The uncertainty is in the inputs: real token counts vary by model, outputs vary in length, and providers change prices. Count your real prompts with the token counter and check the provider’s pricing page before you commit to a budget.

How often are prices updated?

Every day. A scheduled job pulls public price data, validates it and rebuilds the site. Each tool shows the date of the data it uses.

Do these tools send my text anywhere?

No. Token counting, cost maths and context checks run in your browser. The only exception is an official Claude or Gemini count, which you trigger with your own API key; that request goes from your browser straight to the provider.

Which tool should I start with?

Start with the token counter on a real prompt, then put those numbers into the cost calculator. If the model you picked looks expensive, the calculator lists cheaper models that fit the same workload.

Keep exploring