GPT pdf tokenizer

Hey there,

I made a pdf-tokenizer for GPT since I was looking for one and couldn’t really find any, it takes in a single pdf and calculates text tokens and image tokens separately, ultimately displaying the total tokens to the user who can then use it to calculate input costs depending on which model the user wants to use.

Feel free to drop any suggestions.

Thanks,
Ayesh.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.