Hosted APIs vs Self-Hosted Models
Hosted APIs outsource model serving, scaling, hardware and much of reliability. Self-hosting gives deeper control over weights, placement, data path and cost structure but makes you responsible for the serving platform.
type ServingDecision = {
dataResidency: 'provider-ok' | 'self-host-required';
peakRequestsPerSecond: number;
latencySloMs: number;
modelControlRequired: boolean;
};
Choose with total cost of ownership
Self-hosting can reduce marginal inference cost at sustained scale, but idle GPUs, on-call, networking, capacity buffers, model conversion, security and upgrade work are real costs.
Practice
- What responsibilities move to your team when self-hosting?
- Why can low utilization make self-hosting expensive?
- Which privacy constraints might favor self-hosting?
- What evals must remain identical across hosted and self-hosted routes?