A frontier model is one of the big proprietary AI models from labs like OpenAI, Anthropic, and Google. It runs on the lab's servers and you reach it through an API. Local inference is the alternative. You download an open model and run it on hardware you control, so your data never leaves your machine.
On the hardest reasoning and agentic tasks the leading proprietary models still report higher benchmark scores than the open-weight models, though the gap on published benchmarks has narrowed. Local inference holds the advantage on data control, predictable high-volume cost, and offline operation. The two approaches are not exclusive, since a system can route different tasks to different models.
TL;DR: Frontier APIs offer the highest reported capability with no infrastructure to run, in exchange for sending your data to the provider and paying per token. Local inference keeps data on hardware you control and has a low marginal cost once the hardware is paid off, in exchange for a capability ceiling set by open-weight models, high upfront cost, and the work of running the stack. On benchmarks the labs publish themselves, the strongest open-weight models score above some earlier frontier releases and well below the newest ones. Benchmark scores measure benchmark tasks, not any specific workload, so the gap that matters is the one measured on the actual prompts a workflow handles.
What is the difference between frontier models and local inference?
A frontier model is one of the largest, most capable proprietary models, hosted by the company that built it and accessed over an API. You send a request to a provider like OpenAI, Anthropic, or Google, the model runs on their infrastructure, and you get a response back. You never hold the weights, and you pay per token.
Local inference means running an open-weight model on hardware you control. "Open-weight" means the model's parameters are published and downloadable, so you can run them yourself instead of calling someone else's server. That hardware might be a laptop, a server in your office, or a GPU instance you rent. The defining trait is that the model file lives on a machine you administer, and the data you send it never leaves that machine.
Frontier APIs give you maximum reported capability with no infrastructure to run. Local inference trades that convenience for control, since you choose the model, you own the operations, and your data stays on your hardware. A system can also use both and route each task to whichever model fits it.
What do the benchmark numbers actually show?
The labs publish benchmark results for their own models. These are self-reported, the evaluation conditions vary between labs, and a score measures the benchmark, not the work you would put a model to. With those caveats stated, the numbers give a concrete starting picture rather than a leaderboard guess.
GPQA Diamond is a set of graduate-level science questions that several labs report on, which makes it one of the cleaner cross-model comparisons available from primary sources.
| Model | Type | GPQA Diamond | Reported by |
|---|---|---|---|
| Claude Mythos 5 | Frontier (proprietary) | 94.1% (averaged over 5 trials) | Anthropic system card, June 2026 |
| Gemini 2.5 Pro | Frontier (proprietary) | 86.4% (pass@1, single attempt) | Google DeepMind model card, 2025 |
| OpenAI gpt-oss-120b | Open-weight | 80.1% (no tools, high reasoning) | OpenAI model card, 2025 |
| DeepSeek-V3 | Open-weight | 59.1% (pass@1) | DeepSeek technical report, 2024 |
A few things sit inside those rows. The newest frontier number is well clear of the open-weight ones: Anthropic's June 2026 system card reports 94.1% for Claude Mythos 5, and the same document states that Anthropic now considers GPQA Diamond saturated and plans to stop reporting it for future models. OpenAI's own open-weight model, gpt-oss-120b, reports 80.1% without tools at its high reasoning setting and 80.9% with tools. DeepSeek-V3, an earlier open-weight release, reports 59.1% on the same benchmark, so the open-weight range is wide and "open-weight" is not a single performance tier. The rows also span release dates from late 2024 to mid 2026, which is part of reading any cross-lab table.
On MMLU-Pro, a multi-task knowledge benchmark, Meta reports 80.5 for Llama 4 Maverick and 74.3 for Llama 4 Scout, and DeepSeek reports 75.9 for DeepSeek-V3. OpenAI reports 90.0 for gpt-oss-120b on MMLU (the original benchmark, not MMLU-Pro), measured at its high reasoning setting.
These figures come from each lab's own model card or technical report. They were measured under conditions each lab chose, including reasoning effort and tool access, which differ from row to row. Running a sample of your own prompts through both a frontier API and a candidate open-weight model shows the gap on your specific work, which is the only gap that maps to a production decision.
What do you trade when you run local models?
The published benchmark gap is widest on a few categories of task. Long multi-step reasoning, where one early mistake derails everything downstream, is where the strongest proprietary models report their largest leads, and the GPQA Diamond and MMLU-Pro numbers above sit in that territory. Agentic work, where the model plans, calls tools, reads results, and adjusts over many turns, is the other area the labs emphasize for their frontier models. Nuanced instruction following, holding many constraints at once without dropping one, is harder to read from a single benchmark number.
On bounded tasks the published gap is smaller. Classification, extraction, and structured output cover pulling fields out of a document, tagging records, and returning clean JSON. Summarization and rewriting within a defined scope sit in the same group, as does customer-facing chat with a defined domain and guardrails. Whether a given open-weight model is good enough on one of these tasks is a question its benchmark scores only partly answer, since the inputs in production rarely match the inputs in a benchmark.
How do you run a model locally?
Running a model locally does not require a datacenter to begin. On a laptop or workstation, Ollama and LM Studio both download an open-weight model and provide a chat interface and a local API endpoint within a few minutes. Under the hood they lean on llama.cpp, the project that made it practical to run language models on consumer hardware and CPUs. This setup is enough to run a first comparison against an API.
Production serving is a different problem. Ollama is a developer convenience rather than a way to serve many concurrent users, so high-throughput deployments move to a dedicated inference engine. We cover the serving software in depth, including vLLM and the alternatives, in our data residency guide. vLLM is a common production default, and the engine choice affects throughput as much as the GPU does.
Several open-weight families are in active use for real work, including Llama, Qwen, Mistral, DeepSeek, and OpenAI's gpt-oss. Version numbers and benchmark scores shift every few months, so any specific figure ages, which is why the numbers in this post are tied to named model versions and dated sources rather than stated as a current ranking. The same guide covers model selection criteria, license terms, and hardware fit in detail.
Hardware floor. A modern laptop can run a small open-weight model well enough to read its outputs on a real task. Production serving with concurrency needs a serious GPU, and larger models need a lot of GPU memory or multiple GPUs working together.
How do you compare them for your workflows?
Published benchmarks measure generic capability on generic tasks. They do not measure how a model does one specific job, so a small evaluation built from real inputs fills the gap. The method has four parts.
Collecting 20 to 50 real prompts from the actual workflow, rather than from a benchmark, anchors the test in production inputs. Summarizing support tickets means grabbing real tickets, including the messy ones; extracting fields from contracts means grabbing real contracts. Running every prompt through both a frontier API and a candidate local model, and saving the outputs side by side, produces the comparison. Automating that step makes re-running cheap when models change. Judging the outputs blind, with the model labels stripped so the reviewer does not know which system produced which answer, removes the pull toward a model someone already favors; a domain expert can score them, or a strong model can act as judge if the task allows.
The axes worth measuring map to the business rather than to a leaderboard. Quality on the task, scored by someone who knows the domain. Latency at the percentiles that affect users, not just the average. Cost per task, counting idle hardware for local and per-token fees for the API. Privacy and jurisdiction, which for some workloads is binary, since either the data can leave your control or it cannot. The output of this exercise is whether a model is good enough for one task at a cost and latency the business can carry, which is a narrower question than which model is best overall.
For the background on why every API call is a fresh start and why prompt design matters as much as model choice, see how AI memory actually works.
When does local inference hold the advantage?
Local inference has a clear edge in four situations, three of which are about control rather than capability.
Privacy and sovereignty come first. When the data cannot leave infrastructure you control, capability is downstream of that constraint. This is the strongest reason to self-host, and it is its own large topic, covered in our data residency pillar. Predictable high-volume cost is the second. Self-hosted GPUs carry high fixed cost and low marginal cost, while APIs carry the reverse, so above a sustained volume threshold owning the hardware costs less per token and below it the API costs less. Where that crossover sits depends on model size, utilization, and throughput. Latency and offline operation is the third, covering deployments with no network round trip, no dependency on a provider's uptime, and the ability to run with no internet at all, which is the only option for air-gapped environments. Fine-tuning on proprietary data is the fourth, where adapting a model to your own data without that data leaving your control means running open weights you can fine-tune in-house.
A middle path: cloud-based inference in your country
A third option sits between calling a US frontier API and buying your own GPUs, which is running inference on cloud GPU infrastructure inside your own jurisdiction.
Regional and sovereign cloud GPU providers rent capacity in-country, and a growing number host open-weight models behind an API on domestic infrastructure. This keeps the operational simplicity of an API while keeping the data in-jurisdiction, without the capital expense and operations burden of owning hardware. It removes the question of whether data left the country, while leaving the capability ceiling at the open-weight level.
The sovereignty caveat. Data residency and data sovereignty are not the same thing. A provider running a datacenter in your country still falls under its parent company's home jurisdiction. A US-parented provider, wherever its servers physically sit, remains reachable under the US CLOUD Act. In-country cloud inference solves residency. It does not by itself solve sovereignty when the operator has a foreign parent.
When sovereignty is the actual requirement, the parent company's jurisdiction matters as much as the server's location. We unpack that distinction and the CLOUD Act mechanism in the data residency guide, with the specifics for the US, Canada, and the UK and EU. The guidance for a given jurisdiction sets out whether an in-country provider clears its compliance bar.
How the three options compare
| Factor | Frontier API | In-country cloud inference | Local / self-hosted |
|---|---|---|---|
| Data control | Lowest. Data leaves your control. | Medium. In-jurisdiction, but check the parent company. | Highest. Data never leaves your hardware. |
| Capability | Highest reported. | Open-weight ceiling. | Open-weight ceiling. |
| Upfront cost | None. | None. | High. GPUs, facility, setup. |
| Marginal cost | Per token, can climb fast. | Per token or per hour. | Low once hardware is paid off. |
| Ops burden | Minimal. | Low. | High. You own the full stack. |
| Suited to | Hardest reasoning and agentic work; prototyping. | Residency needs without owning hardware. | Sovereignty, sustained high volume, offline, fine-tuning. |
Frequently asked questions
Can local AI models match ChatGPT or Claude?
On the benchmarks the labs publish, it depends on the model and the test. Anthropic's June 2026 system card reports 94.1% on GPQA Diamond for Claude Mythos 5 and describes the benchmark as saturated. OpenAI's open-weight gpt-oss-120b reports 80.1% on the same test with no tools at its high reasoning setting, and an earlier open-weight model, DeepSeek-V3, reports 59.1%, so the open-weight range is wide. These scores are self-reported by each lab under conditions they chose, and they measure benchmark tasks rather than any particular workload, so a test on your own prompts is what shows the gap on your work.
What hardware do I need to run an AI model locally?
A modern laptop runs small open-weight models well enough to read their outputs on a real task. Production serving with real concurrency needs a serious GPU, and larger models need a lot of GPU memory or multiple GPUs working together. Hardware selection criteria are covered in detail in our data residency guide.
Is local inference cheaper than API calls?
It depends on volume. Self-hosting has high fixed cost and low cost per call, while APIs have no fixed cost but charge per token. Below a sustained-usage threshold the API costs less, and above it self-hosting costs less. The crossover depends on model size, utilization, and throughput, so the numbers come out of the specific workload rather than a general rule.
Does running a model locally make me compliant with data residency laws?
Not automatically. Self-hosting can satisfy residency and sovereignty requirements when the infrastructure is domestically owned and operated, and compliance also depends on encryption, access controls, audit logging, and what a specific regulator requires. Local hardware is one piece rather than the whole answer, and the guidance for a given jurisdiction sets out the rest.
What is an open-weight model?
It is a model whose trained parameters are published and downloadable, so it can run on your own hardware instead of only through the developer's API. Open-weight is not the same as fully open source, and licenses range from permissive to restricted, so the terms matter before building a product on one.
Trying to decide where each workflow should run? We build production AI systems, including RAG platforms for regulated industries on infrastructure that has passed SOC 2 Type 1 and ISO 27001 audits. We can run this evaluation with you and design an architecture that fits your compliance requirements. Talk to our team.
Tags
About the author
Graham Morley — Founder, Morley Media Group
Graham has been shipping production software since 2011, including SOC 2 and ISO 27001 certified platforms, DeFi protocols managing millions, and AI products that raised venture funding. He builds, advises, and leads engineering for companies at every stage, from a clean website to a complex AI platform.
Work with Graham