I wanted to figure out how many tokens I was using and if it made sense to use the API and pay granularly instead of the pro plan for chatGPT ($200/month).<p>So, I built tokount. It is almost entirely built by prompting the replit agent. Except for the tokenizer, which was written with some help from chatGPT o1-preview.<p>It cost me approx. $45 just for prompting the replit agent, and a few additional dollars for database and VM. Took about 2 full days and did it on a mix of phone and laptop. Needed the laptop for tokenizer, most other features could be built just on the phone.<p>Conclusion: I’m definitely better off using the API. It’s surprising how much text is needed to reach 1M
Tokens.
Page title: <i>AI Token Counter & Cost Calculator</i><p><i>If the title includes the name of the site, please take it out, because the site name will be displayed after the link.</i><p><i>Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize</i> <a href="https://news.ycombinator.com/newsguidelines.html">https://news.ycombinator.com/newsguidelines.html</a>