Canonical: https://weaveos.com/glossary/token-budget

[Home](https://weaveos.com/)/[Glossary](https://weaveos.com/glossary)/[Token costs and AI ROI](https://weaveos.com/glossary/category/token-costs-ai-roi)/Token budget

[Token costs and AI ROI](https://weaveos.com/glossary/category/token-costs-ai-roi)

# Token budget

Also known as LLM token budget, AI token budget

By WeavePublished September 10, 20261 min read

## Definition

A token budget is a configured limit or allowance for the tokens an AI system may process or generate during a request, task, or accounting period. The exact scope can refer to output length, context capacity, spending, or a workflow's total usage.

On this page

1. [Definition](https://weaveos.com/glossary/token-budget#definition)
2. [Clarify what the budget covers](https://weaveos.com/glossary/token-budget#article-clarify-what-the-budget-covers)
3. [Set a budget around a task](https://weaveos.com/glossary/token-budget#article-set-a-budget-around-a-task)
4. [Make the policy visible](https://weaveos.com/glossary/token-budget#article-make-the-policy-visible)
5. [How this relates to Weave](https://weaveos.com/glossary/token-budget#weave)
6. [Sources](https://weaveos.com/glossary/token-budget#sources)
7. [Related terms](https://weaveos.com/glossary/token-budget#related)

## Clarify what the budget covers

An output budget limits generated tokens. A context budget limits the material a model can consider. A spend budget limits cost over time. An agent task budget may include several model calls and tool steps.

These limits can interact. A request with a long context leaves less room for output when both share a context window. A short per-call limit can force an agent into more calls to complete one task.

## Set a budget around a task

Suppose an illustrative coding agent has enough output allowance to produce a patch but not enough to run its verification loop. The request may stop before the useful outcome. Increasing the allowance could help, or a better prompt and smaller tool results could reduce the required output.

Track completions, truncations, retries, latency, and cost. Do not judge a budget by token savings alone.

## Make the policy visible

Document whether the budget applies to one request, one task, one user, or an organization. Include model and provider rules, since token accounting can differ. Revisit the budget when task mix, context size, or model behavior changes.

## How this relates to Weave

Weave's Token Intelligence helps teams inspect token usage and cost by tool, user, or workflow. Use budgets as guardrails and compare them with completed outcomes. A lower token allowance can reduce spending while increasing retries or incomplete tasks.

[Explore Token intelligence](https://weaveos.com/products/token-intelligence)

## Sources and further reading

1. [Context windows, Claude Platform Docs](https://platform.claude.com/docs/en/build-with-claude/context-windows)

## Related terms

### [Context window](https://weaveos.com/glossary/context-window)

[What a language model's context window contains, how token limits affect requests, and why more context does not guarantee better answers.](https://weaveos.com/glossary/context-window)

### [Tokenization](https://weaveos.com/glossary/tokenization)

[What tokenization does in a language model, why token counts vary by model, and how tokenization affects context and cost.](https://weaveos.com/glossary/tokenization)

### [Cost per completed task](https://weaveos.com/glossary/cost-per-completed-task)

[Calculate cost per completed AI task, include failed attempts, and compare models using a consistent definition of success.](https://weaveos.com/glossary/cost-per-completed-task)

### [Model routing](https://weaveos.com/glossary/model-routing)

[How model routing selects an AI model for each request, the tradeoffs between cost and quality, and where Weave Router fits into agent workflows.](https://weaveos.com/glossary/model-routing)
