landgraf-dev / openai-delphi

OpenAI API client for Delphi and Lazarus/FPC. Use ChatGPT, DALL-E and other products from Pascal language.
MIT License
126 stars 40 forks source link

How to get total/unused balance OpenAI? #5

Closed jembem closed 1 year ago

jembem commented 1 year ago

How to get total/unused balance from OpenAI?.. any example ?

wlandgraf commented 1 year ago

You mean the amount of credit you have with them? Can you please be more specific?

jembem commented 1 year ago

yes, amount of credits

wlandgraf commented 1 year ago

It looks so, you should check the usage after a response:

https://help.openai.com/en/articles/6614209-how-do-i-check-my-token-usage