Free Token Calculator for Large Language Models
Input Text
Analysis
Model Selection & Context
Context Window Usage
Estimated API Cost
Costs are estimates (Input / Output per 1M tokens).
What are tokens?
Tokens are pieces of words used by AI models. This tool now
uses the real cl100k_base tokenizer
(used by GPT and Claude) for highly accurate counts. 1 token is roughly 4 characters in
English.