A tokenizer is a system or algorithm that translates input data into a sequence of tokens. Google’s glossary notes that, in multimodal models, the tokenizer must handle each input type, for example splitting text into subwords and images into small patches. Different models use different tokenizers, so the same text can produce a different number of tokens depending on the model, which affects both limits and API costs. Anthropic, for instance, notes that some of its newer models produce more tokens for the same text than earlier ones.
Source: developers.google.com/machine-learning/glossary (checked 2026-11-26).