Developer
LLM Token Counter & Cost Estimator
Paste a prompt to see its token count, context use and API cost across popular models.
Preparing tool
How to use LLM Token Counter & Cost Estimator
- Paste your prompt or text, or open a file.
- Set the output length you expect and edit any prices.
- Read the tokens, context use and cost for each model.
What are the limits of LLM Token Counter & Cost Estimator?
GPT counts use OpenAI's open tokenizers and are exact for text. Claude, Gemini and Llama counts are estimates, marked with ~, because those tokenizers are not open source. Message formatting and images add tokens that are not counted. Prices are a dated snapshot you can edit; check the vendor page. Your text stays on your device.