---
title: 'Token budget'
description: 'An explicit allocation or ceiling for model-token consumption across a named scope, with rules for warning, stopping, and exceptions.'
canonical_url: 'https://darkfactory.dev/glossary/token-budget'
markdown_url: 'https://darkfactory.dev/glossary/token-budget.md'
collection: glossary
date_published: '2026-08-05T00:00:00-04:00'
date_modified: '2026-08-26T00:00:00-04:00'
---

# Token budget


## Definition

A **token budget** is an explicit allocation or ceiling for model-token consumption across a stated boundary, such as a request, run, accepted task, user, workflow, team, or billing period. It converts unconstrained inference into a resource the system can plan, attribute, and stop.

A useful budget says which input, output, reasoning, cache-read, cache-write, retry, and subagent usage counts. It also defines warning thresholds, reservation rules, what happens near exhaustion, who may grant an exception, and how the run exits safely. Without those behaviors, the number is an after-the-fact report rather than a control.

## Set budgets around decisions

The right boundary depends on the question. Per-request budgets protect latency and cost. Per-run budgets prevent loops from expanding without limit. Per-accepted-task budgets expose failed attempts and retries. Team or monthly budgets support financial planning but can hide inefficient individual workflows.

A fixed ceiling is not always the best policy. A staged budget can release more inference when early evidence shows that the task is difficult and valuable, then stop when added tokens no longer change the result enough to justify their cost.

## Distinguish it from nearby terms

Maximum output tokens cap one response. A context window limits what a model can consider at once. A rate limit controls throughput over time. A financial budget caps money. Provider prices and caching make the conversion between tokens and dollars model-specific, so none of these controls is a substitute for the others.

## Check your understanding

An agent has used 90 percent of its budget and has not changed strategy after three failed tests. Should the system buy another 100,000 tokens? Only if the run contract permits it and new evidence justifies a different plan. Otherwise stop, preserve state, and escalate with the failure record.

## Also called

inference budget

## Related terms

- [Token](https://darkfactory.dev/glossary/token)
- [Token burn](https://darkfactory.dev/glossary/token-burn)
- [Token efficiency](https://darkfactory.dev/glossary/token-efficiency)
- [Rate limit](https://darkfactory.dev/glossary/rate-limit)
- [Test-time compute](https://darkfactory.dev/glossary/test-time-compute)
- [Human attention budget](https://darkfactory.dev/glossary/human-attention-budget)
- [Run contract](https://darkfactory.dev/glossary/run-contract)

## Related factory areas

- [Model selection, routing & budgets](https://darkfactory.dev/factory/model-routing-budgets)
- [Economics, capacity & factory FinOps](https://darkfactory.dev/factory/economics-finops)

## Evidence and further reading

- [Token Budgets](https://arxiv.org/abs/2606.04056)
- [The Harness Effect: How Orchestration Design Sets the Token Economics of Enterprise Agentic AI](https://arxiv.org/abs/2607.06906)
- [Tokens That Teach, Produce, and Spin](https://nufargaspar.com/writing/tokens-teach-produce-spin)
