Own Weights

API, self-hosted or managed: a CTO's guide to running AI

API vs self-hosted vs managed LLM: how a CTO or founder weighs control, effort, risk and accuracy before choosing where the model runs, step by step.

Updated

The three ways to run an LLM in production are a vendor API, self-hosting an open-weight model on infrastructure you run, and managed self-hosting, where a provider sets up a model in your own cloud account or building. Pick between them by asking who controls the model, how much engineering time you can spend, and whether a smaller model is accurate enough on your task. Price per token matters, but it is rarely the first question.

What are the LLM deployment options?

An API is a metered service. You send text, the vendor runs its model, and you pay per token. You get the vendor’s current general model without touching infrastructure. You do not choose when that model changes or when an old version is retired.

Self-hosting means your team runs the model. You pick the open-weight model, the exact version and the serving setup, and you keep the weights. You also take on the servers, the monitoring, the upgrades and the on-call rotation.

Managed self-hosting sits in the middle. A provider installs and tunes the model in your own cloud account or on-prem, and you keep the weights. Your team still owns the data and the decisions, but someone else handles most of the setup. For how that setup works, read the managed self-hosting guide. A hosted open-model API is a fourth path: a vendor runs an open model for you and bills per token.

How do they compare on control and effort?

Control rises as you move from an API toward self-hosting. On an API, the vendor decides which model you get, when it changes and when it is retired. On self-hosting, you decide, so you can keep the exact model you tested for as long as you need it. That is the main reason teams move work off APIs. It is also a duty, because a version you keep is a version you must patch, monitor and eventually replace.

Effort rises in the same order. An API needs almost none. Self-hosting needs people who can size servers, handle traffic peaks, keep the model available and roll out updates without breaking callers. Managed setups move much of that work to the provider, but not all of it. Your team still runs evaluations and decides when to retrain.

Which option carries the least risk?

API risks are dependence risks: rate limits, outages, price changes, model retirements, and data leaving your environment under the vendor’s terms. Read those terms and your own data policy before you send anything sensitive.

Self-hosting risks are execution risks. A model can run well in testing and fail under a traffic spike. A server setup can depend on one engineer. No one may be watching for drift. Managed setups reduce execution risk but add a contract, so check what the provider can access and what happens to the deployment if you leave.

No option is safer by default. Running a model in your own environment gives you controls, not compliance. The model assists people who review its output. It is not legal, medical, tax or financial advice, and you still need your own review before you rely on it in a regulated process.

Is a fine-tuned model accurate enough to replace an API?

Often the answer comes down to one task. We tested this on a public exam: 510 commercial contracts with answers marked by lawyers. The model had to find 10 kinds of passage and quote each one exactly. We scored it with 5-fold cross-validation, so every document was scored by a model that never saw it in training.

Our Accuracy model scored 0.717. Claude Opus scored 0.635 and Claude Haiku 0.584. The score is the share of exactly-right quotes, where 1.0 is perfect. Our lead was +0.082 over Opus and +0.133 over Haiku, and both leads are larger than the margin of error. Claude took the exam with one prompt, no examples and no task training. Our models were fine-tuned for this exam.

That shows what training for one narrow task can do. It is not a legal product, and it does not mean a fine-tuned model beats Claude at everything. On a broad or fast-changing set of tasks, a frontier API is often the better fit. Cost matters too. On the same exam, our Accuracy tier cost $4.50 per 1,000 documents, our Standard tier $3.54, Claude Haiku $4.95 and Claude Opus $154.49 at list price. Run the numbers for your own volume with the API vs self-hosted cost guide.

How should we deploy an LLM in production?

Start on an API. Ship the feature, log each call, and find out which tasks are high volume and narrow. A task that is broad, rare or changing every week rarely earns its own model.

For a task that qualifies, build a test set from your own real data and score the current model on it first. That test tells you whether any change is safe. Then train only if the new model beats the current one on that test. If it does not, keep the API and move on.

Choose where it runs last. A hosted open-model API suits teams that want an open model without servers and can accept the vendor’s terms. Managed self-hosting suits teams that need the weights and the data inside their own cloud account or building. Full self-hosting suits teams that already run production infrastructure and want that control.

Should a founder choose between OpenAI and self-hosting?

Usually it is not one or the other. Teams often keep a frontier API for the wide, changing parts of the product, and move one high-volume task at a time. One shape that works is a trained model for volume with an API for the long tail.

The first wrong move is self-hosting too early, before the team has a clear task, a test set and people to run it. The second is staying on an API for a narrow, steady task where a trained model could be cheaper, more accurate and under your own control. Re-run the test when the task or the model changes.

If you want to know which of your AI calls would fit a trained model, the free AI cost audit reads your repository and lists your AI calls, the models they use and their estimated cost. You can also book a call through Own Weights and we will go through the results with you.

Questions

What are the LLM deployment options?

There are three main options: a metered vendor API, self-hosting an open-weight model on infrastructure your team runs, and managed self-hosting, where a provider runs the model in your cloud account. Each one trades control and effort against how fast you can start. A hosted open-model API is a fourth path for teams that want an open model without running servers.

How should we deploy an LLM in production?

Start on an API and log every call, so you can see which tasks are high volume and narrow. Build a test set from your own data, score the current model on it, and train only a model that beats it on that test. Choose the hosting option last.

Should a founder choose between OpenAI and self-hosting?

Usually not. Teams often keep a frontier API for broad, changing work and move one narrow, high-volume task at a time. Check OpenAI's current pricing page before you compare costs, since this guide does not quote their prices.

What LLM deployment strategy works for a startup?

Keep the API while the product is still changing, and measure before you move anything. Self-host only when one task is steady, a test shows a trained model is accurate enough, and someone on the team can run it in production.