AI API costs · Updated October 2026
Why your AI API bill spikes, and how to see it early
I asked SaaS founders in an online forum what drives their monthly AI API bill and whether they know. The replies kept coming back to the same three points. Here they are, with what to do about each.
Most teams find out from finance
The bill arrives as one number per provider, once a month. Nobody looks closely until someone in finance asks why it went up. By then the cause is weeks old: a prompt that grew, a retry loop, a feature that got popular, or a test script left running.
The fix is to look at spend every day instead of every month. A daily number makes a jump visible while the change that caused it is still fresh in everyone's mind.
Tag every call by feature and alert at twice normal spend
Provider consoles group cost by model and API key. That tells you which model is expensive, but not which part of your product is. Add a feature tag to every request (the request metadata field, or your own log line with the token counts), then add up cost per tag each day.
Once you have a normal daily level, set an alert at about twice that level. Example, made-up company: normal spend is $40 a day, so the alert fires at $80. That catches a loop or a bad deploy within hours instead of at the end of the month.
The same tags show what each customer or feature costs you, which matters as soon as you charge for AI features. See AI budget alerts and AI cost per customer for the software I'm building around this.
Route by job type and track errors next to cost
Many requests are simple: tagging, extraction, routing, short summaries. Those usually run fine on a smaller model at a fraction of the price. Long reasoning and hard code usually do not.
When you move a job type to a cheaper model, track its error rate together with its cost. A model that costs less per token but fails more often can cost more per finished task once retries and manual fixes are counted. Compare cost per successful task, not cost per token. The Claude Sonnet 5.5 vs Claude Haiku 5.5 guide shows how to test a switch on your own requests.
A short checklist
- Look at spend per day, not per invoice.
- Tag every request with the feature that sent it.
- Alert at about twice your normal daily spend.
- Move simple job types to a smaller model, one at a time.
- Track errors and retries next to cost for every job type you move.
Your own numbers
List prices are the same for everyone. What you pay depends on your models, prompt sizes, caching and retries. The free calculator gives an estimated range in a minute with the method shown. The $400 audit reads your actual usage exports and ranks the changes worth making, each with an estimated range. Request my audit
Questions
How do I find out what drives my AI API bill?
Tag every request with the feature that sent it, then add up cost per tag each day. Most provider consoles only group by model and API key, so the tag is what turns one invoice into a list of features with a cost next to each.
What spend alert threshold should I start with?
Twice your normal daily spend is a simple starting point. It is high enough to stay quiet on ordinary days and low enough to catch a loop or a bad deploy the same day. If weekdays and weekends differ a lot, compare each day to the same weekday last week.
Is moving to a cheaper model worth it?
Often, for short and well-defined tasks. Measure the error rate together with the cost: if the cheaper model fails more and those requests get retried or fixed by hand, the saving shrinks. Cost per successful task is the number to compare.