The Horatian Archive
Home
Token Counter
estimate LLM tokens and API costs
Short Text
Code Sample
Essay
JSON Data
Hello, world! This is a sample text to estimate token counts. Tokens are chunks of text that language models process - they can be words, parts of words, or punctuation marks. A rough estimate is about 4 characters per token for English text.
Approximate Tokenization
Estimated API Costs (per 1M tokens)