# Open-Weight vs Closed API Models?

> What open-weight and closed API models are, the real trade-offs of each, and how to choose between them, explained simply for your AI interview.

**In short:** An open-weight model publishes its trained weights, so you can run it on your own servers and carry the upkeep. A closed API model stays on the vendor's servers, so you pay per call and the vendor sets the updates.

AI and LLM interview question Q025, LLM fundamentals. Beginner, very common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/open-weight-vs-closed-api-models

## Say it in 30 seconds

An open-weight model publishes its trained weights, so my team can run it on our own servers and control its version. A closed API model stays on the vendor's servers, so we rent answers, and the vendor sets the updates and retirement dates. Open weights give control over data and versions, but we carry the servers and the safety work. Closed APIs are quicker to start. I choose by data rules, traffic, team skills and how much control we need, then test both on our own examples.

## Say it in 2 minutes

Think of a bank deciding whether its fraud checks run in its own data centre or with an outside vendor. Running them in-house means the bank owns the machines, sets the schedule and keeps the data in the building. Using a vendor is quicker to start, but the bank follows that vendor's rules and prices. The AI version of this choice is open-weight versus closed API models.

Open weights give control. Customer data can stay inside our network, we can keep a version we tested, and we can fine-tune the model on our own examples. The costs move to us, though: GPUs, engineers on call, security patches and the safety checks. A closed API flips that. Setup can be quick, the vendor runs the servers, and we pay per call. The trade-off is that the vendor can retire a model on notice, and our data leaves our network.

So I start with the constraints: where the data may go, how many calls a month, what the team can run, and how much control we need. Then I cost both at our real volume and test both on our own examples, because quality depends on the task. One setup some teams use is both: a small open model for bulk work and a closed model for the hard cases.

## What are open-weight and closed API models, in plain words?

A language model is a huge set of numbers, called weights, that training tuned until the model could predict text well. An open-weight model publishes those weights, so anyone can download them and run the model, within the licence it ships with. A closed API model keeps its weights on the vendor's servers. You send a request to the vendor's address, an API, and get an answer back and a bill.

Downloading an open-weight model is often free, but running one needs servers, chips and people. A closed model is quick to start, but you depend on the vendor for uptime, updates and data terms.

Think of a hospital choosing how to get its blood tests done. It can run them in its own lab, so it owns the machines and sets the schedule. Or it can send samples to an outside lab, which is quicker to start but follows that lab's rules. For a bank building an assistant for fees, cards and loans, the same choice is open weights or a closed API.

- **Weights:** The learned numbers inside a model. Open-weight means they are published.
- **Licence:** The rules that say what you may do with the weights or the API. Read it before you ship.
- **API:** An address your code calls to send a request and get an answer back.
- **Inference:** Running a model to get an answer. Every call uses servers and, on a closed API, a bill.
- **GPU:** A chip built to run model maths fast. Hosting a large model usually needs them.

## What do you gain and lose with each?

The real difference is who holds the controls. The chart shows who runs what on each path.

*Diagram, Who runs the model: Your app sends the same prompt down one of two paths. A closed API sends it to the vendor's servers, which answer and bill you per call. Open weights send it to your own servers, and your team runs and updates them.*
1. Your app sends each prompt over the internet to the vendor.
2. The same prompt can go to a model on your own servers instead.
3. The vendor's servers send back the answer, and you pay per call.
4. Your own servers send back the answer, and your team owns the upkeep.

- **Open weights: Control.** Data stays in your network, you pick the version, and you can fine-tune it (train it further on your own examples).
- **Closed API: Ease.** Setup can be quick, the vendor runs the servers, and you pay per call. Your data leaves your network.
- **The trade-off: Upkeep or dependence.** Open weights move the work to you. A closed API moves the risk to the vendor's schedule and terms.

Cost follows volume. A closed API charges for each call, so the bill grows with traffic. Open weights swap that for fixed hardware, which costs the same whether it is busy or quiet, until traffic outgrows the servers. A small team with a few calls a day usually pays less for an API. A call centre with millions of calls a month may find a server cheaper. Neither wins at every volume, so count the real traffic.

## What goes wrong with each one?

Each path fails in a different place. A closed model can change under you. An open model can be misused by whoever holds a copy of it.

> "As safer and more capable models launch, Anthropic regularly retires older ones." (Anthropic)
>
> "We do not train our models on your data by default" (OpenAI, on its privacy page)
>
> "Once an open-weight model is released, adversaries may be able to fine-tune the model for malicious purposes" (OpenAI, on gpt-oss)
>
> "you must request a license from Meta, which Meta may grant to you in its sole discretion" (Meta, on the Llama 4 licence)

Retirement is the closed-model risk teams underrate. Anthropic gives at least 60 days' notice before it retires a publicly released model, and OpenAI also retires older models as it launches safer and more capable ones. Notice gives time, but a retired model stops answering, so keeping a closed model working becomes a regular task.

*Diagram, A retired model, step by step: A closed model is retired on the vendor's schedule. The vendor announces a date, your team re-runs its tests on the replacement, and the new model goes live before the old one stops.*
1. The notice names the date the old model stops answering.
2. Failed tests show what changed, so the prompts get fixed.
3. Once the new model passes, it goes live before the old one stops.

Open weights carry their own risk. OpenAI released gpt-oss under the Apache 2.0 licence and says bad actors may be able to fine-tune a released open-weight model for harmful uses. A team that runs one owns its guardrails: output checks, access rules and logging. Licences add rules too. Meta's Llama 4 licence says that if, on the Llama 4 release date, the products or services of a licensee and its affiliates had more than 700 million monthly active users in the month before, the licensee must request a licence from Meta.

Closed APIs bring the data question. OpenAI says it does not train its models on your data by default, which is a promise to read in the contract. OWASP still advises sending outside providers only the fields a task needs.

> **Tip:** Name who holds each risk when you explain the choice. With a closed API it is the vendor's schedule and data terms. With open weights it is your upkeep and your misuse controls.

## How would a bank choose for its support assistant?

A mid-size bank wants an assistant that answers questions about fees, cards and loans, with about 150,000 chats a month. The team works through it in this order.

1. **Start with the data rule:** Customer records may not leave the bank's own network. That rules out a plain outside API, so the first option to test is an open-weight model on the bank's own servers.
2. **Size the traffic at peak:** Most chats carry long account context, and a per-call bill grows with every chat. Fixed servers cost the same until they are full, so the team prices both at the busiest hour, not on average.
3. **Check who can run it:** Two engineers can run a model server, but nobody has done on-call work for GPUs. The team adds a managed host and a fallback, so one person is not the only route to a fix at 3 a.m.
4. **Test both on real chats:** They run 300 chats from last quarter, each with a known correct fee answer, and score every model. A tested answer beats a guess about which model is smarter.
5. **Pin the version and watch it:** The team pins the tested version, logs every answer, and reruns the same 300 chats whenever anything changes. Upgrades go through the same test first.

The cost shape is easy to show in plain Python. The prices are made up. What matters is that one column grows with calls and the other stays flat until the servers are full.

```python
# A call centre's monthly bill: pay per call, or rent a fixed server. Made-up numbers; the shape is the point.
COST_PER_CALL = 0.04
SERVER_MONTHLY = 6400

print("calls   pay per call   fixed server   cheaper")
for calls in [50000, 120000, 150000, 400000]:
    metered = calls * COST_PER_CALL
    cheaper = "pay per call" if metered < SERVER_MONTHLY else "fixed server"
    print(f"{calls:>7,}  {metered:>13,.0f}  {SERVER_MONTHLY:>14,}   {cheaper}")
```

Output:

```text
calls   pay per call   fixed server   cheaper
 50,000          2,000           6,400   pay per call
120,000          4,800           6,400   pay per call
150,000          6,000           6,400   pay per call
400,000         16,000           6,400   fixed server
```

The result is a plan the bank can defend to its risk team: where the data sits, what each option costs at peak, who is on call, and how every model change gets tested.

### How would you pick for a call centre's summary tool?

1. **Ask the data question first:** Can call transcripts leave the company's network? If not, open weights are the only path to test.
2. **Price it at peak:** Take the busiest hour of the busiest month, then compare the per-call bill with a fixed server that can carry that load.
3. **Name the owner:** Decide who answers the pager when the server fails, and who opens the vendor ticket when a model is retired.
4. **Plan the retirement:** Add a test run for every model change, so a retirement notice becomes a routine task, not an outage.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: weights you can download and run, against a model you rent through an API.
- [ ] The real trade-offs: control and data on one side, upkeep and vendor dependence on the other.
- [ ] Cost follows volume and who runs the servers, so the answer is a calculation, not a rule.
- [ ] Model changes: closed models are retired on a schedule, so re-testing is a standing task.
- [ ] Licence and safety: read the licence, and add guardrails when anyone can fine-tune the weights.
- [ ] A decision method: constraints first, then a test on your own data, often with both models.

**Common traps**

- Trap: "Open source is always cheaper." Better: Running a model costs servers, chips and people. Compare the whole bill at your real volume.
- Trap: "The closed model is always more accurate." Better: Quality depends on the task. Test both on your own examples before you choose.
- Trap: "Open weights means I can use it however I like." Better: Each licence sets limits. Read it before you ship, and check any user-count rule.

## Can you spot the weak argument?

**Spot the weak argument:** A team's design note argues for an open-weight model. Which sentence is the weakest reason?

A. Patient notes must stay on our own servers, so they cannot go to an outside API.
B. We can pin the exact model version and test it before any change goes live.
C. An open-weight model will always be the most accurate choice for every task.
D. We already have an on-call team that runs our GPU servers, so the upkeep is covered.

**Answer:** C. Accuracy depends on the task, so an open model is not always the best. The other three are real reasons: data location, version control and spare upkeep capacity.

**Quick check:** A bank must keep customer records inside its own network. Which option fits best?

A. Send prompts to a closed API and ask for a no-training promise
B. Host an open-weight model on servers inside the bank's network
C. Switch to the biggest closed model available
D. Lower the temperature, the setting that makes answers less varied

**Answer:** B. Only a model that runs inside the bank's own network keeps prompts there. A promise about training still sends the data out of your network. Model size and temperature do not change where the data goes.

## Can you answer these from memory?

**Flash cards**

- **What is an open-weight model?** A model whose trained weights are published, so you can download and run it under its licence.
- **What is a closed API model?** A model that stays on the vendor's servers. You send requests and pay per call.
- **Biggest plus of open weights?** Control: data stays in your network, and you choose and pin the version.
- **Biggest risk of a closed API?** The vendor retires models on its schedule, and your data leaves your network.
- **What does open weight mean for safety?** Anyone with the weights may be able to fine-tune them, so the guardrails become your job.
- **How do you choose?** Constraints first, then cost at your real volume, then a test on your own data.

## Likely follow-up questions

- Q336 Hosted API vs self-hosted open weights for an enterprise? https://designervenkat.online/interview/ai/hosted-api-vs-self-hosted-open-weights
- Q262 "The model got worse after an upgrade." What do you do? https://designervenkat.online/interview/ai/the-model-got-worse-after-an-upgrade-what-do-you-do
- Q309 Can fine-tuning weaken safety behaviour? (full answer coming)
- Q310 Hosted fine-tuning API vs self-hosted training? (full answer coming)
- Q281 Fine-tune vs RAG vs prompting: when to use which? https://designervenkat.online/interview/ai/fine-tuning-vs-rag-vs-prompting
- Q308 Fine-tuning cost vs inference savings? (full answer coming)

## Learn it in depth

- [Closed vs Open Source Models](https://designervenkat.online/learn/ai-engineering/closed-vs-open-source-models)
- [Self-Hosted Models](https://designervenkat.online/learn/ai-engineering/self-hosted-models)
- [Security and Privacy Concerns](https://designervenkat.online/learn/ai-engineering/security-and-privacy-concerns)
