One project for the bot
Store the provider key the bot uses. Turn on only the models it is allowed to call.
Monthly $25 · warn at 80% · Europe/Budapest
The bot keeps answering until the ceiling you set. The next request after that is a 402, and the provider is not called.
A ticket spike can spend more in a day than the bot spent all last month.
The provider dashboard shows the bill after the fact. Fuse stops the next call.
A warning email fires at the percent you pick, before the hard stop.
Store the provider key the bot uses. Turn on only the models it is allowed to call.
Set the warning at 80%. The first request that would cross the limit returns 402.
The log shows model, tokens, and cost. The customer message is not stored.