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?
Counts are exact for pasted text under the selected o200k_base or cl100k_base encoding, not a complete API request. Claude, Gemini and Llama counts use substitute encodings or a margin and are marked with ~. Message formatting and images add tokens that are not counted. Bundled prices are unchecked examples you can edit; confirm current model rates with your provider. Your text stays on your device.