--- title: "`.tokenize()`" sidebar_title: "`.tokenize()`" description: ".tokenize() - API reference for converting text input into tokens using a model's tokenizer" --- `.tokenize()` is a method that converts text input into tokens using a model's tokenizer.