Software Ownership

How to Self-Host Your Company's AI Stack: Replacing SaaS APIs with Local Models

You do not need a bigger API budget. You need a plan, a break-even number, and the right open models. Here is the playbook.

At a glance
  1. 01Break-even for a 32B model on one GPU is roughly 10 million requests a month against a managed API.
  2. 02Intercom saved $250,000 monthly by replacing a hosted GPT call with a fine-tuned 14B Qwen model.
  3. 03Self-hosting embeddings on a single GPU costs about $0.0036 per million tokens, saving over 30x.
  4. 04Fine-tuning a 568M-parameter embedder with LoRA took 41 minutes and cost about 80 cents.
Minimalist ink-and-crimson illustration of a glowing on-premise server rack with a subtle neural network pattern, surrounded by fading subscription invoice icons

The short answer

You self-host AI for your business by running open-weight models on GPUs you control, using an inference layer (like the open-source Superlinked Inference Engine, or a lighter edge runtime like FreeToken) instead of calling a metered API for every request. It makes sense once your usage is steady and high volume, or once compliance rules say your data cannot leave your network. Below that line, a hosted API is still cheaper, and pretending otherwise is how self-hosting projects fail.

This is a build-vs-buy decision with a real number attached, not a vibe. Work the number first, then build.

Start with the number that actually decides this

Self-hosting trades a per-token bill for a fixed GPU cost. An API meters every token. A GPU costs the same whether it sits idle or runs flat out, so the entire question is whether you can keep it busy enough to beat the metered price.

Superlinked's own break-even math, presented at Infer() Summit 2026, puts the crossover for a dense 32B model on one GPU at roughly 10 million requests a month against a $0.50-per-million-token managed API.1 Below that, the GPU sits idle and the API wins by a wide margin. Mixture-of-experts and smaller 4B-class models cross sooner; an idle GPU never crosses at all.1

Against budget-tier frontier APIs, the line moves even further out. DeepSeek V4-Flash currently prices at roughly $0.14 per million input tokens and $0.28 per million output tokens, with cache hits near $0.003 per million.2 One industry analysis puts the self-hosting break-even against that pricing at around 5.7 billion tokens a month on a single H100, a volume almost no mid-market company generates.3 Against a premium frontier API, the same analysis puts the crossover closer to 100 to 256 million tokens a month, and even that assumes 60 to 70 percent sustained GPU utilization.3

The practical takeaway: self-hosting a big generalist chat model to replace GPT-class API calls rarely pays off for a normal business. Self-hosting the specific, high-frequency, repetitive tasks buried in your agent stack pays off constantly.

Figure 1
Approximate break-even volume vs. API pricing tier
Monthly break-even volume (tokens/requests)
180,000,000Premium frontier API5,700,000,000Budget open-weight API (DeepSeek V4-Flash)10,000,000Sub-40B model, steady traffic
Pricing tier
Actual crossover depends on utilization and model size.
Source: Superlinked

Where the crossover actually happens

Workload typeTypical break-even vs. APIWhy
Frontier chat/reasoning model~100-256M tokens/monthPremium APIs are cheap per token relative to GPU idle time3
Budget open-weight API (DeepSeek V4-Flash)~5.7B tokens/monthList price is already near GPU-rental cost3
Sub-40B dense/MoE model, steady traffic~10M requests/monthSmaller models saturate a single GPU faster1
Embeddings and rerankingAlmost immediateSmall models, high frequency, cheap hardware1

Step 1: Separate frontier reasoning from document plumbing

Most of what an AI-powered business actually runs is not frontier reasoning. It is OCR, parsing, entity extraction, embeddings, and reranking, the plumbing that feeds an agent before it ever generates a sentence. This work is high-volume and repetitive, which is the worst possible shape for per-token pricing and the best possible shape for a GPU you own.4

Superlinked's SIE (Superlinked Inference Engine) was built specifically for this layer. It is an open-source, Apache 2.0 inference server that runs OCR, document parsing, structured extraction, embeddings, and reranking from one cluster, reached through a single SDK.4 Superlinked reports that its batch-then-route design reaches about 89 percent GPU efficiency, versus roughly 51 percent for the naive route-then-batch pattern most teams build by hand, which works out to roughly 1.8x the throughput per GPU at the same latency.1

The savings are not hypothetical. Intercom's Chief AI Officer, Fergal Reid, reported cutting about $250,000 a month by replacing a hosted GPT call with a fine-tuned 14B Qwen model on a single pipeline task inside its Fin AI product.4

Step 2: Pick models that match the job, not your ego

You do not need a 671-billion-parameter model to clean up a transcript or extract a vendor name from an invoice. Match model size to task:

  • Frontier-class reasoning, self-hosted: DeepSeek V3 and V3.1 are open-weight, MIT-licensed, 671B-parameter mixture-of-experts models with 37B activated parameters per token, deployable via vLLM, SGLang, or LMDeploy on your own GPU cluster.5 Running the full model requires datacenter-class hardware, typically 8x H100 or H200 GPUs. Distilled versions, from 1.5B to 70B parameters, run on much smaller hardware for teams that need strong reasoning without a data center.
  • Small, task-specific cleanup: S1-mini from Superwhisper is a 0.6B, 484MB open-weight model, released under Apache 2.0 with a naming clause, that reformats and cleans raw transcripts entirely on-device with zero network calls.6 It reached 94.8 percent token accuracy on a held-out set of 7,519 cases in Superwhisper's own evaluation.7 That is the model class you want for narrow, repetitive jobs: small, cheap to run, good enough.
  • Edge and consumer-hardware inference: FreeToken, from research group FlashML, is an edge-native serving system that treats a laptop or gaming desktop as a unified inference platform rather than a small GPU. It splits mixture-of-experts model execution between GPU cache and CPU based on measured PCIe and CPU bandwidth, letting a single workstation GPU run models as large as 753B parameters and a laptop run 35B-class models.8 It is a research-grade tool, not enterprise infrastructure, but it shows how far consumer hardware has moved.

Step 3: Size the hardware to the workload, not the marketing

A sub-40B model at FP8 quantization typically fits on a single rentable GPU today. As of mid-2026, an entry-tier L4 or A10 (24GB) rents for roughly $0.39 to $1.00 an hour and handles 4B-class models and embeddings. A workhorse A100 80GB or RTX PRO 6000 (96GB) runs $0.90 to $1.80 an hour and covers 30B-class models or mixture-of-experts. An H100 80GB, for genuine headroom, runs $1.80 to $4 an hour.1 Full-precision DeepSeek V3-class models need multiple H100s or H200s; Northflank's own deployment guide recommends 8x H200 GPUs for DeepSeek-V3.1 with vLLM.

Embeddings are the cheapest entry point. Superlinked's benchmarks show a self-hosted bge-m3 embedder running on a single GPU at roughly $0.0036 per million tokens, against $0.12 to $0.13 per million tokens for hosted providers like Voyage or OpenAI, a difference of more than 30x at scale.1

Step 4: Adapt the model instead of replacing it

Open weights are not fixed. Superlinked's own LoRA experiment on a 568M-parameter multilingual embedder took a single adapter, trained on one L4 GPU in 41 minutes for about 80 cents, and lifted German legal retrieval accuracy from 0.2613 to 0.3129, a 19.7 percent gain, with a small trade-off on general-domain tasks that a mixed training set mostly recovered.1 That is the actual argument for owning your model layer: you can tune it for your domain for the price of a coffee, something no API vendor will do for you.

Step 5: Deploy air-gapped if compliance requires it

If your data cannot leave your network, self-hosting stops being optional. SIE ships the same Docker image, Helm chart, and Terraform modules from a laptop to a Kubernetes cluster, with model-weight snapshots for fully air-gapped deployment.4 This matters more than it sounds. On January 30, 2025, Italy's data protection authority blocked DeepSeek's chatbot from processing Italian users' personal data after the company failed to give an adequate account of its data handling, a decision that put a fine point on why document pipelines carrying personal or contractual data attract regulatory attention.4 Flexera's 2025 State of the Cloud Report found about 70 percent of enterprises now run hybrid infrastructure across an average of 2.4 public clouds, which is the practical argument for an inference layer that installs the same way anywhere rather than living inside one vendor's API.4

Step 6: Rent the API everywhere else

Self-hosting is not a purity test. Rent the API when volume is low or spiky, when you need the absolute frontier model for the hardest reasoning tasks, or when your whole inference bill is still small enough that GPU operations are not worth the engineering time.1 This is the same build-vs-buy logic that applies to any internal tool: own the software an asset sits underneath rather than renting metered access to it, but only once the volume and the operating capacity justify the switch.

The bottom line

Most companies calling this decision wrong are comparing the sticker price of a GPU to their API bill and stopping there. The real comparison is fully loaded self-hosting cost, hardware, electricity, DevOps time, redundancy, against sustained token volume, not a peak estimate. Below roughly 10 million requests a month for mid-sized open models, or 100 million-plus tokens a month against a premium frontier API, keep renting. Above it, or the moment compliance takes the decision out of your hands, start moving the plumbing in-house first, then the reasoning.

Frequently asked
What is the minimum volume where self-hosting AI models makes financial sense?

Roughly 10 million requests a month for a sub-40B open model on a saturated GPU, and closer to 100-256 million tokens a month against a premium frontier API.

Can I self-host a model as capable as GPT-4 or Claude?

Yes, with open-weight models like DeepSeek V3/V3.1, but full-precision hosting requires datacenter-class hardware such as 8x H100 or H200 GPUs. Distilled variants run on far less hardware with reduced capability.

Do I need to self-host everything, or just parts of my AI stack?

Just the high-volume, repetitive parts: document processing, embeddings, and reranking. Keep spiky or genuinely hard reasoning tasks on a managed API.

What's the cheapest place to start self-hosting?

Embeddings. They run on small models with minimal VRAM needs and can cost 30x to 50x less per million tokens than hosted embedding APIs at scale.

Does self-hosting solve compliance problems, not just cost problems?

Often that is the bigger driver. Regulators have already acted against cloud AI providers over data handling, and self-hosting keeps documents and prompts inside your network boundary.

Sources
  1. 1.Should You Self-Host Inference? — Superlinked
  2. 2.DeepSeek API Pricing 2026: Full Cost Breakdown — Coworker AI
  3. 3.Self-Hosted LLM vs API: The Real Cost and Security Trade-offs for Enterprise in 2026 — Marka Development
  4. 4.Self-hosted document processing for AI agents, with SIE — Superlinked
  5. 5.DeepSeek-V3 — GitHub (deepseek-ai)
  6. 6.Introducing the S1 family of models — Superwhisper
  7. 7.Meet S1-mini: Superwhisper's 462 MB Open-Weights Text Normalizer That Turns Raw ASR Transcripts Into Clean Written Text — MarkTechPost
  8. 8.FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution — arXiv
Portrait of Lena Ortiz
Lena Ortiz
Software Ownership
Lena makes the case for owning the software your company runs on.
© 2026 The Official Remy BlogDrafted by AI authors, reviewed by human editors.