Cost and ROI of Small Language Models

What it actually costs to run a task-specific small language model versus a frontier API: inference economics, training cost, and how to calculate the return.

The cost argument for small language models is straightforward at the surface and more interesting underneath. A model with a hundredth of the parameters costs dramatically less per token to run. The interesting part is when that saving is real, and when it is eaten by things the headline number ignores.

Where the saving comes from

Inference cost scales with the compute needed per token, which scales with model size. A 1B model serving a task that a frontier model was handling isn’t a marginal improvement in unit economics. It’s a different order of magnitude, and for a workload running millions of requests that gap is the entire business case.

The saving compounds where the task is narrow and high-volume: classification, extraction, routing, redaction. These are exactly the workloads where a frontier model is most overqualified, and where teams most often default to one anyway because it was the fastest thing to prototype with.

What the headline number leaves out

Self-hosting replaces a per-token bill with a fixed one. GPUs cost money whether or not requests arrive, so the break-even depends on utilisation, and a self-hosted deployment at 5% utilisation can be more expensive than the API it replaced.

There’s also engineering time (deployment, monitoring, updates, on-call) which is real even though it doesn’t appear on an invoice. And there’s the one-off cost of training itself, which is small relative to ongoing inference for any serious volume, but is not zero.

The honest framing is that self-hosting wins clearly at sustained volume, loses at low or spiky volume, and that the crossover is worth calculating with your actual numbers rather than assumed.

Latency has a price too

Slow inference costs money in ways that do not appear in a cost-per-token comparison. It costs conversion in interactive products, it costs GPU-hours in agent loops that make several sequential calls, and it forces architectural workarounds (caching layers, speculative execution, fallback paths) that carry their own engineering cost.

A model that is five times faster removes work from the rest of the system, and that saving is real even though it is harder to attribute.

Calculating it for your case

The inputs are: request volume, tokens in and out per request, current per-token API pricing, the hardware needed to serve your chosen student at your latency target, and the utilisation you can realistically expect. That is enough for a defensible estimate, and the calculation is usually decisive in one direction or the other rather than close.

Where teams have run this properly, the results have been substantial. One edtech customer cut inference cost by roughly 68% on selected classification tasks, and accuracy went up rather than down, from 81% to 93%. That’s one customer’s measured outcome on one workload, not a general promise.

Where this cluster goes

The articles below work through inference cost per million tokens, the self-host versus API break-even, what fine-tuning itself costs, GPU requirements, the hidden operational costs, and a worked ROI calculation.

Cost Per Million Tokens: Local vs API

A side-by-side of self-hosted small-model rates against per-token API pricing, and why the two figures aren't directly comparable even when both are quoted per million tokens.

GPU Requirements and Cost for SLM Inference

Weight-size arithmetic for the distil labs student catalog alongside one measured serving benchmark (222 RPS and 7.6 GiB for a 4B model) and how a GPU-hour bill becomes a per-request price.

How Much Can You Save Replacing an LLM API?

Knowunity cut inference cost by roughly 68% on selected tasks while accuracy rose from 81% to 93%. Here's that measurement, the wider range published alongside it, and what puts you at either end.

What Does It Cost to Fine-Tune a Small Language Model?

The distil labs free tier covers two full training runs at no cost and credit packs are listed at $1,000 for 10 runs, plus the configuration parameters that actually determine what a run consumes.

What Does It Cost to Run a Small Language Model?

Published distil labs figures put a fine-tuned student at roughly $3 per million requests on one H100. Here's what that covers, how it was measured, and which assumptions move it.

Calculating the ROI of a Task-Specific Model

A five-step procedure for turning a task-specific model into a break-even volume, using real CLI commands and a free evaluation gate before you commit any budget.

When Does Self-Hosting Beat an API?

Five criteria that decide whether a dedicated GPU is cheaper than per-token billing (utilisation, task shape, latency budget, data residency, and team capacity), with the threshold for each.

Hidden Costs of Running Your Own Models

The line items that never appear in a per-token comparison: idle GPU time, serving expertise, monitoring, retraining cadence, and the security work that self-hosting moves onto your side of the ledger.

Latency as a Cost

Treating response time as a line item rather than a quality metric, using measured brain-stage latencies from a voice assistant where a 0.6B student answered in ~40ms against a ~700ms cloud median.

The 10x Inference Tax

The inference tax is the premium you pay for running a general-purpose frontier model on a task a specialised small model handles equally well. Here's where the multiple comes from.