Open-source vs closed LLMs for production
Open source vs closed LLM for production: what changes in cost, control and quality, and how to test which model fits your one task on your own data.
Updated
Open-weight and closed models differ in who holds the model. An open-weight model is one whose trained weights you can download and run yourself. A closed model is one you can only reach through a vendor’s API, and the vendor decides when it changes or goes away. For production work, the choice comes down to control, cost per task, and whether the model is good enough at the one job you need done.
People often say “open source” when they mean open-weight. The weights are published, but the license and training data may not be fully open. Read the license before you assume you can use a model commercially.
What open and closed mean in practice
With a closed API, you send text to a vendor and get text back. You pay per token, you cannot copy or inspect the model, and your prompts leave your environment. The vendor can improve the model, which helps, or change its behavior, which can break your product. Retirements are the sharpest case. A model can be shut off on a date you did not pick, which is why vendor lock-in is a real cost.
With an open-weight model, you keep a copy of the weights. You choose where it runs: your cloud account, your own servers, or a machine in your building. You also choose when to upgrade. The tradeoff is that someone has to run it. You need compute, serving, monitoring and a plan for updates.
When a closed API is still the right call
If your volume is low, your tasks change every week, or you need broad general reasoning, a closed frontier model is usually the simpler choice. You pay list price, you get strong general ability, and you skip the operations work. Check each vendor’s current pricing page before you decide, since prices change.
Keep the closed model as your baseline, run on the same test set as any replacement, so you can see whether a switch was worth making.
Where open-weight models win on one task
Open-weight models tend to win when one task runs at high volume and the task is narrow. A model trained on that single job can do it well without the breadth a general frontier model needs. Your cost then becomes a cost per document, not a bill you cannot predict.
Contract review shows the pattern. A legal operations team might pull four things from each agreement: the termination notice period, the governing law, the cap on liability and any limit on assignment. Each answer has to quote the exact passage, because a lawyer checks it against the source. A general model can do this, but the same extraction then runs on every new contract.
When we ran this exact pattern on CUAD, a public contract set, the model trained for it beat Claude Opus, a gap that reflects narrow training rather than general quality and an engineering comparison rather than legal advice. Full results.
What a fair test looks like
A fair test uses your real documents, not a vendor’s demo set. Split the data by document or by contract, never by chunk, so the same source does not appear in both training and testing. Score the model you use today first, so you have a baseline to beat. Then compare on the same held-out set with the same scoring rules. If you have few examples, use cross-validation so every item is scored by a model that did not train on it. The guide to testing an LLM on your own data walks through the steps.
Cost per task, not per token
Compare cost per task and throughput, not headline rates. A per-token price says little when one model writes longer answers, needs longer prompts or needs a second pass for review. Add up one finished job end to end: input tokens, output tokens, retries and the human check that follows.
In our contract test, one document cost $0.0045 on the Accuracy tier and $0.155 on Claude Opus at list price, measured on the same set. Run your own volume through the LLM cost calculator before you decide. Then measure throughput under your own load, since concurrency and queueing can change the capacity you need.
Common mistakes to avoid
Teams that switch on instinct tend to repeat the same errors:
- Counting only compute. Someone has to run the model, patch it, watch it and handle incidents, and that time belongs in the cost.
- Testing on the easy documents. A set of clean, typical files flatters whichever model you already prefer.
- Comparing a fine-tuned model on its own test with a general model on a public benchmark. Use one test for both.
- Skipping the rollback plan. Keep the exact weights you tested, so you can return to them if quality drops.
- Assuming the license allows your use. Read the commercial terms and any limits on training data before you build on a model.
Before you move a task, write down:
- The one task, its monthly volume and who uses the output.
- Its current cost per task and its current quality score on your data.
- A held-out test built from your real documents, split by contract.
- The license terms and the vendor’s retirement policy for the current model.
- The operations hours you expect to spend each month running the model you would host.
Own Weights starts with a free audit. We map your AI spend by task from your code and invoices, so you can see which task is worth moving and which should stay on a closed model. We then build a test from your data and score the current model. A trained model goes live only if it beats the current model on that test, and it runs in your cloud account or your building. For the full sequence, see migrating one task off a frontier API. For the cost side, see where API and self-hosted costs cross. If you have a high-volume task on a closed API, book a call and we will show you the numbers for that task before you commit to anything.
Questions
Is an open source LLM as good as GPT or Claude?
On one narrow task, a model trained for that task can beat a general closed model. On broad general reasoning, closed frontier models are usually stronger. The only fair answer for your product comes from testing both on your own data.
Do I own the weights of a closed model?
No. With a closed API you rent access, and the vendor controls the model version, the pricing and the retirement date. Owning the weights means you can host the model yourself and keep the exact version you tested.
How does open-weight model cost compare with a closed API?
Closed APIs bill per token at list price, so cost grows with volume. A model you host moves the cost to compute and operations, which tends to pay off at high volume on one task. Check each vendor's current pricing page before you compare.