Where does the
tokenizer cut?
A token is a piece of text.
Compare the three inputs.
␣ marks one leading space.
Your guess?GPT-4o · o200k_base
GPT-4o uses a tokenizer encoding called o200k_base, with about 200,000 ordinary text pieces. Lowercase pineapple splits into pine and apple, IDs 52736 and 34058. Capitalizing the first letter gives three tokens, P, ine, and apple, IDs 47, 514, and 34058. With one leading space, lowercase pineapple is a single token, ID 116890. The bracket-shaped mark represents the space.