On-prem AI cost: capex vs opex and how to book it
On-prem AI cost means buying servers as capex and depreciating them. Here is how finance books it, and how it compares with a cloud API bill.
Updated
On-prem AI cost is what you pay to run a model on servers you control. That includes the hardware, installation, power, cooling, and the people who keep it running. Finance usually books the servers as capital expense (capex) and depreciates them over their useful life, while API fees and power bills are operating expense (opex) that hit the books as they are incurred.
What goes into on-prem AI cost?
The server invoice is only part of it. Budget for:
- Hardware and networking, bought outright or leased
- Installation, racks and any room changes
- Power and cooling, billed every month
- Staff time for setup, upgrades and monitoring
- Model work: testing against your own data, and training the model for the task
Keep these in separate ledger lines. A single “AI infrastructure” line hides which part is capex and which is opex, and that is the first thing an auditor will ask about.
Capex vs opex: how should AI infrastructure be booked?
Capex is money spent on something you own that lasts beyond one year, such as servers or storage. It goes on the balance sheet and falls over time through depreciation. Opex is money spent to run things, such as API calls, cloud rent, support contracts and electricity. It is expensed in the period you pay for it.
Some cloud commitments are prepaid, and a prepayment sits on the balance sheet until it is used. Put each contract on your accountant’s list and let them decide the treatment. The exact thresholds and useful lives vary by company and by jurisdiction, so read this as general accounting, not tax advice.
How does AI hardware depreciation work?
Most companies use straight-line depreciation. The cost, minus any value you expect to keep at the end, is spread evenly over the asset’s useful life. Here is a hypothetical example with round numbers. A company buys a server package for $120,000 and expects to use it for four years. That is $30,000 a year, or $2,500 a month, on the income statement.
Useful life is an estimate, not a fact. AI hardware changes quickly, so a shorter life can be defensible if the equipment will lose value fast. Write down why you picked the life, and review it every year.
Is on-prem AI cheaper than a cloud API?
It depends on volume and on how steady the work is. A fixed monthly on-prem cost pays off only when the same job runs at high volume. A per-call API bill is cheaper for small or uneven workloads.
Break-even is simple arithmetic. Divide the monthly fixed cost by your API cost per document. Using the hypothetical $2,500 a month above and the exam’s Claude Opus cost of $0.155 per document, break-even is about 16,000 documents a month. Your real per-document cost depends on document length and prompt size, so run the sum with your own numbers.
Claude’s list prices set the API side of that sum. Opus is $4 per million input tokens and $20 per million output tokens. Haiku is $0.10 input and $0.50 output for prompts up to 100K tokens. Anthropic’s Batch API is half price. For other vendors, check their current pricing page.
Measured at list price on 102 held-out contracts from the exam, Claude Opus cost $154.49 per 1,000 documents. Our Accuracy tier was priced at $4.50 per 1,000 documents on the same contracts, and Claude Haiku came to $4.95. Those are exam prices, not your bill.
Quality belongs in the same comparison. On that exam, scored as the share of exactly right quotes where 1.0 is perfect, our Accuracy model scored 0.717. Claude Opus scored 0.635 and Claude Haiku 0.584. The lead was +0.082 over Opus and +0.133 over Haiku, both larger than the margin of error. Claude took the exam with one prompt, no examples and no task training. Our models were fine-tuned for this exam. That shows what training for one task does. It is not a legal product or legal advice, and it does not mean our model beats Claude at everything. Fine-tuned models beat frontier models on the exam we ran. On a narrow task with good data, a fine-tuned model can beat a frontier model too, but not every time.
When is on-prem the wrong choice?
Skip on-prem for a small or spiky workload. Pay per call instead. Also skip it if nobody on your team can run the system, if you need one model across many unrelated tasks, or if your volume cannot cover the fixed line. Hardware that sits idle is a loss you still book.
Throughput also changes the capex. On the exam, with 32 requests at a time, our Accuracy tier processed about 5,100 tokens per second and the Standard tier about 14,000, counting input and output across all requests. One request at a time, they write about 90 and 174 output tokens per second. Standard handled 2.7x more documents an hour than Accuracy. A server that does more work per hour means fewer servers to buy, so measure throughput on your own documents before you size the order. For the full exam results, see the benchmark page. For a per-call estimate, try the LLM cost calculator. To see how the three-year view changes the answer, read LLM total cost of ownership and on-prem vs your own cloud for AI.
Own Weights fine-tunes an open-weight model for one high-volume task, tests it against the current model on your data, and serves it in your cloud account or on-prem. You own the weights. The model assists the people who review its output. It is not legal, tax or financial advice, and it runs under your own controls.
Start with the spend you already have. Our free AI cost audit lists your AI calls, models and estimated costs from your code, and it runs on your own machine.
Questions
is on prem ai cheaper than cloud
It depends on volume and on how steady the work is. A fixed on-prem cost pays off when the same job runs every month at high volume. Per-call cloud pricing is usually cheaper for small or uneven workloads.
capex vs opex ai infrastructure
Capex is spending on assets you own for several years, such as servers, which you depreciate over time. Opex is spending you expense as you go, such as API fees, cloud rent and power bills. Your accountant sets the thresholds and useful lives for your company.
ai hardware depreciation
Most companies spread the cost of servers evenly over an estimated useful life. A hypothetical server package costing 120,000 dollars over four years works out to 30,000 dollars a year. A shorter life can be defended when the equipment loses value quickly.
on premise llm vs cloud api cost
Set the fixed monthly on-prem cost against your expected per-call API bill at your real document volume. Divide the fixed cost by the API cost per document to find the break-even volume. Check each vendor's current pricing page before you run the numbers.
on prem ai cost
The main lines are hardware, installation, power, cooling, staff time, and the work of testing and training the model. Track the hardware separately from the running costs so finance can book each correctly.