Is there a way to track the token usage of an AI task integration?

I’m currently having Gemini and Openrouter as ai tasks, and would like to know how many tokens I used. Is there a way to get this information from somewhere? THanks!

Please connect this to Home Assistant.
What Integration are you uses that uses the AI?