Own Weights

The cheapest way to run LLM inference at scale

Cheapest LLM inference at scale: train an open-weight model for one task, measure cost per document on your own data, and serve it in your cloud.

Updated

For one repeated task, the cheapest LLM inference usually comes from a trained open-weight model, not a frontier API. You train that model on the task, test it against the model you use now on your own data, and serve it in your own cloud account or on-prem. You pay for the work the model does, not for a general model’s breadth.

“Cheapest” only means something per unit of work. A price per million tokens tells you little until you know how many tokens each document uses and how many answers come back right. Track cost per document, per ticket or per record, measured on the data you will run in production. The cost per document guide walks through the arithmetic, and the cost per million tokens guide covers the headline rate in more detail.

Why a per-token price misleads

Frontier APIs bill input and output tokens at different rates, and output usually costs more. Take a task that reads 3,000 input tokens and writes 400 output tokens per document. If an output token costs five times an input token (check your provider’s current rates, since the ratio varies), the output is about 12 percent of the tokens but about 40 percent of the bill.

Reasoning tokens and long contracts add volume you may not budget for. A forty-page agreement can cost many times what a one-paragraph email costs, even when both produce an answer of the same length. Count the tokens your real inputs produce before you trust any rate.

Batch processing lowers the rate for work that can wait for results, so it helps only when you can wait. For that trade-off, see batch APIs vs real-time calls. Check your vendor’s pricing page before you compare, since rates change.

How to measure cost on your own files

Run the current model and each cheaper candidate on documents from the queue you actually run, including the long and scanned ones, and log input tokens, output tokens and retries per document. Divide the cost of each run by the number of answers that came back right, and the cheaper option wins only if that figure is lower and its accuracy still clears your bar. The full method is in how to build a test set.

Multiply the per-document figure by your monthly volume to get a budget, and rerun the count when your document mix changes. The LLM cost calculator can help you set up your own volume.

Choosing a tier for volume

The two tiers trade cost against accuracy. Standard suits large batches where the smaller score gap is acceptable on your own test. Accuracy suits work where a wrong quote is expensive to find and fix, such as a clause that ends up in a signed agreement.

Throughput is the other half of the bill. At 32 requests at a time, Standard handled 2.7x more documents an hour than Accuracy in our tests. Those figures describe batch volume at one level of parallel requests, not how long one request takes, so measure throughput and latency separately before you set a target.

Divide cost by the share of answers that are right on your test, not by document count alone. A model that is cheap per document but misses often can cost more per correct answer once someone has to fix its misses. For a deeper look at the volume side, see high-throughput document processing with LLMs.

Moving one task off a frontier API

  1. Audit. The free audit maps AI spend by task, using your code and invoices. Start with the task that has the highest volume and steady output, since that is where a trained model pays back.
  2. Evaluate. Build a test from your real documents, including the messy ones, and score the current model first. That score is your baseline.
  3. Split by contract. Keep every contract in either training or testing, never both. A split by chunk lets the same contract appear on both sides and makes the test easier than production.
  4. Train. Fine-tune the open-weight model on that one task. It must beat the current model on your test before anything ships.
  5. Serve. Run the model in your cloud account or your building, tuned for throughput.

Common mistakes to avoid:

  • Comparing list prices per token without counting tokens per document.
  • Testing on a tidy sample, then running the model on scanned or inconsistent files.
  • Splitting by chunk instead of by contract, which hides the errors you will see in production.
  • Using a frontier model’s answers as training data, which is a terms-of-service risk.
  • Switching once and never rerunning the test after the prompt, data or model changes.

Keep the test after launch. For the method, see how to test an LLM on your own data before you switch.

Who runs the model and what it costs to own

The customer owns the weights. The model runs in the customer’s cloud account or on-prem, under the customer’s own access controls and logging, and your data stays in the environment where you already keep it.

Owning the model also means a vendor’s rate change or model retirement does not reach the model you run. The cost of ownership is different, though. Someone has to keep the test current, retrain when your documents shift, and watch the serving bill. Steady, high-volume work covers those costs well. Bursty or one-off work often suits a hosted API better, because you do not pay to keep capacity ready for it.

To get your own number, start with the free AI cost audit from Own Weights. It reads your code as text on your machine, makes no network calls while reading, uploads nothing, and saves a PDF of your AI calls, models, estimated cost and checks. Run the audit inside a repository, or use the Book a free audit button to talk through your task.

Questions

What is the cheapest LLM inference option?

It depends on the task. For one repeated job, a trained open-weight model can cost less per document than a frontier API. A test on your own data shows which option wins for your work.

Is a cheaper model always worse at the job?

Not always, and the only way to know is to test it. Score the cheaper model and your current model on the same set of your own documents, and compare cost per correct answer rather than cost per call.

Does the Batch API make Claude cheaper?

At list rates, Anthropic's Batch API is half price, so it lowers the bill for work that can wait for results. It does not change the per-token rate for real-time calls. Check Anthropic's current pricing page before you plan around it.