Open vs Closed LLMs: Cost, Control, Privacy and Capability, Decided per Workload
Open or closed is not a team you join. Compare a rented API and open weights you run yourself on cost, control, privacy and capability, then decide per workload: an agent, nightly tagging and hospital notes get three different answers.
What you will learn
- Explain the difference between a closed model and an open-weight model, and why open weights is not always open source
- Compare the two on cost, control, privacy and capability
- Read the shape of per-token cost against your own GPUs and find where your traffic sits
- Pick closed, open or hybrid per workload and keep the model swappable behind one function
Before you start
- LLM Tokens, Context Windows and Cost
Open models or closed models? People argue about it a lot online, as if you had to pick a side. Here's the spoiler: it is not a team you join. It is a choice you make for each workload, and you make it on four things: cost, control, privacy and capability.
Ride-hailing or your own car?
Think about getting to the office every day. You can book a ride, or you can drive your own car. Both get you there, but they cost, and behave, very differently.
- Ride-hailing: you pay per trip and nothing up front. No maintenance, and you usually get a fairly new car. But the company sees every route you take, and the car is whatever they send.
- Your own car: you pay up front, then fuel and repairs. When it breaks, you fix it. But your trips stay private, and you can modify it however you like.
This is exactly the trade-off with language models. A closed model is the ride. An open-weight model is the car you own.
What the two words actually mean
The words get used loosely, so let's pin them down. The weights are the billions of learned numbers that make up the model.
- Closed model: the weights stay with the provider. You send text to an API, text comes back, and you pay per token. Claude, GPT and Gemini work like this.
- Open-weight model: you can download the weights. You run them on your own GPUs, or on a host you pick, and you pay for the hardware. Llama, Mistral, Qwen, Gemma and DeepSeek are well-known families.
Open weights is not always open source. Some licences limit commercial use, or the size of the company that can use them. Read the licence before you ship anything.
Whether an open model even fits on your hardware is a separate question, covered in Model Size and Memory.
The four trade-offs
| Axis | Closed API | Open weights |
|---|---|---|
| Cost | Pay per token; zero when idle | Pay for GPUs and people, busy or idle |
| Control | Provider updates and retires models; rate limits | Pin the exact weights forever; fine-tune freely |
| Privacy | Data leaves your network; check retention terms | Data can stay inside your network |
| Capability | Usually strongest on the hardest tasks | Often good enough for narrow, well-defined tasks |
- Cost. With a closed API, when nobody uses it, you pay nothing. With open weights you pay for the GPUs and for the people who run them, whether the GPUs are busy or idle.
- Control. A closed provider can update a model or retire it, and you work within its rate limits. With open weights you can pin the exact weights forever.
- Privacy. With a closed API your data leaves your network, so check the provider's data retention terms. With open weights the data can stay inside.
- Capability. The closed frontier models are usually the strongest on the hardest tasks, like long reasoning and agents. Open models are often good enough for narrow tasks. But "usually" is not a decision. Your own eval is.
Cost has a shape
Most of the confusion is about cost. The question is not "which one is cheaper?" It is "cheaper at what volume?"
Per-token pricing grows in a straight line with use, and at low volume it is really hard to beat. Your own GPUs cost the same whether they are busy or idle, and the cost jumps every time you add another machine. Where the two lines cross depends completely on your traffic.
So do the maths with your own numbers: the provider's pricing page and your real request volume. The per-call side of that maths is in LLM Tokens, Context Windows and Cost. Your own GPUs cost the same busy or idle; Serving Open Models shows how batching and cold starts play out when you serve an open model.
Decide per workload
Here's how it plays out inside one company, with three different answers.
| Workload | What matters | Pick |
|---|---|---|
| Customer-facing agent | Multi-step reasoning, tools, a brand on the line, moderate volume | Closed frontier API |
| Nightly ticket tagging | Millions of short texts, one narrow label each, no rush | Small model: open or closed, let the eval decide |
| Hospital notes summary | Patient data that may not leave the building | Open weights, on-premises |
The agent needs capability. The tagging job is narrow and huge, so a small model fits, and the eval decides which one. For hospital notes, privacy wins over everything else.
Most teams end up hybrid
A request comes in. It might be something simple like where is my order?, or something hard like plan my database migration. A router looks at it first: simple rules to begin with, maybe a small classifier later. Easy, high-volume requests go to a small or open model. The hard, rare, high-value ones go to the frontier model. (How to judge a router on real numbers is in LLM Model Routing.)
The engineering lesson: hide that choice behind one client function. Then swapping a model is a config change, not a rewrite of your app. Your code asks for "an answer"; only that one function knows which model gives it.
Five questions before you choose
- What does my eval say, on my own data? Not a leaderboard. My data.
- What is the volume, and how spiky is it?
- Is this data allowed to leave our network?
- Who gets paged at 3 a.m. when it goes down? With an API, that is mostly the provider. With your own GPUs, that is you.
- What does the licence allow?
Common mistakes
- Picking a side for the whole company instead of deciding per workload.
- Treating "open weights" as "open source" and shipping without reading the licence.
- Comparing a per-token price with a GPU price without your own volume. Cheaper only means something at a given number of requests.
- Forgetting the people cost of running your own GPUs, and who is on call.
- Trusting "usually stronger" over your own eval on your own data.
- Calling one provider's SDK all over the codebase, so a model swap turns into a rewrite.
Quick recap
| Closed model | Open weights | |
|---|---|---|
| You | rent it per token | own the model and the hardware |
| Wins when | low volume, the hardest tasks | data must stay in, volume past your crossover, you need to pin or fine-tune |
| Watch for | retention terms, rate limits, model retirement | licence, idle GPUs, who gets paged |
Judge both on cost, control, privacy and capability, decide per workload, and keep the model swappable behind one function.
Try it yourself
- Write down three AI tasks from your work or your project.
- For each one, mark which of the four axes matters most.
- Pick closed, open or hybrid, and justify it in one sentence each.
Related course on Udemy
Become an AI Engineer: LLMs, RAG, Agents and MCP
Build real AI systems in Python: LLM APIs, RAG, evals, agents and MCP.View on Udemy ↗: Become an AI Engineer: LLMs, RAG, Agents and MCP (paid course, opens in a new tab)Related posts
The AI Stack in One Picture: Six Layers Every AI Product Is Built From
Every AI product is built from six layers: data, model, retrieval, orchestration, serving and ops, with evals and security across all of them. A restaurant analogy, one request traced through all six, and what an AI engineer actually builds around the model call.
Tokenization: What an LLM Actually Sees When You Type
A language model never sees letters, only token ids. Use tiktoken to watch strawberry become three ids, see a space or a capital change them, fix the letter-counting problem, and compare English, German and Hindi token counts.
LLM Tokens, Context Windows and Cost: What One Question Really Costs
Follow one four-word help desk question that becomes 911 input tokens. Learn what fills the context window, why chat memory grows every turn, how max_tokens cuts a reply, and how to price a call.
What an LLM Can and Cannot Do: One Prediction Loop, Its Strengths and Its Gaps
A large language model predicts the next token, over and over. That one loop makes it strong at drafting, summarising and classifying, and weak at fresh facts, exact maths, memory and guaranteed truth. See why with a three-line tiktoken script, and learn the fix for each gap.