esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

13 min readBeginnerVery common · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

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.

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.

Key words

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.

Who runs the model

Your app

sends prompts and customer data

Closed API

Vendor's servers

vendor runs and updates it

Open weights

Your own servers

you run, patch and update it

Answer back

a different bill and different duties

  1. 1Your app sends each prompt over the internet to the vendor.
  2. 2The same prompt can go to a model on your own servers instead.
  3. 3The vendor's servers send back the answer, and you pay per call.
  4. 4Your own servers send back the answer, and your team owns the upkeep.
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.
  • 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.

A retired model, step by step

Retirement notice

a fixed date and a notice period

Your team

Re-run your tests

same test set, new model

Re-tune the prompts

fix the wording that changed

New model live

before the old one stops

  1. 1The notice names the date the old model stops answering.
  2. 2Failed tests show what changed, so the prompts get fixed.
  3. 3Once the new model passes, it goes live before the old one stops.
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.

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. 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. 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. 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. 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. 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

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. 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. 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. 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. 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."

    BetterRunning a model costs servers, chips and people. Compare the whole bill at your real volume.

  • Trap"The closed model is always more accurate."

    BetterQuality depends on the task. Test both on your own examples before you choose.

  • Trap"Open weights means I can use it however I like."

    BetterEach 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?

Quick check

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

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q336Hosted API vs self-hosted open weights for an enterprise?11 min
  2. Q262"The model got worse after an upgrade." What do you do?12 min
  3. Q309Can fine-tuning weaken safety behaviour?Coming soon
  4. Q310Hosted fine-tuning API vs self-hosted training?Coming soon
  5. Q281Fine-tune vs RAG vs prompting: when to use which?10 min
  6. Q308Fine-tuning cost vs inference savings?Coming soon

Learn it in depth

Last updated on 26 November 2026

Choosing a model for a bank, a hospital or a call centre?

I design and build AI products and agents, including the choice of model and the checks around it. Book a short call and tell me where your data can go and how much traffic you expect.