83 tokens · 37 words · 251 charactersOne paragraph of 47 documents, counted by this site’s tokenizer.
Chapter 3 of 7
Tokens are the meter
The tokenizer learned its pieces from Larkspur’s documents. Now the team wants to know what sending them all to a model costs, and whether a rule of thumb will do.
This chapter: How many tokens are Larkspur’s documents, and how far off is the rule of thumb?
About this chapter
You will learn
- Why providers bill and size the context window in tokens
- How the “4 characters per token” rule compares with real tokenizers’ counts
- Why the same text costs a different amount on a different tokenizer
Words you’ll meet
- Rule of thumb
- OpenAI's rule of thumb for English: 1 token is about 4 characters, and 100 tokens about 75 words.
- Context window
- The most tokens a model can read in one go: the prompt, the documents and its reply together.
- In-sample
- Counted on the same text the tokenizer was trained on. It looks better than it would on new text.
Step 1 of 4
The says 47,016 bytes ÷ 4 ≈ 11,754 tokens.
Predict how real tokenizers compare.