LLM Token Cost & Prompt Caching Gross Margin Guide (2026)
Direct Answer
Naive single-turn estimates understate agent loop COGS by 4x to 11x because each tool-call turn re-sends growing conversation and retrieval context. Splitting static system instructions into cached prefixes and routing offline evals through 50% Batch queues typically lifts SaaS gross margin from below 45% back above 78%.
1. Multi-Turn Agent Token Compounding
When an autonomous workflow performs N tool steps with average context growth g tokens per turn on top of prefix P, total input tokens scale quadratically rather than linearly:
Total Input Tokens = N * P + g * (N * (N - 1)) / 2
Without explicit prefix caching, a 6-step coding or research agent carrying a 6,000-token system and tool schema prefix pays full input rate repeatedly across all 6 turns.
2. Prompt Caching Break-Even & Batch Routing
Cache write premiums (typically 1.25x base input) pay off whenever the same static prefix serves at least 2 turns within the TTL window, since cache reads drop input cost by 75% to 90%.
3. Interactive Per-Tenant Gross Margin Workbench
Simulate exact multi-turn agent loops, cache hit ratios, Batch API savings, and ARPU margin stress-tests across 8 model tiers inside TokenBurn FinOps.