MSTechAlpine MSTechAlpine

· Jesse Edwards · Case Studies  · 7 min read

What Our Production AI Actually Costs

People assume AI in production is expensive. The AI pipeline behind RenovationRoute makes about 35,000 model calls a month and costs about $1.50 a day. Here are the real numbers and the boring decisions that keep them low.

People assume AI in production is expensive. The AI pipeline behind RenovationRoute makes about 35,000 model calls a month and costs about $1.50 a day. Here are the real numbers and the boring decisions that keep them low.

When I read about model providers burning through capital, I find it fascinating. The baseline assumption is that frontier AI is an expensive game that only massive enterprises can afford to play. When I first started experimenting with built in models for development in mid 2025, my costs were predictable, averaging around $40 to $50 a month, peaking at $90 during heavy feature pushes. Even as development tools and business models have evolved, the ongoing competition between proprietary ecosystems and open source alternatives has kept API pricing remarkably accessible for developers who know how to manage it.

The nightly backend pipeline for RenovationRoute does some heavy lifting. It pulls down new federal construction jobs, reads the notices along with their attachments, extracts specific work items and requirements, matches jobs to contractors, and automatically builds comprehensive bid checklists.

In the last 30 days, that sequence generated 35,199 model calls and processed roughly 262 million tokens.

The total cost? $58.97. On a normal day, the operational footprint runs about $1.50.

I started logging every single call in August, so these are audited production numbers, not optimistic estimates. Here is exactly where the money goes and the architectural decisions that keep the bill low.

One important caveat first

These numbers strictly cover the data pipeline: the nightly heavy lifting of reading, parsing, and matching jobs. The user facing features inside the web application, like our AI Quote Builder, design photo tools, and the lead inbox run on separate API keys under the same master account. What we are analyzing here is the cost of the background data machine, not the active Rails application side.

The real numbers

MonthCostCalls
August (from the 5th)$37.1540,596
September (through the 24th)$50.8227,296

Here is how the last 30 days of production usage broke down by feature:

What it doesCostCalls
Bid checklists$18.10766
Reading each job notice$17.823,619
Pulling out the work items$12.773,170
Sorting attachments$2.53—
Summarizing contractor websites$2.51—
Matching jobs to contractors$1.8110,785
Everything elseunder $1 each—

Look closely at the contractor matching line: nearly eleven thousand distinct calls executed for less than two dollars. Now look at the bid checklist generation: only 766 calls, but they cost over eighteen dollars. The massive variance comes down entirely to payload size specifically, how much text each call has to ingest and process.

September ran slightly higher than August for one primary reason: the bid checklist engine went live mid month, and a large initial batch run cost $12.48 on its own day. From a strategic perspective, leveraging these AI aggressively is essential. Businesses that fail to integrate risk being left behind. It is incredible that a completely solo founder can leverage AI to build and operate a SaaS business whereas 5 years ago this would have required a small team.

1. Test the cheap model on your own data

When the pipeline launched, the bulk of the work ran on gpt-4o-mini. As the architecture evolved, we transitioned the standard processing workloads to specialized, high efficiency small models like gpt-6-luna, which offer a massive 10x to 15x cost reduction compared to larger flagship models.

I didn’t choose the lighter model blindly because of the price tag. I chose it because testing showed that paying 15 times more for a flagship model only yielded a negligible 0.01% improvement in parsing accuracy. Today, every single touchpoint in the application is benchmarked.

When configuring the matching pipeline, I ran both model tiers against real contractor portfolios and job notices. The text explanations they returned were nearly identical. However, the smaller model consistently scored matches roughly 10 points lower across the board. If I had blindly swapped models without testing, excellent contractor matches would have quietly dropped below our system visibility cutoff. Knowing this variance allowed me to simply lower our application’s match threshold by 10 points and safely deploy the cheaper model.

Smaller models aren’t always universally worse; frequently, they are just differently calibrated. You can only map those differences by testing against your own live production datasets.

2. Use the big model only when you have to

For complex, creative, or deeply contextual features such as compiling multi stage client quotes or rendering structural design graphics, larger, more robust models are needed. Similarly, some federal bid packages are massive, containing far more dense instructional text and regulatory requirements than a lightweight model’s context window can accurately parse. When payload scale or reasoning complexity demands it, scale up the model tier. Use the right tool for the specific job, and verify your choices via continuous benchmarking.

3. Do not ask the same question twice

Just because lightweight model calls are inexpensive doesn’t mean you should abandon efficiency. We strictly limit redundant processing. Every construction job notice receives a unique SHA-256 fingerprint of its raw text contents upon ingestion. If the notice text hasn’t changed on a subsequent crawl, the pipeline skips it entirely. When a prompt engineering update is deployed, a database query ensures we only re-process historical records that were analyzed under the legacy prompt version.

Without this caching logic, a minor prompt update would force the system to re-read roughly 1,300 active jobs over 7 hours of continuous API calls. Now, it only updates what is dynamically required.

4. Let plain code go first

Before a dataset ever touches an LLM, traditional deterministic code has already eliminated the majority of variance which we know is garbage. Our backend filters matches based on physical distance, strict small-business set-aside rules, and lightweight, local keyword similarity searches. Only the highly qualified subset of records that pass these fast code gates get passed to the model.

LLMs are powerful, but they are fundamentally non-deterministic. If you pass them identical inputs twice, you can receive slight variations in output. Do the heavy, predictable filtering before utilizing an LLM, and apply strict verification code directly after it returns a response.

The bid checklist engine operates on this exact principle. Code parses the document to isolate specific structural lines that resemble project requirements first. The language model is then brought in solely to categorize and refine what the code already discovered. Furthermore, historical award notices (jobs already won by a competitor) are stripped out immediately. There is no business value in paying an external API to summarize a contract that is already closed.

5. Cap everything

Uncapped loops are how cloud bills turn into horror stories. We enforce hard boundaries across the entire data ingestion layer:

  • Job notices are truncated at a strict character limit before payload assembly.
  • Ingested contractor website data is sliced to the first 3,000 characters.
  • No single construction project can trigger more than 25 distinct contractor matching calls (implemented after an anomaly job originally triggered 226 parallel calls).
  • The nightly cron job features a hard global ceiling on total permitted match evaluations.

Defensive limits turn an unexpected edge case into a minor billing blip of a few dollars rather than a catastrophic surprise on your morning dashboard.

6. Run small models on your own machine when you can

A key component of our bid verification checklist relies on two compact, open source models running directly on our application server’s CPU. One handles semantic textual similarity embedding, while the other runs cross encoder entailment checks to verify if one project sentence logically supports another. Together, they occupy a tiny 400 MB memory footprint and cost exactly zero dollars per call.

7. Log every call

Every call writes a row. It records what part of the system made it, which model, how many tokens, what it cost. That table is how I know the numbers in this post. It is also how I saw the $12 day for that one feature.

If you are not logging cost per feature, you do not know what your AI costs. You know what your invoice says.

What this means if you are thinking about AI

The expensive part of AI in production is usually not the model. It is sending the model more text than it needs, sending it the same text twice, sending it things plain code could have decided, and not noticing until the bill comes.

Get those right and the model bill turns into a small line item you can watch every morning. Additionally not trying to have model try to solve everything will cut down on the garbage that it will spit out.

Back to Blog

Related Posts

View All Posts »
When AI Is Wrong in Production, and How We Catch It

When AI Is Wrong in Production, and How We Catch It

Clean data in did not mean clean answers out. The checks that still catch 4 to 9% of AI output, the other ways to verify it, five things AI did in production that I did not see coming, and a cheat sheet for where AI belongs.