1. Closed vs Open Weight LLMs

Understanding the spectrum between managed frontier APIs and self-hosted models—and choosing the right foundation for your AI agent.

When building an AI agent, one of the most important architectural decisions is choosing the model—or combination of models—that will power it. This is often described as a choice between proprietary, closed-weight models and open-weight models.

In practice, the distinction is no longer a simple two-way divide. Models now sit on a spectrum that includes fully managed proprietary APIs, downloadable models with restrictive community licences, permissively licensed open-weight models, and more fully open AI systems that publish additional training code and data information.

A model’s weights are the numerical parameters learned during training. They encode the patterns the model uses to interpret inputs and generate outputs. With a closed-weight model, those parameters remain under the provider’s control. With an open-weight model, the model files can be downloaded and deployed by others, subject to the model’s licence.

Open weights should not automatically be confused with open source. A model may provide downloadable weights while withholding its training data, data-processing pipeline, training code, intermediate checkpoints, or other information needed to reproduce it. Always examine the model’s licence and documentation rather than relying solely on labels such as “open,” “open source,” or “open AI.”

Managed and Closed-Weight Models

Closed-weight models are operated by the organizations that developed them. Developers normally access them through an API or managed cloud platform rather than downloading the model itself.

Your application sends a request to the provider, the provider runs the model on its infrastructure, and the resulting response is returned to your application. Some providers also supply managed tools for web search, file retrieval, code execution, computer use, voice, image processing, structured outputs, and agent orchestration.

✅ The Advantages

  • Frontier capability: Leading managed models are often strongest on difficult reasoning, coding, multimodal understanding, tool use, and long-running agent tasks.
  • Fast development: Developers can access powerful models without procuring GPUs, configuring inference servers, or optimizing model runtimes.
  • Managed scalability: The provider handles model serving, capacity planning, updates, reliability, and much of the underlying infrastructure.
  • Integrated agent features: Commercial platforms increasingly include hosted tools, tracing, evaluation, retrieval, safety controls, and agent-development frameworks.
  • Enterprise controls: Depending on the provider and contract, deployments may support data residency, limited retention, zero-data-retention arrangements, audit logs, access controls, and compliance certifications.

❌ The Trade-offs

  • Less infrastructure control: You cannot inspect or operate the underlying weights, and you depend on the provider’s availability, policies, quotas, and product roadmap.
  • Data-governance requirements: Requests are processed on third-party infrastructure unless the provider offers an approved private or regional deployment arrangement. This is not automatically unsuitable for sensitive data, but it requires appropriate contracts, configuration, and risk assessment.
  • Variable operating costs: Usage is normally charged by tokens, calls, tools, cached context, or compute. Costs can rise quickly when agents repeatedly process large documents or generate long reasoning traces.
  • Model changes and deprecations: Providers may introduce new snapshots, alter behaviour, retire older endpoints, or change prices. Production systems should pin model versions where possible and maintain migration tests.
  • Provider-enforced controls: Safety policies, rate limits, tool restrictions, and acceptable-use rules can affect which tasks the model will perform.

Leading Managed Model Families

OpenAI — GPT-5.6

The GPT-5.6 family includes GPT-5.6 Sol for demanding reasoning and professional work, GPT-5.6 Terra for a balance of capability and cost, and GPT-5.6 Luna for high-volume, cost-sensitive workloads. The platform also provides hosted tools and APIs for building multimodal and agentic applications. View OpenAI models.

Anthropic — Claude 4.x

Anthropic’s Claude family is widely used for coding, document analysis, professional knowledge work, and agentic workflows. Claude Opus 4.8 is positioned for Anthropic’s most demanding coding, reasoning, and long-running agent tasks, while other Claude variants may offer different cost and latency profiles. View Claude models.

Google — Gemini 3.x

Google’s Gemini family provides multimodal models with support for text, images, audio, video, long-context processing, function calling, and managed tools. Current production-oriented options include models such as Gemini 3.6 Flash for agentic and multimodal workloads and Gemini 3.5 Flash-Lite for lower-cost, high-throughput tasks. View Gemini models.

Model catalogues change frequently. Always check the provider’s current documentation for availability, context limits, tool support, regional access, pricing, and deprecation dates before selecting a production model.

Open-Weight Models

Open-weight models make their trained parameters available for download. Depending on the licence and model size, they can be run on a developer workstation, an on-premises GPU server, a private cloud, a specialist inference provider, or a major public-cloud platform.

Open weights provide greater deployment flexibility, but the degree of openness varies substantially. Some models use permissive licences such as Apache 2.0 or MIT. Others use custom community licences with usage, redistribution, attribution, or scale-related restrictions.

✅ The Advantages

  • Deployment control: Models can be operated on infrastructure you select, including on-premises, private-cloud, sovereign-cloud, edge, and sometimes offline environments.
  • Customisation: Depending on the licence, teams can fine-tune, quantize, distil, prune, merge, or otherwise adapt a model for a particular domain or hardware target.
  • Data locality: A genuinely self-hosted deployment can keep prompts, retrieved documents, outputs, and logs within infrastructure controlled by your organization.
  • Provider flexibility: The same weights can often be served through multiple inference engines and hosting providers, reducing dependence on a single API vendor.
  • Predictable high-volume economics: At sufficient and steady utilization, owned or reserved infrastructure can be more economical than per-token API pricing.
  • Inspectability: Access to the weights and inference stack enables more detailed testing, instrumentation, security review, and behavioural research than an API-only service permits.

❌ The Trade-offs

  • Infrastructure requirements: Larger models may require multiple high-memory accelerators, high-bandwidth interconnects, substantial storage, and specialist serving software.
  • Operational responsibility: Your team becomes responsible for availability, scaling, monitoring, patching, model upgrades, access controls, abuse prevention, and incident response.
  • Not automatically private: Privacy depends on how and where the model is deployed. Using an open-weight model through a third-party inference API still sends data to that provider.
  • Not automatically free: There may be no per-token model licence fee, but compute, electricity, cloud rental, engineering, observability, networking, and support can be significant.
  • Uneven agent reliability: Some open-weight models compete closely with managed frontier systems on particular benchmarks, but performance can vary sharply across tool calling, multilingual work, multimodal input, long contexts, security, and extended autonomous tasks.
  • Licence and provenance questions: Weight availability does not guarantee unrestricted commercial use, reproducible training, disclosed data provenance, or compliance with your organization’s legal requirements.

Leading Open-Weight Model Families

Alibaba — Qwen 3.5

Qwen 3.5 is a multimodal open-weight family designed for reasoning, coding, tool use, and agent workflows. The family includes models at different scales, including mixture-of-experts variants such as Qwen3.5-397B-A17B, which activates only part of its total parameter count during each inference step. Explore Qwen models.

Mistral AI — Mistral 3

The Mistral 3 family includes compact Ministral 3B, 8B, and 14B models as well as Mistral Large 3, a large sparse mixture-of-experts model. Mistral released the family under the Apache 2.0 licence, making it particularly relevant for organizations seeking permissive commercial deployment and customization options. Explore Mistral 3.

DeepSeek — DeepSeek V4

The DeepSeek V4 family includes DeepSeek-V4-Pro and the smaller DeepSeek-V4-Flash. These mixture-of-experts models are designed for long-context reasoning, coding, and agentic work, and are available both through an API and as downloadable weights under the stated model licence. Their size means that local deployment still requires substantial infrastructure. Explore DeepSeek V4.

Meta — Llama

Meta’s Llama family remains an influential open-weight ecosystem with broad support across inference frameworks, hardware vendors, cloud platforms, and fine-tuning tools. Llama models use Meta’s own community licence rather than a standard permissive open-source licence, so organizations should review the current terms before commercial deployment. Explore Llama.

The Gap Is No Longer One-Dimensional

It is increasingly inaccurate to say that all closed models are more capable or that all open-weight models are cheaper. The answer depends on the task, deployment scale, hardware, latency target, required modalities, context length, safety requirements, and the quality of the surrounding agent system.

A relatively small open-weight model can outperform a much larger frontier model on a narrow, well-defined workflow after careful fine-tuning or retrieval augmentation. Conversely, a managed frontier model may be far more economical when usage is intermittent because you pay only for requests and avoid maintaining idle GPU capacity.

For agents, model quality is only one part of reliability. Tool schemas, retrieval quality, permissions, state management, validation, retries, observability, sandboxing, and human approval gates can matter as much as the underlying model.

Making the Choice for AI Agents

There is no longer a universal rule that every team should prototype with a closed model and later replace it with an open-weight model. A better approach is to evaluate both against the actual workflow.

Choose a Managed Model When:

  • You need access to the strongest available reasoning, coding, multimodal, or computer-use capabilities.
  • You want to reach production quickly without operating GPU infrastructure.
  • Your workload is unpredictable, intermittent, or too small to keep dedicated accelerators well utilized.
  • You need managed tools, enterprise support, regional hosting, or contractual data controls.
  • Your team does not have specialist model-serving and machine-learning infrastructure expertise.

Choose an Open-Weight Model When:

  • You require on-premises, offline, edge, sovereign, or tightly controlled private-cloud deployment.
  • Your data-governance policy does not permit external model processing.
  • You need to customize the model beyond the options exposed by a managed API.
  • Your workload is stable and large enough to justify dedicated inference infrastructure.
  • You need long-term control over model versions and want to reduce exposure to API deprecations or provider policy changes.

Consider a Hybrid or Multi-Model Architecture

Many production agents now use multiple models rather than a single universal “brain.” For example, a system might use:

  • A small local model for classification, routing, extraction, or sensitive-data filtering.
  • A fast managed model for routine tool calls and conversational responses.
  • A frontier reasoning model only for difficult planning or exception handling.
  • A specialist coding, vision, speech, embedding, or reranking model for a specific stage of the workflow.

This routing approach can improve cost, latency, privacy, and resilience. It also makes it easier to replace an individual model as the market changes.

A Practical Evaluation Process

Before selecting a model, build a representative evaluation set from the tasks your agent must actually perform. Test candidate models on:

  • Task completion and factual accuracy.
  • Tool selection and argument generation.
  • Structured-output reliability.
  • Long-context performance and retrieval quality.
  • Latency, throughput, and total cost per successful task.
  • Security, prompt-injection resistance, and permission handling.
  • Behaviour across retries, failures, and ambiguous instructions.
  • Licence, privacy, retention, residency, and compliance requirements.

Measure the cost of a successful end-to-end task, not merely the advertised price per token. A cheaper model that needs repeated retries, longer prompts, additional validation, or frequent human intervention may be more expensive overall.

Further Reading & Resources

  • Hugging Face Models — A major catalogue for discovering, comparing, and downloading open-weight models.
  • LMArena — A crowdsourced comparison platform based partly on human preference evaluations.
  • Artificial Analysis — Independent comparisons covering model quality, speed, context, and API pricing.
  • Open Source AI Definition — The Open Source Initiative’s framework for distinguishing open-source AI systems from models that merely publish their weights.
  • llama.cpp — A widely used runtime for running quantized models on local and edge hardware.
  • vLLM — A popular high-throughput inference and serving engine for open-weight models.

Last reviewed: August 2026. Model names, licences, prices, context limits, and availability change quickly. Verify the current provider documentation and licence terms before making an architectural or procurement decision.