MONTHLY BUDGET
What will this workflow cost?
Move the sliders to estimate a month of real usage on Claude Sonnet 5.
Count tokens with a real BPE tokenizer in your browser, compare 23 major models, and plan API spend before you ship.
23 models.
11 providers.
THE CALCULATOR
COMPARE MODELS
Switch models above or click a card to make it your active calculator.
MORE THAN A COUNTER
Small tools that turn a one-off count into a repeat workflow.
MONTHLY BUDGET
Move the sliders to estimate a month of real usage on Claude Sonnet 5.
PROMPT HEALTH
A quick local check for repetition, context weight, and likely cleanup opportunities.
FILE COUNTER
Drop a .txt, .md, .json, .csv, .py, .js, or .ts file. It stays in your browser.
THE LIVING REGISTRY
Reference pricing snapshot · verify provider billing before production use.
FROM THE PROMPTCOSTLAB BLOG
The calculator stays focused. Tutorials, comparisons, and model updates live in their own searchable publication.
Model guidesA plain-English guide to planning prompts for Anthropic's flagship family, including thinking-token billing and cache pricing.
Read article →
Token basicsTokenizers explained without the textbook: vocabulary, chunks, and hidden request overhead.
Read article →
RegistryA living update log for major model families, context windows, and pricing snapshots.
Read article →LEARN THE BASICS
PromptCostLab is designed for someone who wants a trustworthy answer before they need a full course on tokenization.
Every provider uses its own tokenizer and request formatting. The same sentence can be a different number of tokens on Claude, GPT, Gemini, or Kimi. That is why PromptCostLab labels its counts: exact for OpenAI models, close approximation elsewhere.
Never. The tokenizer runs on your device — the same o200k vocabulary OpenAI models use, downloaded once as a static script. Connected exact counting for structured messages, tools, files, and images may come later, and only if you choose to send data to a provider.
Yes. The registry and journal are intentionally data-driven: add a model record or article record, and the filters, cards, and comparison surfaces update with it.