Skip to content
Guide · Cost and pricing

How Inference Choices Change AI Cost

Batching, latency targets, serverless or dedicated hosting, open-weight models, serving engines and quantisation: what each does to the AI bill, and when self-hosting pays.

Published Updated 12 min read

Topic hub: AI TCO framework

In short: once a model is chosen, cost per token is set mainly by how full the hardware is kept. Each serving choice, batching, latency targets, serverless or dedicated hosting, quantisation, either raises the tokens a GPU-hour produces or changes who pays for idle capacity.

Two teams can run the same open model, on the same hardware, for the same workload, and one can pay several times more per token than the other. The difference is not the model. It is a set of serving decisions that are usually made by engineers, rarely written down, and almost never reviewed by the person who owns the budget.

This guide explains those decisions in budget terms. It does not ask you to configure anything. It aims to help you recognise which choices move cost, ask the right questions of your team or supplier, and judge when self-hosting is worth the effort.

The one number behind all of this

Every self-hosted or dedicated deployment comes down to one ratio:

Cost per million tokens = cost of the hardware for the period
                        ÷ millions of tokens actually served in that period

The numerator is mostly fixed: a GPU costs the same per hour whether it is busy or idle. The denominator depends on two things: how many tokens the setup can produce per hour, and how much of that capacity is actually used, its utilisation.

That is why the choices in this guide matter. Some raise capacity (batching, serving engines, quantisation). Some change utilisation, or move the risk of low utilisation to someone else (serverless versus dedicated). Under a pay-per-token API, the provider manages this ratio and builds it into the price. Under a dedicated endpoint, you manage it, and your finance team carries the result.

Throughput versus latency

A GPU serving a language model is most efficient when it handles many requests at once. Modern servers group requests in flight into a batch and process them together, so the cost of each pass through the model is shared. Larger batches mean more tokens per GPU-hour and a lower cost per token.

The trade-off is speed for each user. In a larger batch, each request waits a little longer for its first word and receives later words a little more slowly. Engineers describe this as latency (how long one person waits) against throughput (how much total work the hardware does).

The useful question is how fast each workload actually needs to be:

Workload patternWhat it needsCost implication
Live chat or coding assistantFast first response and steady streamingSmaller batches, higher cost per token
Agent steps a person is not watchingReasonable completion timeModerate batches; often over-specified as interactive
Overnight document processing, classification, evaluationCompletion within hoursLarge batches, lowest cost per token

Pay-per-token providers price this trade-off directly. Several major API providers, including OpenAI and Anthropic, offer batch processing at about half the standard rate for jobs returned within 24 hours. If a workload can wait and is not using a batch option, it is likely paying a speed premium it does not need.

Serverless versus dedicated

Serverless means paying per token on shared infrastructure. You pay nothing when idle, the provider carries the utilisation risk and prices for it, and you accept their catalogue, rate limits and latency on a busy day.

Dedicated means renting specific GPUs by the hour. You pay for every hour the endpoint is up, whether it serves one request or a million. In return you can run any model, including a fine-tuned one, with predictable performance.

ServerlessDedicated
Billing unitTokensGPU-hours
Idle costNoneFull
Who carries utilisation riskProviderYou
Model choiceProvider's catalogueAnything you can run
PerformanceShared, can vary at peakReserved, predictable
Best fitVariable, uncertain or low volumeHigh, steady volume or custom models

There are positions in between: endpoints that scale to zero at the cost of a reload delay, and committed capacity at a lower hourly rate. Rent, reserve or own covers those.

The common, avoidable mistake is to move to dedicated hosting for a predicted volume, then run the endpoint half empty because demand arrives later, in bursts, or not at all. Before committing, ask what utilisation the business case assumes and how it will be measured.

Open-weight models

An open-weight model is one whose trained weights are published, so anyone can host it: Meta's Llama, Alibaba's Qwen, DeepSeek's models and Mistral's open releases are the main families in enterprise use. Three things change.

  1. No model-maker margin on each token. You pay for hosting, not for the model.
  2. Hosts compete on price for the same model. One analysis found Llama 3.3 70B listed at $0.10 to $0.90 per million input tokens across about twenty hosts; The Real Cost of AI Inference sets out that figure and its caveats.
  3. The model does not change under you. A pinned open model behaves the same until you choose to upgrade, which helps with evaluation and audit.

The obligations do not appear on an invoice:

  • Evaluation. An open model is cheaper only if it clears the quality floor. Compare on cost per successful outcome, as in The Economics of Model Selection.
  • Licence review. "Open" varies. Alibaba released its dense Qwen3 models under Apache 2.0, and DeepSeek released R1 under the MIT licence. Llama uses Meta's own community licence, which requires organisations whose products had more than 700 million monthly active users at a version's release to request a separate licence, and carries an acceptable use policy. Mistral publishes some models under Apache 2.0 and others under commercial terms. Review the specific model and version.
  • Provenance and upgrades. Some organisations restrict models by origin or jurisdiction, and no one upgrades a self-hosted model for you.

Forrester expects open-weight models to carry half of enterprise AI tokens in 2027 but only 5% of enterprise AI spend, as reported by The Register on 21 October 2026. If that holds, token share is not spend share.

Serving engines

A serving engine is the software that loads a model onto GPUs and decides how requests are batched and memory is used. The same model on the same GPUs can produce materially different output per hour depending on the engine and its tuning. The authors of vLLM, an open-source engine from UC Berkeley research, reported throughput two to four times higher than the leading systems of the time at the same latency (Kwon et al., SOSP 2023). NVIDIA's TensorRT-LLM and SGLang compete on similar techniques, and benchmarks move with each release.

A budget owner does not need to choose an engine. The right expectation is that the team has measured the tokens per GPU-hour its setup produces on the real workload, and has tested at least one alternative. On a dedicated endpoint, a setup with half the capacity of a tuned one doubles the cost per token.

Quantisation

Quantisation stores a model's weights at lower precision, for example 8 or 4 bits per weight instead of 16, so the model needs fewer GPUs. A 70-billion-parameter model at 16 bits needs about 140 GB for its weights alone, more than one 80 GB data-centre GPU. At 8 bits it needs about 70 GB, and at 4 bits about 35 GB.

A large study of the Llama 3.1 family, covering more than 500,000 evaluations, found 8-bit floating point (FP8) quantisation effectively lossless across model sizes, 8-bit integer quantisation with a 1 to 3% accuracy drop when well tuned, and 4-bit weight-only quantisation competitive with 8-bit integer formats (Kurtic et al., 2024, published at ACL 2025).

Many serverless hosts already serve quantised versions of open models, which is part of why their prices are low. Ask which precision a provider serves: two hosts listing the same model may not be serving the same thing.

When self-hosting pays off

Self-hosting here means running an open-weight model on dedicated GPUs you rent or own, rather than paying a provider per token. Its cost per token is set by the ratio at the start of this guide, plus the cost of the people who run it.

Two falling curves of cost per million tokens against utilisation for a modest and a well-tuned self-hosted setup, against reference lines for a serverless open model at 0.60 pounds and a proprietary model at 2.00
The illustrative table above as curves. Compute only; staff cost comes on top.
Two falling curves of cost per million tokens against utilisation for a modest and a well-tuned self-hosted setup, against reference lines for a serverless open model at 0.60 pounds and a proprietary model at 2.00

The illustrative table above as curves. Compute only; staff cost comes on top.

To run the same comparison with your own quotes and measurements, use the self-hosting break-even calculator.

The figures are invented to show the shape of the decision. Self-hosting can be much cheaper or much dearer than serverless, and the swing comes from utilisation and tuning, not from the hourly GPU rate. GPU rental prices vary several-fold between providers, so check the hourly figure against current quotes.

The pay-per-token side moves too. In October 2026 one provider launched a small proprietary model at $0.10 per million input tokens and $0.50 per million output tokens (Anthropic pricing). If a model of that size meets the quality bar, the volume at which self-hosting pays off rises sharply. One vendor's analysis puts the crossover for a 70B-class model at roughly 10 to 50 billion tokens a month of steady traffic and advises against self-hosting below about one billion, as discussed in The Real Cost of AI Inference.

Self-hosting tends to pay when most of these are true:

  • Volume is high and steady, so dedicated capacity can be kept busy across the day and the week, not only at peak.
  • Utilisation is measured from real traffic, not inferred from a forecast.
  • The model is not available on a serverless host, for example because it is fine-tuned on your own data.
  • Data, residency or sovereignty requirements rule out shared services.
  • Predictable latency is worth paying for, and shared rate limits have caused real problems.
  • The team can run it, including on-call support, security patching, model upgrades and capacity planning.

It tends not to pay when demand is spiky, early-stage or uncertain, when no one owns the platform, or when the main motive is a per-token comparison against a proprietary API that ignores the serverless open-model option.

Questions for your team or supplier

These questions can be asked without technical knowledge, and the answers reveal whether inference cost is being managed or simply incurred.

  1. What response time does each workload need, and which workloads could run in batch at a lower rate?
  2. Are we paying per token or per GPU-hour for each workload, and why that model?
  3. For dedicated endpoints, what was utilisation last month, measured from traffic rather than estimated?
  4. How many tokens per GPU-hour does our setup produce on the real workload, and when was that last tested against an alternative configuration?
  5. Which precision are we running, and was the quantised model tested against the workload's quality floor?
  6. Have we tested an open-weight model on a serverless host for this workload before considering self-hosting?
  7. Who has reviewed the model licence, for the specific version in use?
  8. What would it cost to switch host or model, and what lock-in are we accepting?

For FinOps and ITFM teams, questions 1, 3 and 4 become regular measures: cost per million tokens by endpoint, utilisation by endpoint, and tokens per GPU-hour. They sit alongside cost per inference in the AI Economics KPIs.

Sources and further reading

Related reading

One next step

Topics
  • Inference
  • AI cost
  • Unit economics
  • Model hosting
  • Open-weight models

This piece is part of the AI TCO framework hub, which brings together the site’s guides on AI cost and TCO.

By Ed Epstein, who works at IBM. The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. About and disclosure · Methodology