Private AI cost vs paying a hosted API per call
Private AI cost compared with a hosted API per call: fixed costs, per-token prices, real exam price numbers, and when a hosted API is the cheaper choice.
Updated
Private AI costs more per call than a hosted API at low volume, and it can cost less per document at high volume. A hosted API bills per token and stops when you stop. A private model has fixed costs for capacity, people and testing, and those costs only look small once enough calls share them.
Is private AI more expensive than a hosted API?
Often, at small volume. A hosted API has no fixed cost. You pay for the tokens you send and receive, and nothing when the job sits idle. A private model has a running cost even when it sits idle: the machines or reserved capacity, the staff who keep it running, and the test work that shows it still meets the bar. Those costs spread across more calls as volume rises, so the cost per call falls. Below some volume, the hosted API is the cheaper choice. Find that volume with your own numbers before you decide.
Hosted APIs bill by token. Claude list prices are $4 per million input tokens and $20 per million output tokens for Opus, and $0.10 input and $0.50 output for Haiku, for prompts up to 100K tokens. Anthropic’s Batch API is half price for work that can wait. For OpenAI, Google and other providers, check the current pricing page, since rates change often.
What did the exam price comparison show?
We ran a public extraction exam on 510 commercial contracts, with answers marked by lawyers. Measured at list price on 102 held-out contracts, per 1,000 documents our Accuracy tier cost $4.50, our Standard tier $3.54, Claude Haiku $4.95 and Claude Opus $154.49, with Claude billed for the tokens it used. Per document, that is $0.0045 for our Accuracy tier and $0.155 for Claude Opus. Per 1 million tokens counted on the same text, ours was $0.31 for Accuracy and $0.24 for Standard, against $0.34 for Claude Haiku and $10.53 for Claude Opus.
Haiku came out nearly level with our Accuracy tier per document on this exam. The large gap was against Opus. Run the same comparison on your own files, because contract length and layout change the token count.
Does a private model give up accuracy to save money?
On the one exam we ran, the trained models scored higher, for one narrow task. Our Accuracy model scored 0.717, our Standard model 0.650, Claude Opus 0.635 and Claude Haiku 0.584, where 1.0 is perfect. The lead over Opus was +0.082 and over Haiku +0.133, 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, and can on a narrow task with good data. They do not always do.
What does private AI cost in your own cloud or on-prem?
There are four cost lines: capacity, build, upkeep and staff time. Capacity is the machines in your building or the reserved compute in your own cloud account, and its cost per call depends on how busy it stays. Build is the one-time training plus the test set you make from your own records. Upkeep covers retraining when your documents change, patching and monitoring. Staff time is the person who owns the system, which a hosted API does not need. Where it runs is its own decision, covered in on-prem vs your own cloud.
Hypothetical example, with round numbers: a team sends 1 million documents a month to a frontier API. Each document averages 3,000 input tokens and 500 output tokens. At Claude Opus list price, input costs $12,000 and output costs $10,000, or $22,000 a month. At Claude Haiku list price, the same volume costs $300 for input and $250 for output, or $550 a month. A private model has to beat the hosted price for the same work after its own fixed costs. If your current model is already small, the case for private AI rests more on control than on price. Ask any vendor, including us, for each cost line in writing before you compare totals.
Does private AI cut compliance costs?
It can cut some of them. Each hosted API vendor needs its own review: where prompts go, how long they are kept, whether they train on them, and what the contract says. That review repeats for each vendor and each change. A model in your own cloud account or building keeps the data path inside your own controls, so the review covers your environment instead of a third party’s terms. You still need logging, access control and approvals. The model assists people who review its output. It is not legal, medical, tax or financial advice, and running it privately does not make your process compliant on its own. Ask your compliance team which of these items applies to you.
When is a hosted API the better choice?
Keep the hosted API when:
- Your volume is low or uneven, so fixed costs sit idle.
- The task changes often. Fine-tuning fits a stable task with clear outputs.
- You have no one to run and test a model.
- The work spans many domains and needs general knowledge.
Our fine-tuning ROI guide shows the payback math in more detail, and the three-year total cost of ownership view covers the upkeep lines. Full exam results are on the benchmark page. The home page explains how we work.
If you want the number for your own workload, start with the free AI cost audit. It reads your repository as text on your machine, uploads nothing, and lists the AI calls it finds with an estimated cost for each. Then we can talk about which calls are candidates for a trained model and what a fair test would look like.
Questions
Is private AI more expensive than a hosted API?
At low volume, usually yes. A hosted API charges only for the tokens you use, while a private model carries fixed costs for capacity, staff and testing. Those fixed costs spread across more calls as volume grows, so the answer depends on your volume.
How much does it cost to run AI on premise?
The cost depends on how much capacity you buy, how busy it stays, and who runs it. Price the hardware or reserved cloud capacity, the one-time training and test work, the upkeep and the staff time as separate lines. Ask any vendor for that breakdown in writing.
What is the cost of self-hosting AI for privacy?
Self-hosting adds the capacity and the people to run it. In return, prompts and outputs stay inside your environment, which can shorten vendor reviews. It does not replace your own logging, access controls or approvals.
What does private LLM pricing look like for a business?
Private LLM pricing is usually a mix of setup, training, capacity and upkeep, not a per-token rate. Compare it with a hosted API on cost per document or per task, running the same test files through both.