Hashlogics
Comparison

Self-hosted vs managed LLM

The argument is usually framed as cost. It is really about who is awake when the model stops responding at two in the morning.

The short answer

Use a managed API unless a rule or a contract says the data may not leave your network, because self-hosting replaces a bill with a team.

Teams reach for self-hosting to save money, then discover the model was the cheap part. Someone has to size the hardware, keep it patched, handle traffic spikes, and answer for quality when a new version behaves differently.

That work is worth doing when there is a real constraint behind it. Data that cannot leave a network is a real constraint. A preference for owning things is not.

Side by side

Compared on what you take on, rather than on which model scores higher this month.

DimensionManaged APISelf-hosted
Time to first working callMinutesWeeks, including hardware decisions
Who handles a traffic spikeThe vendorYou, in advance, by buying capacity
Where the data goesTo a third party under contractNowhere you do not control
Model changesThe vendor may retire or update a versionNothing changes until you change it
Cost shapePer token, scaling with useMostly fixed, whether busy or idle
Skills neededApplication engineersApplication plus infrastructure engineers
Main failureA vendor change you did not chooseIdle hardware, or a queue at peak
Sensible triggerAlmost every starting pointA rule that forbids sending the data out
What self-hosting adds to your job listLive
  1. CapacityBought before you know demand
  2. ServingSomething must batch the requests
  3. UpgradesNew weights mean new testing
  4. On callThe pager is now yours
  5. EvalsThe only proof quality held

None of these disappear at small scale. They just get shared with whoever has spare time.

Managed API

Where it wins

  • You are building features on day one instead of choosing hardware.
  • Capacity is somebody else's problem, including the week your product gets written about.
  • Compliance paperwork already exists, which shortens a security review from months to weeks.
  • Switching model size is a line of configuration rather than a procurement cycle.

Where it hurts

  • Your data goes to a third party, and no contract makes that fact disappear.
  • The vendor can change or retire a model version, and your prompts were tuned against the old one.
  • Costs rise with success, which is fine until one high-volume feature dominates the bill.
  • Zero data retention is an approved arrangement at the major vendors rather than a default, so plan for the application.

Self-hosted

Where it wins

  • Data never leaves infrastructure you control, which some contracts and regulators simply require.
  • The model stays exactly as it is until you decide otherwise, so behaviour does not drift under you.
  • Steady heavy volume can suit fixed capacity better than per-token billing.
  • Open-weight options are real: Mistral publishes several models under Apache 2.0, and Llama models come with a licence that permits commercial use.

Where it hurts

  • You are now running an inference service, with the sizing, patching and on-call duty that implies.
  • Idle hardware costs the same as busy hardware, so quiet periods are pure loss.
  • Licences are not uniform. Llama requires a separate licence from Meta above 700 million monthly active users, and some Mistral models are not Apache 2.0 at all.
  • You inherit safety work that a managed vendor was doing for you, including filtering and abuse handling.

How to choose

  • Choose a managed API for anything you are still proving. Buying hardware to test an idea is an expensive way to learn the idea was wrong.
  • Choose self-hosting if a contract, a regulator or a client's security team forbids the data leaving your network.
  • Choose self-hosting if volume is high, steady and predictable, since that is the shape fixed capacity suits.
  • Choose a managed API if your traffic is spiky. Paying for peak capacity all month to survive one hour is a bad trade.
  • Choose both if one narrow workload is sensitive and the rest is not. Splitting by data classification is common and works.
  • Choose neither yet if nobody can say what accuracy the system needs. Hosting decisions made before that answer get remade.
Questions, answered

Questions teams ask before buying hardware

01Is self-hosting actually cheaper at scale?

It can be, once volume is high and steady enough to keep expensive hardware busy. The comparison people get wrong leaves out the engineers: sizing, serving, upgrades and on-call cover are ongoing work, not a one-off setup. Compare total running cost including those people, and be honest about how much of the day your hardware would sit idle.

02Can we start managed and move in-house later?

Yes, and that order is usually the right one. Keep model calls behind a single internal interface from the start, so the move is a swap rather than a rewrite. Build a scored evaluation set early too, because without one you cannot prove the in-house model performs as well as what you replaced.

03Does self-hosting solve our compliance problem?

It solves one part and creates another. The data stays inside your network, which is often the specific thing a rule requires. You then own everything the vendor was doing: access control, logging, retention, safety filtering and the evidence an auditor asks for. Self-hosting moves the obligation rather than removing it.

04How much hardware do we need?

Model size and peak concurrency decide it, so nobody can size your cluster responsibly from a page. The number that catches teams out is how many requests must run at the same moment, not average traffic. Measure your busiest realistic hour before buying anything. Peak decides the bill, and average decides the disappointment.

05Are open models good enough now?

For many narrow tasks, yes: classification, extraction, summarising within a known format. Broad reasoning across messy input is where the leading managed models generally remain ahead. Test on your own scored examples rather than on a public leaderboard, because leaderboard tasks are rarely shaped like yours.

Verified
Start

Anyone can ship the agent. We answer the pager.

We build AI agents and automation, then stay on under an agreed service level. A senior engineer reads every brief, and your call gets scheduled within 24 hours.

What happens next

  1. 01

    You send a brief or book a call

    Two minutes, whichever you prefer.

  2. 02

    A senior engineer replies within 24 hours

    Not a sales rep.

  3. 03

    Honest scoping, in writing

    And if we’re not the right fit, we say so.

Abdul Basit, CEO of Hashlogics

“I started Hashlogics because too many teams ship a demo, get paid, and disappear. We build to a standard we’d run ourselves — and we stay to keep it running.”

Abdul Basit · CEO · a direct line

Not ready to talk? Take the checklist.

12 questions to ask any AI agency before you sign. They separate a demo shop from a team that ships to production.

Get the checklist

Free · no newsletter