---
title: What is Runaway inference spend
source_page: https://www.sardine.ai/learn/runaway-inference-spend
canonical: https://www.sardine.ai/learn/runaway-inference-spend
format: text/markdown
---

**Quick links:** [Human page](https://www.sardine.ai/learn/runaway-inference-spend) · [Home](https://www.sardine.ai) · [Customers](https://www.sardine.ai/customers) · [Blog](https://www.sardine.ai/blog) · [Demo](https://www.sardine.ai/demo)

---

# What is Runaway inference spend

**Read time:** 4

Runaway inference spend is unexpected, fast-growing AI compute cost caused by loops, retries, bursts, or abuse. It can come from a bug, an agent, or an attacker, and the first sign is often the bill.
What is runaway inference spend?
Inference is the work a model does when you send it a prompt. Each call costs money, and the cost depends on how much text goes in and out and which model is used. Runaway inference spend is what happens when that cost shoots up far beyond what anyone planned.
The causes split into two groups. Some are accidents: an agent stuck in a loop, a retry setting that multiplies requests, a test script left running, or a change that moves traffic to a pricier model. Others are abuse: a stolen key, a relay using your account, or a farm burning free credits.
From the billing screen, both look the same. That is why the first job is to separate waste from fraud, since the fixes differ. Waste needs engineering changes. Fraud needs account, key, and identity controls.
Common causes
Who is affected?
What it looks like in practice
A team's costs double over a weekend with no new customers. Investigation shows a batch of requests where each failure triggered three retries, and each retry carried the full conversation history.
In another case, costs rise just as sharply, but the traffic comes from places the team has never served. A leaked key is being used by an outside relay. The bills look identical, and only the traffic pattern tells them apart.
Why it matters to operators
Inference cost scales with usage, and usage can scale in seconds. Without limits, a small mistake or a single stolen key can create a large bill within hours. Traditional billing checks that run monthly will not catch it.
The controls are the same as for any metered resource: budgets, spend alerts, per-key limits, and anomaly detection on usage patterns. Add an investigation step that asks one question early: is this our own traffic, or someone else's?
What to watch for
Cost growth without user growth. Spend rising while customers and legitimate traffic stay flat.
Model mix changes. Sudden shifts to expensive models.
Token bursts. Very large requests or rapid growth in context length.
High concurrency. Parallel request levels beyond normal use.
New origins. Traffic from networks or regions new to the account.
Quick questions
### Is runaway spend always fraud?
No. Many cases are engineering mistakes. The first step is to determine which it is.
### What is retry amplification?
When failed calls are retried automatically in ways that multiply total load and cost.
### What are the basic safeguards?
Spend limits, alerts, per-key budgets, and rate limits tied to each customer or project.
### How quickly should alerts fire?
As fast as spend can grow. Daily review is too slow for usage that can multiply in an hour.
### Who should own the response?
A shared owner across engineering, finance, and fraud works best, with a clear path for each cause.
### How do you stop abuse without breaking real use?
Use limits that grow with trust, and review high usage in context before blocking.
