Q: API costs
As I have to bring my own OpenAI API key, just wanted to get a ballpark figure for API costs . Like say, I use 10,000 messages in a month , approximately how many dollars worth of API tokens would that consume ? I understand it depends on several factors but please just assume all factors to be somewhere in the 'middle' . Can you give me some idea about the amount of credits used for this scenario (and more illustrative examples, if you can) ?
tinytalk
Edited Jan 22, 2025A: Hi! 👋
Thank you for reaching out.
Sure, happy to help. Let's assume the following:
Using GPT-4o model:
Input: 500 tokens x 10,000 messages = $12.5
Output: 100 tokens x 10,000 messages = $10
––––
Monthly total would be $22.5 which is $0.00225 per message
Let's make the same calculation for a cheaper model.
Using GPT-4o-mini model:
Input: 500 tokens x 10,000 messages = $0.75
Output: 100 tokens x 10,000 messages = $0.60
–––
Monthly total would be $1.35 which is $0.000135 per message
As you also understand, these are just rough estimations based on model pricing and certain assumptions. You actual usage may differ.
The GPT-4o is a better model than GPT-4o-mini, this is why 4o-mini is around 95% cheaper, but it does a very good job for certain use cases, so depending on your use case you might be able to go for GPT-4o-mini.
You can also customize those calculations using calculators such as:
https://gptforwork.com/tools/openai-chatgpt-api-pricing-calculator
Hope this helps and let us know if we can help you further. Hope to see you among us!
All the best,
Oscar