What guardrail and moderation passes cost
Updated September 1, 2026 · first published September 1, 2026
A production LLM feature rarely makes one model call. It makes the call you designed, and then one or more calls you added later for safety: an input classifier, an output check, a policy judge, sometimes a second model grading the first. Each of those is inference, and inference is billed.
The multiplier is bigger than it looks
Count the passes honestly. Input moderation reads the full user input. Output moderation reads the full generated response. A policy or groundedness judge usually reads both, plus the retrieved context, plus a rubric — which makes the judge call larger than the call it is judging. Add a jailbreak classifier and a PII scan and a single user request has become five inference calls.
The costs are not equal. Dedicated moderation endpoints are cheap or free on some providers. A general-purpose model used as a judge is not: it is priced like any other call, and judging a long answer against a long rubric is a long call.
Where the spend actually accumulates
Three patterns dominate. Judging with a frontier model because it was easiest to reuse the same client — classification is the one task where a small model is genuinely sufficient, and this is often the single largest saving available. Checking on every turn of a long conversation, re-scanning history that was already cleared. And guardrails on internal traffic, where an evaluation harness or an internal tool inherits the full consumer-facing safety stack it does not need.
Budget it as a line, not a rounding error
The point is not to remove the checks. It is that a safety stack can be 30–50% of a feature's inference cost while appearing nowhere in the plan, because everyone counted the model that answers and nobody counted the models that check.
Tag guardrail calls separately in telemetry so the ratio is visible. Then use the cheapest model that holds the required accuracy, run checks on new content rather than whole histories, and decide per surface which checks a given traffic class actually requires.
Related
Frequently asked questions
How much do guardrails add to LLM cost?
It varies with the stack, but a feature with input moderation, output moderation and a frontier-model judge can spend 30 to 50 percent of its inference budget on checking rather than answering.
What is the cheapest guardrail mistake to fix?
Using a frontier model as the judge. Classification and policy checks are the one workload where a small, cheap model is usually sufficient, so switching the judge is often the single largest saving.
Should internal traffic get the same guardrails as production?
Usually not. Evaluation harnesses and internal tools often inherit the full consumer-facing safety stack by default, paying for checks that the traffic class does not require.
Related
Want this applied to your stack? Bring the provider bills, gateway logs, and top workflows; we will map the cost drivers and savings path. Book a free audit →
Just want live token cost tracking? Start free with Tidal Telemetry →