LLM total cost of ownership: a three-year view
LLM total cost of ownership over three years: training, retraining, monitoring and staff time for an owned model, set against three years of API spend.
Updated
LLM total cost of ownership is the full cost of running a model you control for three years, not just the compute bill. It adds training, testing, serving, monitoring, retraining and the staff time that keeps the model working. Set that total against three years of API spend on the same task, and you have the number that decides whether owning the model pays.
This page covers each line, how to set up the comparison, and where an API is still the better buy. Own Weights builds owned models for one task at a time. Use your own quotes and invoices for every number you plug in.
What goes into the three-year total?
Most teams start with the compute line and stop there. The full total has seven lines:
- Training. The one-time run that fine-tunes an open-weight model on your own labeled examples. Fine-tuning cost covers what drives it.
- Test set. An evaluation set built from your own records, scored against the current model before anything switches over.
- Serving. The compute that answers requests, in your own cloud account or your own building. You pay for the capacity you run, whether or not traffic fills it.
- Monitoring. Logs, accuracy checks on a sample of live traffic, and alerts when quality drops.
- Retraining. A new training run and a new test each time your documents or rules change.
- Updates. Security patches, serving upgrades, and a re-run of the test after each change.
- Staff time. The hours an engineer or ML person spends on all of the above, plus on-call time.
Training is the line people quote most. Over three years, the recurring lines add up to more.
What does AI model maintenance cost over time?
Maintenance is the recurring part of the total. Its size depends on how fast your inputs change and how many hours your team can spare each month.
A stable task, such as pulling the same fields from one kind of form, needs a retrain now and then. A task where contract templates, product catalogs or policy rules change every quarter needs one each quarter. Count the retrains you expect in 36 months, multiply each by the training and test cost, and add them to the total.
Monitoring costs less in compute than in attention. Someone has to read the alerts and decide whether a drop is real. Put a fixed number of hours per month on the budget for that, because it is the line that quietly disappears. For the steps behind drift checks and updates, see maintaining a self-hosted model. For setting a retrain schedule, see when to retrain a fine-tuned model.
How does the three-year API bill compare with owning a model?
Start with the API side, since invoices make it easy to pull. Claude’s list prices are $4 per million input tokens and $20 per million output tokens for Opus, and $0.10 and $0.50 for Haiku, for prompts up to 100K tokens. Anthropic’s Batch API is half price if the work can wait. For OpenAI, Google or other providers, check their current pricing page, since rates change.
Then run the arithmetic on a hypothetical. Suppose one task costs $10,000 a month in API calls today. Over 36 months that is $360,000, before any price change or growth. These are round numbers for illustration, not your bill.
On the owned side, add the seven lines above for the same 36 months, using your own cloud invoices, your own quotes and your own staff rates. Do not take a number for any line from a blog post, this one included.
Run the comparison twice, at today’s volume and at double. API cost moves with every call. Owned cost moves with the capacity you buy, so it can stay flat for a while, then step up when traffic outgrows what you run. Put both totals side by side before anyone decides.
Before the sheet goes to anyone, score the owned model and the current API model on the same checked records, because if the owned model misses, the savings come back as rework and review hours. Re-run that test after every retrain and add its hours to the staff-time line. The full method is in how to build a test set.
When is an API still the cheaper choice?
Owning a model is the wrong choice in several common cases. If volume is low, the fixed lines, such as the test set, monitoring and staff time, can outweigh the per-call savings for years. If the task changes every few weeks, you will retrain constantly. If you have no labeled examples and cannot build a test from your own records, you cannot show the owned model is better, so do not switch. If you need one broad model for many unrelated jobs, a frontier API is the simpler tool.
A practical order: keep the API in place, measure the task, and move only a task you can test well and that has steady volume. Keep the API as a fallback for the first months, and cut over once the test and the monthly hours are in place.
If you want the three-year number for your own task, start with the free AI cost audit. It reads your code as text on your machine, makes no network calls while it reads, uploads nothing, and lists your AI calls, models and estimated cost. Or book a call, and we will build the comparison with you from your invoices.
Questions
What is LLM total cost of ownership?
It is the full cost of running a model you control over a fixed period, usually three years. The total covers training, testing, serving, monitoring, retraining, updates and staff time, which are the costs an API bill never shows.
What is the TCO of self-hosted AI?
It is the one-time setup cost plus the recurring cost of running the model yourself, including the people who keep it working. Compare that sum with the API bill for the same work over the same period, at your expected volume and at a higher one.
What does AI model maintenance cost?
Maintenance is the recurring work of checking quality, retraining when inputs change, applying updates and paying the staff hours for all of it. The size depends on how often your documents or rules change. Put a monthly staff-hours figure on the budget line so it does not disappear.
What is the ongoing cost of a custom LLM?
It is what you pay each month to keep a custom model serving and accurate. That covers the compute to run it, monitoring, and periodic retraining with a fresh test. A stable task needs fewer retrains than one where your rules change every quarter.
How does three years of API spend compare with owning a model?
Add up three years of the API bill for the task, then add the full owned-model total for the same period. Owning tends to pay off only when volume is steady and high and the task can be tested well.