monorepo
monorepo copied to clipboard
Can we get OpenAI remaining credits via API
https://community.openai.com/t/get-the-remaining-credits-via-the-api/18827
Describe the solution you'd like
Implement a cron task that logs into an OpenAI account with scraping, retrieves the necessary API keys, and stores them securely in a private field in the database. The cron task should periodically update the keys before they expire. Using these keys, create a custom endpoint to fetch information from OpenAI.
Describe alternatives you've considered
Investigate for an alternative solution if scraping is not working.