Does anyone have any ideas on how to track credits across many TTS, LLM, STT services you’re using on prod env? We’re using 1 main and 1 backup for each causing us to track 6 services and all of them require credit purchases upfront, else our service has outage.
r
refined-appointment-81829
08/27/2025, 2:42 PM
Metrics can return tokens. You can have your agents report that to your server and aggregate/track it however you like.
refined-appointment-81829
08/27/2025, 2:43 PM
Also many of the providers provide an API to query usage. You could potentially leverage that too for your purchasing heuristics.
f
few-analyst-46
08/28/2025, 12:43 AM
if small delay is ok, like 1x ms,u could build ur own proxy server and route ur service to it, sth like openrouter, then it is easy to track in the proxy
r
refined-appointment-81829
08/28/2025, 1:19 AM
I guess if you need that timeframe you will need to transmit it to your servers from your agent code.