LLM & Model Insights Published 11 September 2026 8 min read

Open Weights or Closed API? The Real Cost Maths of Self-Hosting, and Where Privacy Flips the Answer

Many schools assume that buying a machine to run an open model must be cheaper. Put real usage through September 2026 published pricing and the answer usually reverses — the annual cloud API bill is too small for hardware to beat. This article works through both sides honestly, lists the open models that are realistic on school hardware, and identifies the point at which data policy tips the balance towards self-hosting.

Edor.ai Education Team
Former teachers, edtech consultants and AI engineers
以繁體中文閱讀

An IT coordinator asked us: "If we buy a machine and run an open model, we stop paying API fees, right?" We put his school's actual usage through September 2026 published pricing. The annual cloud API cost came to somewhere between US$99 and US$556 — roughly HK$800 to HK$4,300. In other words, before the machine is even switched on, the hardware has already outspent what it was meant to save. Self-hosting may still be the right decision. Saving money is just not the reason.

This article works through both sets of numbers, then identifies the point at which privacy and data policy reverse the answer.

Plain-language mechanics: weights, renting, and where the model lives

Open weights means publishing the recipe. A model's weights are the several hundred billion trained numbers that determine how it answers. Publish them and anyone can download and run the model on their own machine. Closed means only the window is open: you send a question, you get an answer, and you never see the recipe.

Parameter count is the brain-cell count, but in 2026 look at active parameters. Most new models use a mixture-of-experts design: a model may hold 744B parameters and activate only a fraction of them per token. That is how cloud vendors push prices down, but it is bad news for a school self-hosting, because the VRAM still has to hold all the parameters, not just the active ones. This is the single most common miscalculation we see.

What self-hosting actually buys is location, not capability. Data stays inside the campus network and passes through no third party. What it does not buy: a cleverer model, fewer hallucinations, the cloud vendor's content-safety classifiers, or someone to call when it breaks.

Head-to-head: which open models are realistic for a school?

ModelScaleLicenceContextRealistic to self-host?
Qwen3.8-27B27.8B dense vision-languageApache 2.01,000,000High — documented to run in 24GB of VRAM
Muse Glimmer 30B (Meta)30B dense multimodalApache 2.0131,000High — official support for Ollama, LM Studio and llama.cpp, designed for consumer hardware
Ministral 3 3B / 8B / 14BThree small dense modelsApache 2.0See vendor docsHigh — runs on a single GPU or even a laptop, good for offline or older machines
qwen2.5:14bPrevious-generation mid tierOpenHigh — already in Edor.ai's Ollama suggestions
llama3.1Previous-generation open workhorseMeta licenceHigh — the Edor.ai on-premises default
Mistral Large 3675B total / 41B active MoEApache 2.0256,000Medium — needs server-class hardware
DeepSeek-V4.1-Flash552B MoEMIT1,000,000Medium — the full build needs a server; distilled or quantised builds are workable
GLM-5.2744B MoEMITLow — the most permissive licence, the highest hardware bar
Hunyuan Hy4 Preview770B total / 49B activeApache 2.01,000,000Low — clean licence, still server-class hardware
Kimi K32.8T total / 104B activeBespoke Kimi K3 licence1,000,000Not realistic — far beyond a school server

One sentence summarises that table: what genuinely lands in a school server room is the sub-30B group; above that it is a data-centre conversation. Licences also have to be read model by model rather than vendor by vendor — the open build of Qwen's flagship uses a bespoke licence without image input, and the GLM-5.3 flagship weights were still unpublished when this article was updated.

The real cost maths, both sides on one page

Start with renting. The conversion below uses clearly stated assumptions: 800 students and 100 staff; 600 AI requests per school day; 3,000 input and 700 output tokens per request; 190 school days per year. These are estimating assumptions, not vendor figures.

RouteModelAnnual model cost (USD)
Rent (flagship)GPT-6 Astra / Claude Fable 5.1about 7,410
Rent (mid tier)Claude Sonnet 5about 1,482
Rent (value)Gemini 3.8 Flash (introductory)about 556
Rent (cheapest)DeepSeek-V4.1-Flash (off-peak)about 99
Self-hostQwen3.8-27B or Muse Glimmer 30BModel cost zero; the cost is hardware and people

The self-hosting side has no token fees but four costs, two of them non-cash:

  1. Hardware — a 24GB-class GPU and a machine that can stay powered on;
  2. Power and facilities — continuous running, cooling, uninterruptible power;
  3. IT staff time — installation, updates, backups, incident handling. This is the item most often omitted and usually the most expensive;
  4. Opportunity cost — a self-hosted model is generally weaker than a contemporary flagship, and teachers notice the difference.

Add those four up, set them against the right-hand column above, and the conclusion is fairly stark: at typical secondary school volumes, the annual cost of renting a mid-tier or value model is too low for hardware to pay back on saved API fees alone. For self-hosting to win on pure cost you usually need one of: usage far above the assumptions here (a district-wide shared deployment, say), spare server capacity the school already owns, or a sponsoring body with a central data centre across which the cost can be spread.

One point matters particularly for schools: with Edor.ai the school pays a single annual subscription covering roughly 800 students and 100 staff, with AI usage included and no token fees, and cloud and on-premises deployments have identical features and the same price structure. So the school's real question is not "spend or save" but "where does the data live" — which is exactly where the question belongs.

The moment privacy flips the answer

The arithmetic above counts only money. Put data policy in and the balance can tip immediately. In three situations self-hosting is reasonable or even the only option:

One, school policy states in writing that data must not leave the campus network. Some sponsoring bodies and special schools hold stricter internal rules on student data, and in that case the cost comparison never needs to be run.

Two, the material is in the most sensitive category. SEN assessment records, counselling cases, social worker referrals, suspected abuse cases — many schools will not put these through a third party even with contractual protection. The workable pattern is routing: sensitive tasks to the local model, everything else to the cloud.

Three, the school needs a simple answer for parents and the school management committee. "It is on that machine in the server room" is an answer anyone understands, and it costs far less to communicate than a summary of contractual terms.

Under the six Data Protection Principles of the Personal Data (Privacy) Ordinance, the school remains the data user throughout, and the security obligation under DPP4 does not transfer through outsourcing. Self-hosting does not make that responsibility disappear, but it narrows it to territory the school actually controls.

Limits and blind spots: five real costs of self-hosting

One, self-hosted models hallucinate too — generally more than a contemporary flagship. Open weights fix data location, not correctness. Every teacher review step stays exactly as it was.

Two, you lose the cloud vendor's safety net. A commercial API sits behind content classifiers, abuse detection and a continuously updated safety policy. Self-hosting hands all of that back to the school. Student-facing use especially needs its own gating and monitoring; see student AI safety, gating, PII and monitoring.

Three, not every feature can be localised. The speech recognition and synthesis behind oral practice currently come from OpenAI or Azure OpenAI. Cutting the cloud off entirely means giving up some features or sourcing them elsewhere.

Four, quantisation is a trade, not a free win. INT4 / INT8 quantisation lets a model run on a small GPU at the cost of some precision. That is usually fine for Q and A and summarising, but anything requiring exact calculation should be tested on the school's own material first.

Five, open-source commitments change. In April 2026 Meta moved its frontier line from Llama to the closed-weight Muse Spark, making the Llama family legacy. A three-year plan cannot assume that what is open today is open in three years. Confirming that already-downloaded weights remain usable is more practical than trusting a roadmap.

Six, fine-tuning is not how the AI learns about your school. LoRA / QLoRA fine-tuning teaches vocabulary, format and tone, but it does not reliably store facts. For the AI to cite the school's curriculum schedule and policies, use retrieval — see the school knowledge base.

Actionable guidance: a decision path and a checklist

Decision path, answered in order:

  1. Is there a written rule that data must not leave the campus network? Yes → go on-premises and skip the cost comparison.
  2. Does anyone maintain servers? No → go cloud, with data protections written into the contract.
  3. Both are possible? → route: sensitive tasks local, everyday tasks cloud. For a school with IT capacity this is usually the best position.

On-premises checklist you can run this week:

  • Confirm hardware: is there a machine with 24GB or more of VRAM that can stay powered on?
  • Pick a model: start with qwen2.5:14b or llama3.1 and check whether Chinese output meets the panel's standard;
  • Define routing rules: which tasks must stay local? Write the list into the school AI policy;
  • Add the safety layer: gating, teacher monitoring and audit logging do not appear automatically just because the model is local;
  • Confirm the exit: can data be exported in full in one click, and what would moving back to cloud involve?
  • Check licences: is the chosen model MIT, Apache 2.0 or bespoke, and are there commercial-use restrictions?

For the full discussion of deployment and data ownership, see on-premises versus cloud deployment. For the complete open and closed model reference, see the model database and the 2026 all-model roundup.

Takeaway

For schools in 2026, open versus closed is no longer an argument about cost. Renting has become cheap enough that hardware struggles to pay back, and the value of self-hosting concentrates in one thing: the school decides where the data lives. Whether that is worth the hardware and staff time is not answered on a quotation — it is answered in the school's data policy.

The good news is that this need not be a binary. One platform, identical features across cloud and on-premises, sensitive tasks routed locally and everyday tasks to the cloud, with the whole dataset retrievable at any time. What the school keeps is optionality, and that matters far more than picking a side.

FAQ

At typical secondary school volumes, usually not. On our estimating assumptions the annual cloud API bill can be a few hundred US dollars, and hardware, electricity and IT staff time together struggle to beat that. The real reason to self-host is data policy, not saving money — unless usage is very high or the school already has spare server capacity.

They carry a different risk profile. Self-hosting answers where the data goes, but it also gives up the cloud vendor's content-safety classifiers and abuse detection, so the school must supply its own gating, monitoring and audit trail. Cloud does the opposite — content gating is handled, and data residency is managed through contract and assessment.

The practical dividing line is 24GB of VRAM. Qwen3.8-27B is documented to run in 24GB, and Meta's Muse Glimmer 30B is explicitly designed for consumer hardware. A tier above — GLM-5.2, Hunyuan Hy4 or Kimi K3 — needs server-class hardware and is not realistic for an ordinary school.

Quantisation (INT4 / INT8) trades a little precision for the ability to run on a small GPU, which is usually acceptable for teaching Q and A or summarising but should be tested before any task needing exact calculation. LoRA / QLoRA fine-tuning teaches the model your school's vocabulary and formats, but it does not make it know more facts — for the AI to cite school material, use knowledge base retrieval instead.

Yes, and this is exactly what belongs in the contract — identical features across cloud and on-premises, one-click full export at any time, and models switchable in the admin panel. What the school keeps is optionality rather than a commitment to one deployment style.

Sources, trust labels and disclaimers

Prices and specifications in this article are current as of 2026-09

  • · All prices, features and specifications follow the official documentation linked above. Vendors may change them at any time — verify before you purchase.
  • · Product names and trademarks mentioned belong to their respective owners. Edor.ai has no partnership, agency or sponsorship relationship with these companies.
  • · This article is an independent review compiled for educational purposes and is not procurement advice or legal advice.
  • · For any use involving student personal data, assess it against your school policy and the Personal Data (Privacy) Ordinance (PDPO) before rollout.
open modelsself-hostingcost analysisdata privacyOllama
Subscribe to the AI in Education newsletter

One email a month: practical AI teaching articles for Hong Kong schools, platform updates and grant news. Unsubscribe any time.

We only use this address for the newsletter and never share it.

Related articles

LLM & Model Insights 11 September 2026 8 min read

The 2026 All-Model Roundup: 15 Providers and One Selection Framework for Schools

From OpenAI, Anthropic, Google, xAI, Meta and Mistral to DeepSeek, Qwen, Kimi, GLM, MiniMax, Doubao, Hunyuan and ERNIE, plus the coding-only Cursor Composer. One school usage model, applied to every vendor's published pricing, puts all 15 on a single table — followed by a four-question framework for choosing between them.

Read more
LLM & Model Insights 11 September 2026 8 min read

China's LLMs Compared: DeepSeek, Qwen, Kimi, GLM and Five More — What Can a Hong Kong School Actually Use?

DeepSeek costs one sixty-seventh of GPT-6 Astra per input token and is no weaker in Chinese. So why does a school platform not simply plug into it? This roundup compares DeepSeek, Qwen, Kimi, GLM, MiniMax, Doubao, Hunyuan and ERNIE, explains the crucial difference between open weights and a cloud API, and sets out the three routes that are genuinely workable under the Personal Data (Privacy) Ordinance.

Read more
LLM & Model Insights 11 September 2026 7 min read

From Chatbot to AI Agent: Tool Calling, Multi-Step Automation, MCP, and What a School Should Not Automate

A chatbot only talks. An agent acts — it looks things up, reads documents, calls systems and runs several steps in sequence. This article explains tool calling and the MCP standard in terms a teacher can use, compares published tool-call charges, and offers a should-automate and should-not-automate list. The question is not what AI can do, but which step a person must confirm.

Read more