How accurate is the client-side token estimator compared to BPE tokenizers?
For English prose it typically lands within 5% to 10% of OpenAI and Anthropic BPE token counts (~1.32 tokens per word). It also adjusts upward for code punctuation symbols and CJK characters, which tokenize more densely than plain English words.