Top Driver: Agent Loops Multiply LLM Token Costs by 30x
Agentic AI's iterative nature means each step in a loop can make multiple Large Language Model (LLM) calls, repeatedly sending full context and consuming 5 to 30 times more tokens per task than a single chatbot interaction, significantly escalating operational costs despite falling token prices.
The top 3
- Context Re-reading: The #1 Cost Driver: Agent loops re-send the entire conversation history, including prior instructions and tool outputs, with every LLM call, leading to a compounding O(N²) token cost growth for longer tasks. This re-sending of context is the largest category where loop tokens go.
- Iteration & Retries: The Agent Tax Multiplier: Agentic workflows involve multiple steps like planning, tool calls, reflection, and self-correction, each requiring new LLM interactions. Failed attempts or ambiguous outputs trigger costly retry loops, making a seemingly trivial API call approximately 50 times more expensive—known as the 'Agent Tax'.
- Input Tokens: 99% of Agent Loop Costs: The vast majority of token costs in agentic AI—often exceeding 99% of trajectory volume—stem from input tokens (context re-reading, system prompts, instructions) rather than the generated output tokens. This input dominance drives agentic tasks to consume up to 1000x more tokens than simpler code reasoning or chat interactions.
Sources
Open the full topic