back
▲ 1 points

Ask HN: ChatGPT or their API for costs consideration?

by freakynit·1y ago·3 comments·view on hn ↗
I just did a small experiment:

I exported all my chatgpt conversations and calculated total costs I would have incurred were I using their API (gpt-4o) model.

My "total" costs, across all conversaitons from entire history of using it for almost 2 years, came out to just 34$!!! In the same time I have been paying them 20$/month, amounting to 20*20=400$!

I'm an average ChatGPT user using it mostly for ptogramming related tasks.

Here's the script I used to calculate (this is adapted from their own index.html file when you get exported chat data):

https://gist.github.com/freakynit/e8b2c173290f210a1cb7644a6e41752c

3 comments
I can't judge the format, but everything else looks fine. The only thing that is concerning me is the filtering that looks a bit too strict in the inner loop.
What's the question?
Two:

1. If someone can review the code;

2. Are your costs similar, or am I a seriously underruser of ChatGPT.

Want to make the switch to API if the calculations are fine..