openAI costs

I want to add the openAI to my home assistant.
am just loving this tutorial

in openai there is this nice cost overview, but i would love to have this as en graph in home assistant too.

i found this, it is a website that shows your information, but i don’t like giving this data to a third party.
does someone have something like this inside his/her home assistant