I have 2 public projects and a few scripts using OpenAI API. Every day I must monitor my expenses for it.
So I created a script that emails me a daily report. It provides spending details for yesterday, this month, and the past 100 days.
Here’s how you can set it up for your API keys too:
• Copy the script https://opryshok.com/apiusage
• Add your API key
• Execute a setup function
• Enjoy the report daily at 7 am