MULTI-TURN FINOPS • QUADRATIC CONTEXT CURVE
AI Agent Loop & Tool-Call Burn Calculator
See why a 15-turn coding or research agent quietly burns 10x+ more tokens than a single prompt — and compare Naive Full-History vs. Prompt Caching vs. Sliding-Window Summarization turn by turn.
Naive Full History
$0/mo
-
With Prompt Caching
$0/mo
-
Sliding Window + Cache
$0/mo
-
Snowball Multiplier
1.0x
-
Agent Loop Parameters
Turn-by-Turn Cost Accumulation (Red: Naive · Green: Cached)
Frequently Asked Questions
Why do multi-turn AI agents cost dramatically more than single-turn chat?
Each agent turn re-sends the full growing history of prior assistant responses and tool outputs, causing input tokens to scale quadratically with turn count.
Recommended AI Engineering & Cloud FinOps Books
AI Engineering
Chip Huyen (O’Reilly) • Production architecture for foundation models, evaluation, RAG, and latency/cost budgets.
View on Amazon ↗
Cloud FinOps (2nd Ed.)
J.R. Storment & Mike Fuller (O’Reilly) • Collaborative cloud & AI unit-economics governance for engineering teams.
View on Amazon ↗
Building LLMs for Production
Louis-François Bouchard & Louie Peters • Practical prompting, caching, RAG, and cost-aware inference routing.
View on Amazon ↗
Editorial note: Curated technical books for AI engineers and FinOps teams. Amazon links include affiliate tag dopabrain-20 (no extra cost to you) and help keep TokenLedger 100% free and ad-free. Interested in sponsoring TokenLedger? Open a Sponsor / Partnership thread on GitHub ↗.