I would like to have a card in my app displaying the current balance of my Anthropic or OpenAI accounts. Searching around I can not find anything that would enable me to do this apart from logging into the respective dashboards and pulling the figure from there.
Does anyone have a more graceful / API way to do this?