Contact, if you are interested in this website / domain name / sponsorship / advertisement / partnership

Open-source vs closed LLMs: how to decide

Open-weight models let you run an LLM on your own infrastructure, but 'open' covers licenses ranging from Apache 2.0 to custom terms with user caps and naming rules. This guide compares open and closed models on quality, cost, control and risk, works through a total cost of ownership example and shows when a hybrid setup wins.

Choosing & buyingIntermediate9 min readUpdated October 10, 2026

Key takeaways

  • Most 'open' LLMs are open-weight, not open source: the OSI definition also requires the training code and detailed information about the training data.
  • Licenses vary widely: Apache 2.0 and MIT are permissive, while custom licenses such as Llama's, Gemma's and Kimi K3's add use policies, user or revenue thresholds, or naming and attribution rules.
  • Open-weight models have trailed the closed frontier by months, not years; Epoch AI estimated about three months on average in late 2025.
  • Self-hosting pays off at steady, high volume or when data can't leave your control; in our example, it saves money against a mid-tier API but costs about 11 times more than a budget API tier.
  • Many teams do best with a hybrid: route routine or sensitive traffic to an open model they control and send hard cases to a closed frontier model.

Should you run an open model on your own infrastructure or pay for a closed model through an API? The answer depends on licenses, volume, data sensitivity and how much engineering you can take on. This guide untangles what "open" actually means, flags the license terms that catch teams out, works through a real cost comparison and ends with a decision table.

Open weights vs open source

Most models described as open source are more precisely open-weight: the trained parameters are published for download, usually under a license with conditions. The training data, the full training code and the recipe usually stay private.

The Open Source Initiative (OSI) published its Open Source AI Definition 1.0 in October 2024. It requires the freedom to use, study, modify and share a system for any purpose, and three components that make those freedoms real.

  • Data information: enough detail about the training data, including its sources and how it was filtered, for a skilled person to build a substantially equivalent system. The definition doesn't require releasing the data itself when it can't legally be shared.
  • Code: the complete code for data processing, training and inference, under OSI-approved licenses.
  • Parameters: the model weights, under OSI-approved terms.

By that standard, very few popular models qualify. A small number of research releases, such as the Allen Institute for AI's OLMo models, publish training data, code and intermediate checkpoints, while most commercial labs publish only weights and a technical report. For buyers, the label matters less than the license: it decides what you may legally do with the model.

Closed models sit at the other end. You can't download GPT-6 Astra, Claude Opus 5.5 or Gemini 3.8 Flash; you send requests to the provider's servers and pay per token, under the provider's terms.

Common licenses and their gotchas

License terms differ more than the word "open" suggests. The table summarizes the licenses you'll meet most often, as of October 2026; it's general guidance, not legal advice, so read the actual license for any model you deploy.

LicenseExample modelsCommercial useGotchas
Apache 2.0OpenAI gpt-oss, Google Gemma 4, Qwen3.8-27B, several Mistral modelsYesKeep license and notice files; includes an express patent license that ends if you sue over patents in the work
MITDeepSeek V4.1-Flash and V4-ProYesVery short and permissive, with no express patent grant; keep the copyright notice
Kimi K3 License (MIT-based, with conditions)Moonshot Kimi K3Yes, with conditionsUI attribution above 100 million monthly users or $20 million monthly revenue; a separate agreement for model-as-a-service businesses with over $20 million in revenue over 12 months
Llama 4 Community LicenseLlama 4 Scout and MaverickYes, with conditionsSeparate license above 700 million monthly active users; "Built with Llama" display; derivative model names must begin with "Llama"; acceptable use policy; multimodal rights withheld from EU-based individuals and companies, though end users of products built on them are exempt
Gemma Terms of UseEarlier Gemma generations, such as Gemma 3Yes, with conditionsProhibited use policy must be passed to your users; Google may restrict use it believes violates the terms; models distilled from Gemma outputs count as derivatives
Non-commercial licensesSome research releases and specialist models, for example under CC BY-NC 4.0NoFine for experiments, but production use requires a separate commercial agreement

Three gotchas deserve emphasis. First, licenses change between versions of the same family: Gemma 4 moved to Apache 2.0, while earlier Gemma models remain under Google's custom terms, so check the license for the exact version you download.

Second, custom licenses can reach your downstream work. The Llama 4 naming rule applies when you use Llama or its outputs to create or improve a model you distribute, and Gemma's terms treat models distilled from Gemma outputs as derivatives.

Third, use policies flow downstream. Under licenses that incorporate an acceptable use policy, you're responsible for making sure your own users follow it, which belongs in your terms of service.

A non-commercial license on one component, such as a speech or embedding model, can make an entire product non-compliant. Track licenses for every model in your pipeline, not just the main LLM.

The trade-offs, criterion by criterion

Neither option wins everywhere. This table compares a typical self-hosted open-weight deployment with a typical closed API.

CriterionOpen weights, self-hostedClosed API
Peak qualityClose to the frontier, usually a step behindUsually the frontier on the hardest tasks
Cost structureFixed: GPUs, engineers and operations, whether or not traffic arrivesVariable: pay per token, with nothing to run when idle
ControlYou choose the version, settings and upgrade timingThe provider can update, reroute or retire models
PrivacyData can stay entirely inside your networkData goes to the provider under contract terms
CustomizationFull fine-tuning, LoRA, quantization and distillationLimited to whatever tuning features the provider offers
LatencyPredictable and close to users if you co-locate; depends on your tuningGood on average, with shared-capacity spikes and rate limits
SupportCommunity, consultants or a paid hosting vendorVendor support and service-level agreements
Security patchingYou patch the inference stack and track vulnerabilitiesThe provider handles infrastructure and model safety updates

The quality gap is measured in months

The capability gap between open and closed models has narrowed to a matter of months. Epoch AI's analysis in October 2025 found open-weight models trailing the best closed models by about three months on average on its capabilities index, a figure that will drift as each new frontier model lands.

By October 2026, the largest open releases have reached a scale that once belonged only to closed labs. Moonshot's Kimi K3 lists 2.8 trillion total parameters, Alibaba's Qwen3.8 family includes a 2.4-trillion-parameter model, and DeepSeek's V4.1-Flash supports a one-million-token context under an MIT license.

Closed models still tend to lead on the hardest agentic and reasoning tasks, and a lag of a few months matters if those tasks are your product. For most routine workloads, the gap is smaller than the variation between prompts.

The hardware reality

"Open" doesn't mean "runs on a laptop". OpenAI's gpt-oss-20b runs in about 16 GB of memory, and gpt-oss-120b fits on a single 80 GB GPU. DeepSeek's own deployment example for V4-Pro uses a node with four GB300 GPUs. Use the VRAM calculator to size hardware before you commit, and remember that a mixture-of-experts model needs memory for all of its parameters, not just the active ones.

Total cost of ownership: a worked example

Consider a document-processing service handling 100,000 requests a day, or about 3 million a month. Each request uses 2,000 input tokens and 400 output tokens, so the month totals 6 billion input and 1.2 billion output tokens.

For the self-hosted option, assume a mid-sized open model on three H100 GPUs running around the clock. At Lambda's on-demand list price of $3.99 per GPU-hour as of October 2026, that's 3 × $3.99 × 730 hours, or $8,738 a month. Add a quarter of an engineer's time at a $200,000 fully loaded annual cost, about $4,167 a month, and $500 for monitoring, storage and networking, and the total is about $13,400 a month.

OptionAssumptionsMonthly cost
Mid-tier closed API$2 input and $10 output per million tokens$24,000
Same API with prompt caching1,500 of 2,000 input tokens read from cache at $0.10 per million; cache-write fees ignored$15,450
Self-hosted open-weight model3 H100s on demand, 0.25 engineer, $500 overheadAbout $13,400
Open model on its maker's APIDeepSeek V4.1-Flash at peak-hour list prices, $0.30 input and $1.20 output$3,240
Budget closed API$0.10 input and $0.50 output per million tokens$1,200

Self-hosting beats the mid-tier API by about $10,600 a month, but only $2,000 once prompt caching is in play. Against a budget closed model or an open model on a hosted API, it costs several times more, and about 11 times the budget API.

The break-even point against the uncached mid-tier API, at $0.008 per request, is about 1.7 million requests a month, or 56,000 a day. Below that volume, the fixed costs dominate.

The example also assumes three GPUs can carry your peak load and that a quarter of an engineer is enough; both deserve testing, because underestimating either erases the savings. GPU prices vary widely across providers and commitment terms, and the self-host vs API calculator lets you plug in your own numbers. The real lesson is that model tier and caching move the bill more than the open-or-closed choice does, so the strongest financial case for self-hosting is steady, high volume.

Watch: Open Source vs Open Weight AI Models Explained (KodeKloud). Draws the line between fully open-source AI and models that only publish their weights, and why that difference matters in practice. It helps developers and decision-makers read vendor claims about "open" models with more care.

When to choose which

Choose open weights when

  • Data must stay inside your network or a specific jurisdiction, for contractual or regulatory reasons.
  • Volume is high and steady enough to keep GPUs busy.
  • You need deep customization, such as full fine-tuning or a distilled small model for one task.
  • You need offline or edge deployment, or exact version control for audits.
  • You have, or can hire, people to run inference infrastructure.

Choose a closed API when

  • You need the strongest available model for hard reasoning, coding or agentic work.
  • Traffic is low, spiky or unpredictable.
  • Time to market matters more than unit cost.
  • You want built-in features such as web search, computer use, file handling and managed caching.
  • Your team is small and has no one to run GPUs.

Both options often satisfy privacy requirements. Business tiers of closed APIs offer contractual data protections, and some offer zero data retention, so self-hosting is a requirement only when data can't reach a third party at all.

Hybrid routing strategies

You don't have to pick one side. Many production systems use several models behind a single internal interface and send each request to the cheapest model that can handle it.

  • Tiered routing: a small classifier or rules engine sends routine requests to an open model or budget API and escalates complex ones to a frontier model.
  • Cascade with fallback: try the cheap model first and escalate when a validation check fails or the model reports low confidence.
  • Sensitivity routing: requests containing personal or regulated data go to a self-hosted model, and everything else may use a closed API.
  • Distillation: a frontier model labels examples, and a small open model is fine-tuned on them to handle the bulk of traffic, after you confirm the frontier provider's terms allow it.
  • Provider failover: a second model takes over automatically during an outage or rate limiting.

Routing adds work: each route needs its own prompts, evaluations and monitoring. Start with two tiers and add more only when your data shows clear savings.

Decision table

Find the row that best describes your situation. If two rows apply, the one with the hardest constraint usually wins.

If your situation isLean towardWhy
Prototype or early product with uncertain demandClosed APINo fixed costs and the fastest path to a working product
Data that can't leave your environmentSelf-hosted open weightsOnly option that keeps data fully in your control
Steady, high volume on a well-defined taskOpen weights, self-hosted or on a hosted APIFixed costs amortize, and fine-tuning can narrow the quality gap
Hardest reasoning, coding or agentic tasksClosed frontier APIFrontier models still tend to lead here
Mixed workload with cost pressureHybrid routingCheap models take most traffic; frontier models take the hard cases
Regulated industry with audit needsOpen weights, or a closed API with strong contractual termsVersion pinning and data control simplify audits
Small team without infrastructure staffClosed API, or open models through a hosted APIAvoids running GPUs while keeping some portability

Common mistakes

These are the errors that most often turn an open-versus-closed decision into an expensive one. Each is avoidable with a little homework.

  • Calling a model open source without reading its license. The license, not the label, decides what you may do.
  • Counting only GPU costs. Engineering time, monitoring, idle capacity and upgrades often equal or exceed the hardware bill.
  • Benchmarking a full-precision model and deploying a heavily quantized one. Evaluate the exact configuration you'll run.
  • Assuming self-hosting is automatically secure. You now own patching, access control, logging and defenses against prompt injection.
  • Treating the decision as permanent. Prices and quality shift monthly, so revisit the choice every quarter with fresh evaluation runs.

Next steps

Run your own numbers in the self-host vs API calculator, then read how to run LLMs locally to try an open model on your own machine. For the broader selection process, including scoring matrices and evaluation, see how to choose an LLM. If you'd like help planning a self-hosted or hybrid deployment, you can get expert help.

Sources

  1. The Open Source AI Definition 1.0 (Open Source Initiative)
  2. Meta's Llama license is still not open source (Open Source Initiative)
  3. Llama 4 Community License Agreement (Meta)
  4. Gemma Terms of Use (Google AI for Developers)
  5. Introducing gpt-oss (OpenAI)
  6. Kimi K3 License (Moonshot AI on Hugging Face)
  7. Open-weight vs closed-weight models (Epoch AI)
  8. DeepSeek-V4.1-Flash model card (Hugging Face)
  9. GPU cloud pricing (Lambda)

Written by the LLModel editorial team and checked against the sources above on October 10, 2026. Found an error? Send a correction.

Frequently asked questions

Is Llama open source?

Not by the Open Source Initiative's definition. Meta releases Llama weights under its own community license, which requires a separate license for services with more than 700 million monthly active users, requires 'Built with Llama' attribution, and binds users to an acceptable use policy. The Llama 4 policy also withholds rights to its multimodal models from people and companies based in the EU. OSI has said Llama's license is not open source.

What is the difference between open weights and open source?

Open weights means the trained parameters are published so you can download and run the model, usually under a license with conditions. Open source, under OSI's Open Source AI Definition, also requires the full training and inference code under approved licenses and enough detail about the training data for a skilled person to build a substantially equivalent system. Most popular open models publish weights but not the full training pipeline.

Are open-source LLMs as good as GPT or Claude?

The best open-weight models come close but have generally trailed the top closed models. Epoch AI estimated in late 2025 that open models lagged the frontier by about three months on its capabilities index. For many production tasks, such as extraction, classification, retrieval-based Q&A and routine coding, a strong open model is good enough, while the hardest reasoning and agentic tasks still tend to favor frontier closed models.

Is it cheaper to self-host an LLM than to use an API?

Only at steady, high volume. A self-hosted model costs GPU time, engineering and monitoring whether or not anyone uses it, while an API charges per token. In our worked example, self-hosting costs about $13,400 a month, which beats a mid-tier API at three million requests a month but costs far more than a budget API model or an open model on a hosted API. Model your own traffic first.

Can I use open-weight models commercially?

Usually yes, but read the license. Apache 2.0 and MIT models, such as gpt-oss, Gemma 4, Qwen3.8-27B and DeepSeek V4.1-Flash, allow commercial use with minimal conditions. Custom licenses can add user or revenue thresholds, naming and attribution rules, or use policies that pass down to your users, and some models are released for research or non-commercial use only. Check the license on each model card, and involve counsel for significant deployments.

Still choosing a model?

Send us your use case and constraints. We'll come back with a shortlist and an evaluation plan you can run on your own data.

  • Free and vendor-neutral: no model provider pays for placement.
  • Your details go only to partners you agree to.

Takes about 2 minutes. No sales calls unless you ask for one.