Concepts / Open Source Model Strategy

Open Source Model Strategy

Using a model API means calling a provider's model, while hosting means running the model on infrastructure you operate or rent. The choice shapes who receives your data and how costs accrue.

  • Programming

A Product Team's Two Routes

Imagine a small product team that wants its application to produce text from a language model. They have two broad routes. They can send requests to a model that someone else operates and pay for each use, or they can take a model and run it on infrastructure they control or rent. Both routes can produce useful answers. They carry different consequences, though, for who sees the data, who decides what the model may be used for, and what the bill looks like over time.

What do you think happens?

When the team's application sends a prompt to a model, which party receives that prompt?

  • Only the team's own application, because the prompt never leaves the codebase

  • Whichever party runs the model: the provider when the team calls an API, or the team or its rented host when it hosts the model

  • Nobody, because models only read prompts without storing or transmitting them

Reveal answer
Answer:

Whichever party runs the model receives the prompt: the provider in the API route, or the team or its rented host in the hosting route.

The choice is about who processes the request, and that party is the one that receives the data. The source frames the decision around which parties are allowed to see sensitive information.

This article focuses on that choice. The question it answers is practical: when a team picks hosting or an API, which considerations should drive the decision? The answer depends less on technical convenience than on three questions that are easy to overlook at the start of a project. Where did the model's knowledge come from? What does the license allow? Which parties is the data allowed to reach?

Tracing Where a Prompt Goes

Using a model API means calling a provider's model. Hosting means running the model on infrastructure you operate or rent. These two words describe the same underlying act of generating text, but they place the model, and therefore the data, in different hands. In the API route, the request travels to the provider, who runs the model. In the hosting route, the request stays with the infrastructure the team operates or has rented.

Team applicationsends the promptProvider API endpointoperated by the providerProvider's modelprocesses the promptTeam or rentedinfrastructureoperated or rented by theteamHosted modelprocesses the promptrequest via APIforwarded to providerrequest to own or rented hostruns the model
When a prompt is sent, the party that runs the model receives it: a provider in the API route, or the team or its rented host in the hosting route.

Read the two paths side by side. The application is the same in both. What changes is the box that runs the model. That box decides who receives the prompt, and it determines what the team must trust. The distinction is not always clean, which matters for the next idea. A model can be hosted on a large cloud platform and still be reached through an interface that looks like an API. A team's options are therefore shaped by which models are offered through which channels, not only by a general preference for one route.

In the real world

The source notes that as of its writing, GPT-4 models could be accessed only through OpenAI or Azure. A team that wanted that specific model was therefore choosing between those two channels, not between hosting and calling in the abstract. Some model developers also publish models under open source licenses while selling access to their own API. Mistral and Cohere are cited as companies with both open source models and APIs, so the same model family can appear on both sides of the choice depending on how the team obtains it.

Data Lineage and Why Licenses Are Not Enough

The origin and history of a model's training data is called its data lineage. Knowing the lineage matters because it determines usage rights. A model's own license is only one document in that picture. If the model was trained on outputs produced by another model, the terms governing that other model can still bind how the new model is used.

Definition

Data lineage: the origin and history of the data a model was trained on, including any models whose outputs were used to produce that training data. Lineage determines which sets of terms apply to using the model.

Lineage is naturally a chain. A derived model sits on top of a base model, and the base model sits on top of its own training data. Each link carries its own terms. The diagram below shows how to inventory the layers above any given model so the team can see where its rights and provenance come from.

Derived modelthe model the team wants touseBase modelmodel the derived model wasbuilt fromBase model licenseterms for the base modelFine-tuning datadata used to adapt the basemodelBase training dataorigin and terms of itsoutputsbuilt fromadapted withgoverned bytrained on
To check whether a model may be used, trace every layer beneath it: the fine-tuning data, the base model, the base model's license, and the training data behind that base model.

How an Upstream Restriction Blocks a Downstream Model

The source works through a case it calls Model X. Model X's own license may allow its outputs to be used to improve other models. But Model X was trained on ChatGPT outputs, so ChatGPT's terms of use also apply to the chain. If those terms do not permit this kind of use, then Model X has violated them, and the source concludes that Model X cannot be used. The license on Model X can be permissive, and the model can still be unusable.

ChatGPT terms ofuseforbid this kind of useChatGPT outputsused as training dataModel Xown license lookspermissiveDownstream modelbuilt on Model XCannot be usedchain violates the termsrestrictstrainsis the base forinherits the restriction
The restriction starts at the upstream terms of use and travels down through every model trained on those outputs, so the downstream model becomes unusable even though its own license looks permissive.

Trace the pipeline step by step. The first link is the terms of use that govern the upstream outputs. The second link is the training data built from those outputs. The third link is Model X, whose license looks fine when read alone. The fourth link is any downstream model that depends on Model X. Because the restriction travels down the chain, the team should not stop checking when it finds a permissive license on the model it is looking at.

Worked example

Deciding whether a fine-tuned model is usable

A team wants to use a fine-tuned model. Its own license allows commercial use. The base model it was fine-tuned from was trained on outputs produced by a provider whose terms forbid using those outputs to build competing models. Can the team use the fine-tuned model?

  1. 1
    Read the license of the model in hand

    The fine-tuned model's license allows commercial use, so this single check passes.

  2. 2
    Trace the lineage upward

    The fine-tuned model depends on a base model, so the team must look at that base model's training data and the terms attached to it.

  3. 3
    Find the upstream restriction

    The base model's training outputs came from a provider whose terms forbid the relevant use. That restriction applies to the chain even though the fine-tuned model's own license is permissive.

  4. 4
    Apply the chain rule

    Because the restriction propagates down to every model built on that chain, the fine-tuned model cannot be used in the way the team intends.

Result

The team cannot use the fine-tuned model, despite its permissive license, until the lineage problem is resolved.

Licenses That Restrict More Than They First Appear

A model's license is the set of terms and conditions under which the model can be used. It is tempting to read a license as a complete statement of permissions. The source warns that a license may restrict use in ways a quick reading misses. Model X shows one such way: a license can permit one activity, such as using outputs to improve other models, while the broader chain of obligations still forbids the use.

The source also describes a related pattern in the open source world. It draws a comparison to the Elastic License, which forbids companies from offering the open source version of Elastic as a hosted service that competes with the Elasticsearch platform. The point is that a license can allow access to source material while still limiting who may commercially offer it. Model licenses can work in a similar spirit, so the phrase open source does not by itself guarantee that every commercial use is allowed.

Privacy Depends on Which Parties Are Trusted

Data privacy concerns the protection of sensitive information. In the hosting-versus-API decision, the central question is which parties will receive that information. Every request sent to an outside service crosses a boundary of trust. A team's privacy policy therefore often reduces to a list of organizations it is willing to trust with its data.

In the real world

The source describes companies with strict data privacy requirements that have said they usually cannot send data to third-party services, yet they are comfortable sending data to models hosted on GCP, AWS, and Azure. For these organizations the privacy question is less about whether an outside party is involved and more about which services they can trust. They trust large cloud providers but do not trust other startups.

The source also notes that regulations are evolving around the world, and that requirements for auditable information about models and training data may increase. In that environment, commercial models may be able to provide certifications, which can spare a company the effort of producing that evidence itself. A hosting decision and an API decision can therefore differ in how much audit work falls on the team.

Three Gates in the Hosting Decision

A useful way to think about the decision is as a sequence of gates rather than a single preference. The first gate is data sensitivity. If the data has strict privacy requirements, the team needs to know which parties are allowed to receive it. The second gate is trust. Some organizations will not send data to outside services in general, yet will accept a model running on a large cloud platform they already rely on. The third gate is the usage rights attached to the model itself. Whichever route a team chooses, it must still pass the licensing and lineage checks described earlier.

Read the gates from top to bottom. The team first asks whether its data needs strict privacy protection. If it does, it asks whether a large cloud provider is an acceptable place for that data. A yes leads to hosting on that cloud. A no pushes the team toward self-hosting or another provider. If the data is not especially sensitive, the team can consider a third-party API directly. Every route converges on the same final step. Whether a model is hosted or called through an API, its license and the origin of its training data still determine whether it may be used at all.

FactorPushes toward hostingPushes toward an API
Data sensitivityStrict privacy rules that forbid sending data to outside servicesData that is not especially sensitive
TrustA large cloud provider the organization already trustsA third-party provider the organization is willing to rely on
Audit burdenThe team can carry the evidence work itselfA commercial provider may supply certifications
Usage rightsMust still pass lineage and license checksMust still pass lineage and license checks
Cost patternFixed infrastructure costs for a hosted modelPer-use pricing that grows with each call

Factors that push a team toward hosting or toward an API. The usage rights row applies to both routes.

Who Pays and Who Benefits

Per-use pricing from an API is the other side of the cost picture. Each call adds to the bill, so cost grows with usage. The source observes that the companies hit hardest by API costs are probably not the biggest companies. Large organizations may be important enough to service providers that they can negotiate favorable terms. Smaller companies usually have less bargaining power and feel the full weight of the usage bill. The lesson for the hosting decision is that cost is not uniform. A route that looks reasonable for a large company with negotiating leverage can be a heavy burden for a small team.

Openness also has an economic side. Many users want models to be open source because openness means more information and more options. Building a model can require very large investment, though, so a developer who releases it openly needs some reason to do so. The source offers several answers. A wave of companies has formed to offer inference and finetuning services on top of open source models, which many people need in order to use open models. A large developer may support open source models to keep competitors in check, an argument rather than a settled fact. And open source may be sustained simply by goodwill toward its value to society.

The source also points out a tension. Mistral and Cohere both have open source models and also offer APIs. Once a company's inference service runs on its own models, it may become a competitor to the developer that released them. Open availability and commercial services can coexist, but their interests do not always align.

Mistakes When Choosing a Route

  • Common mistake

    Treating an open source license as proof that every use is allowed

    What it looks like

    A team sees a permissive license on a model and starts building a commercial product without checking where its training outputs came from.

    Why it fails

    A license can restrict use in ways a quick reading misses, and open source does not by itself guarantee that every commercial use is allowed.

    Do this instead

    Read the full license, then trace the lineage and the terms attached to the upstream training data.

  • Common mistake

    Checking only the model in hand

    What it looks like

    A fine-tuned model has a clean license, so the team skips its base model.

    Why it fails

    An upstream restriction propagates down the chain and can make a downstream model unusable even when its own license is permissive.

    Do this instead

    Inventory every layer beneath the model, including base models and their training data.

  • Common mistake

    Assuming hosting removes all third-party involvement

    What it looks like

    A team runs a model on a rented cloud host and assumes no outside party is involved.

    Why it fails

    The cloud platform is still a party that processes the infrastructure the data runs on, so the privacy question becomes which parties are trusted.

    Do this instead

    List every organization that will touch the data, including the hosting platform, and check each against the privacy policy.

  • Common mistake

    Judging API cost by a small test

    What it looks like

    A team prices a few sample calls and extrapolates the bill for a large launch.

    Why it fails

    Per-use pricing scales with usage, so the cost picture changes as volume grows, and cost weighs differently depending on a company's bargaining power.

    Do this instead

    Model the bill at expected production volume and compare it with the fixed costs of hosting.

Tracing a Model's Rights Yourself

MEDIUM

A team is considering a model whose own license allows commercial use. The model was fine-tuned from a base model, and that base model was trained on outputs from a provider whose terms of use forbid using those outputs to build other models. Before the team chooses hosting or an API, which checks must it run, and what would you advise?

Hints
  • Start with the model's own license, then ask what sits beneath it.
  • Ask whether the restriction on the upstream outputs reaches the model the team wants to use.
  • Remember that both hosting and calling an API still require passing the licensing and lineage checks.

A strong answer traces the lineage upward from the fine-tuned model to the base model and its training data, identifies the upstream terms that forbid the relevant use, and concludes that the permissive license on the fine-tuned model does not settle the question. The team should resolve the lineage problem before deciding between hosting and an API, since neither route removes the restriction.

Key Takeaways

  • Using a model API means calling a provider's model, while hosting means running the model on infrastructure you operate or rent. The choice determines who receives your data.
  • Data lineage determines usage rights. A model's own license is only one document, and an upstream restriction on training outputs can make a downstream model unusable even when its license looks permissive.
  • Treat the hosting-versus-API decision as a sequence of gates: data sensitivity, trust in the parties involved, and usage rights, which must be checked on every route.
  • API costs scale with per-use pricing and hit smaller companies hardest, while hosting carries fixed infrastructure costs, so cost weighs differently depending on a team's size and bargaining power.

Related concepts

More concepts starting with O