đ¸ Do you track how much you spend on AI?
byâ˘
I opened our invoices this morning... and closed them right away hehe
Claude Max for the whole team, the API on top for our agents, a few other tools here and there...
It adds up so fast!
And the funny part is that a lot of it is the same thing paid twice. Two of us asking our agents to read the same repo, the same files, the same context.
That's actually one of the reasons we started building Murmell :)
So I'm curious:
Do you track your AI spending?
Do you have a budget for it?
Or do you just close your eyes when the invoice comes?..
677 views
p/runevr
p/meridian-16
p/dots-7
p/citable
p/pushary
p/producthunt
p/reso
p/kodlo
p/faraday-4
p/many-displays
p/clipjack
p/temp-mail-370
p/leantake
p/comcent
p/iphotron
p/neoagent
p/htmldrag
p/relai-agent-eval-loop
p/gatrends
p/kanasensei
Replies
I got tired of unpredictable bills, so for video rendering I went the other way and run it on GPUs I own. The upfront cost hurt, but now the marginal render costs me nothing. That isn't the right call for everyone, but for any workload you run constantly, it's worth doing the math on owning versus renting.
@holina_factory owning the GPUs is such a different way to think about it hehe the bill stops being a monthly surprise and becomes one decision... for rendering that runs all day it makes a lot of sense :) how long did it take before the hardware paid for itself?
@moss_ab_mirande_ney after 350 users paying $29 one time and the hardware is paid off. I also run a Voice AI service for local restaurants and small businesses that has chipped away at almost half of the GPUs. Its a work in progress !!
@holina_factory 350 users at $29 one time and the hardware is paid off, that's a clean story hehe
voice AI for local restaurants is such a cool use :)
do the restaurants find you or do you go knock on doors?..
@moss_ab_mirande_ney Right now all the restaurants are getting pitched in person. I usually make sure its a strategic approach so I am not walking up to every restaurant. There are a ton of different wrenches when it comes to restaurants and taking real customers orders. I am starting to see why a lot of AI receptionist choose one type of restaurant and only cater to them. The bigger the menu the more the work!
For the AI inside the product, yes, per request rather than per invoice. Every flashcard generation costs the user one credit, and if the model returns nothing usable the credit goes back. That forces you to know what a single call costs, because you're the one eating it when it fails.
The invoice view hides that. A monthly total going up could mean more users or a model getting worse at your task, and those need opposite fixes.
@hamanovich love the credit going back when the model fails, that keeps you honest! And you're right, the invoice hides everything... Do you also track it per model? Like when you switch models, do you see the cost per flashcard change a lot?
@moss_ab_mirande_ney Not on a dashboard, honestly. I measure it when I switch, then stop looking until the next switch
Moving to the newer cheap tier roughly halved the per-card cost on the default path, so the switch paid for itself before I'd even checked quality.
The surprise was the opposite direction though. Pairs where neither language is English go to the expensive model, because the cheap one got translations wrong noticeably more often there. So the cost per flashcard depends more on the language pair than on volume.
@hamanovich wait that's such a good insight, the language pair matters more than the volume! Do you route it automatically or did you hardcode which pairs go to the expensive model?
@moss_ab_mirande_ney Hardcoded. One rule: if neither language is English, it goes to the expensive model. No per-pair list, no runtime routing.
It came out of evals, not intuition. I run a sample of hundreds generated cards past a separate model acting as a judge, and the non-English pairs kept failing on meaning far more often than anything with English on one side.
Spanish to Portuguese probably doesn't need the expensive tier, Bengali to Japanese definitely does, and both get the same treatment. I'd rather pay a bit too much on the easy pairs than ship a wrong translation to someone who can't spot it yet.
I split it by job, which makes the costs much easier to reason about:
- Claude Code is my orchestrator for anything dev: coding, infrastructure, fixing issues.
- I've got a big database (millions of records) that constantly needs cleaning, categorizing and structuring as new data comes in. For that I use a cheaper, more basic model on OpenRouter. It's plenty for categorization and small jobs, and far cheaper at volume.
- Anything customer-facing (support chat, natural language search in the app) runs on OpenAI.
- AWS Bedrock is a fallback for the OpenRouter models.
- Grok Bot handles everything else, from bookkeeping and partnerships to social and SEO content.
To keep on top of it, one of my Grok Bots sends me a daily digest of AI spend across all services in Slack, so nothing creeps up unnoticed. If you want to be more disciplined, pipe that data into something structured like Google Sheets, Airtable or any analytics platform and chart it over time.
Then at the end of each month I check the total sits well within my margins.
@rich186Â splitting by job instead of by tool makes so much sense hehe, a cheap model for the millions of records is smart... the daily spend digest in Slack is a nice touch :) did you ever catch a cost spike early thanks to it?
@moss_ab_mirande_ney I did actually, just a few weeks back.
Turns out one of the Openrouter hosts went down, and it started routing to a really expensive host instead. So now Iâve implemented a per-token cost cap and a specific whitelist of OR hosts.
@rich186Â oof, silent rerouting to an expensive host is exactly the kind of thing you'd never notice without that digest hehe... per-token cap + host whitelist is a solid fix, stealing that idea :)
Most of the answers here are from the dev side, so one from the design side: a lot of the expensive loops start with a vague ask. "Make this screen look better" can take five rounds. One or two lines on the layout, the states and the copy you want usually gets there in one or two. Writing the brief first is the cheapest optimization there is, and it doesn't need a dashboard.
Paul's "cost per completed task" is the number I'd want too. A monthly total tells you that you spent money, not whether it bought anything.
We started tracking it per feature instead of per tool, and the surprise wasn't one big bill. It was the same context paid for again on every single turn, because nothing was cached. The fix there was boring and cut more than switching models would have.
@farzam_habibi the same context paid again on every turn, that's exactly the leak we see too... and yes the boring fix is always the one that works hehe. What did you use for the caching, the provider's prompt caching or your own layer?
@moss_ab_mirande_ney The provider's own caching! The boring part was mostly ordering... the long fixed instructions go first and the parts that change go last, so the automatic cache can actually hit.. For our biggest prompt we're moving to explicit context caching, since three design drafts share the same long instructions.
@farzam_habibi fixed stuff first, changing stuff last so the cache hits... such a simple trick and almost nobody does it hehe. Thanks for sharing :) What are you building by the way?
The same context being processed multiple times is such an overlooked cost. I think most people only realize how expensive AI can get when the invoice arrives đ
@ankit_pandit_dev haha the invoice is the real monitoring tool for most people... did you find a way to catch the repeated context early, or is it still mostly after the fact? :)
We bought the GPUs and host everything locally instead of renting cloud GPU. Thankfully I got them at MSRP and didn't have to pay what the resellers are asking for right now. Not having a meter running on every request makes a big difference.
@holina_factory getting them at MSRP right now is a flex hehe
no meter running on every request must change how you use it...
do you end up running way more experiments now?..
@moss_ab_mirande_ney lol it was good timing to say the least. When I saw the recent prices of the DGX Sparks and 5090s I had to check on multiple sites to believe it! Yes, I not only run more experiments but I am able to charge my clients/users with an upfront price instead of leaning on tokens and credits.
@holina_factory charging upfront instead of tokens and credits must make selling so much easier...
do your users ever ask for usage based pricing anyway?
@moss_ab_mirande_ney Its def a selling point! We all hate the surprise of "Add more tokens/credits to continue" in the middle of a session. It always seems to happen right before your about to finish up lol. I haven't had anyone question the upfront pricing yet. I try to look at my product as if I was the consumer , ya know?
The real credits burn usually falls in the AI fixing loops, especially when each iteration breaks something instead of fixing what you intend to fix. SO, what I started lately doing is to stop after the third attemp, revert to the last working version then change the strategy.
I'm curious, what's your worst credit-burning loop, and how did you manage to break it ?
We track it, but not very well at first. For a while we only had the invoice total. It goes up every month, it tells you nothing, and you close the tab.
What helped was splitting spend into two buckets:
Seats (Claude, Copilot, etc.): a fixed cost per person. Easy to budget, and we review it every quarter to see who actually uses what.
API usage (agents and pipelines): this is the one that sneaks up on you. We tag every call by project and workflow, so we can see which one is burning money. Usually it's one agent re-reading a huge context window on every step.
The number that actually changed our decisions was cost per completed task, not cost per month. A workflow that costs more but finishes the job can be cheaper than a "cheap" one that needs three retries and a human to fix the result.
The duplicate-context point is real, by the way. Caching the shared context and keeping agents from each re-reading the whole repo did more for our bill than switching models.
So yes, there's a budget, but it's per workflow, not per tool.