All insights

    Architecture

    Do You Need Your Own LLM, or Will an API Do?

    · 7 min read · Anton Babayan, Founder

    This question arrives early in almost every project, usually before anyone has written down what the system has to do. It is worth settling quickly, because the answer is an API far more often than the discussion suggests, and the cases where it is not are specific enough to name.

    Start from what would force you off an API

    A hosted model API gives you the current best model, no idle compute to pay for, and nobody on your team keeping inference servers alive. Three things take that away.

    A contract or regulator that will not accept the data leaving your tenancy. This is the real reason most of the time, and it is a legal question rather than a technical one. Several providers now offer in-region deployment with a written commitment not to train on your inputs, which is enough for many entities. Somebody has to read those terms against the obligations the organisation actually signed, and that reading is what decides the architecture.

    Volume. Per-token pricing is excellent at low and medium volume and stops being excellent at high steady volume. If a workload runs continuously at scale, the arithmetic can favour your own hardware. Run that arithmetic on measured traffic, not on a forecast, because forecasts for AI features are usually wrong by a factor of several in both directions.

    Latency you cannot buy. If a response has to come back inside a budget that an external hop cannot meet, the decision is made for you. This is rarer than it sounds, and worth measuring before it becomes an argument.

    What self-hosting costs beyond the licence

    Open-weight models are free to download, which is the cheapest part of the exercise. You then pay for accelerated compute around the clock whether anyone is using the system or not, for someone who can keep inference serving healthy under load, and for the re-evaluation work every time a better open model lands, which at the moment is every few months.

    Teams underestimate the last one. A self-hosted model is a component you now own, and owning it means noticing when it has fallen behind and doing something about it.

    Keep the decision reversible

    Whichever way you go, put the model behind your own interface in the first week. One module that takes a request and returns an answer, with the provider on the other side of it. Keep an evaluation set of real cases with expected answers, and keep it current.

    With those two things in place, moving between a hosted API and your own deployment is a configuration change and a quality comparison. Without them, it is a rebuild, and the cost of being wrong about this decision is the reason teams argue about it for weeks.

    The short version

    Use an API unless the data cannot leave your tenancy, the volume makes your own hardware cheaper, or the latency budget rules out the extra hop. Settle the contract question first, because it decides the answer more often than anything technical. Then keep the model behind your own interface so the decision can be revisited when it needs to be.

    Frequently asked questions

    Should an enterprise self-host an LLM or use an API?

    Use an API unless something forces you off it: a contract or regulator that will not accept the data leaving your tenancy, a workload large enough that the per-token bill exceeds the cost of running your own, or a latency floor an external hop cannot meet. Everything else is cheaper and faster on an API.

    Is a hosted model API acceptable for regulated data in the UAE?

    Often yes, once the provider offers an in-region deployment with no training on your inputs and a contract your legal team accepts. The blocker is rarely the technology. It is whether anyone has read the terms against the obligations the entity signed.

    What does self-hosting an LLM actually cost?

    Accelerated compute around the clock whether or not anyone is using it, plus someone who can keep inference serving healthy, plus the work of re-evaluating every time a better open-weight model lands. The licence is the cheap part.

    Can you start on an API and move later?

    Yes, if you keep the model behind your own interface from the first week and keep your evaluation set. Then a switch is a configuration change and a quality comparison rather than a rebuild.

    Related reading

    Planning something similar?

    We find where AI actually fits, build it, and get it running in production.

    Get in Touch