How to access credit balance via API?

Chatbot on OpenAI website just told me:

" You can use the OpenAI API to programmatically retrieve your account’s usage and credit balance information. For detailed instructions on how to make this API call, please refer to our API documentation. This will require you to use your API key, so please ensure you handle it securely."

Anyone been able to do this yet?

I don’t see this anywhere in the documentation.

3 Likes

Hey!
do you found a solution for this?