Is there a way to count tokens?

Welcome to the Make community!

I have a private module that can estimate the number of tokens in a text input.

You can install it here: [Free App] My Toolbox of Useful Modules

Example using the official OpenAI Tokenizer tool, 404 tokens:

Example using my Estimate Tokens module, 410 tokens:

I would say it’s pretty close enough to the “official” result.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

4 Likes