Context Re-reads Dwarf Other AI Agent Inference Costs

Representing the largest component of agent inference at 62%, input tokens from context re-reads significantly overshadow output token generation, which is often 10-50x smaller in volume despite higher per-token rates.

The top 3

  1. Context Re-reads Dominate 60-80% of Agent Costs: Input tokens, primarily driven by the continuous re-transmission of context window content and tool descriptions, account for 60-80% of total AI agent inference expenses.
  2. Quadratic Cost Growth from Repeated Context: AI agents re-send the entire conversation history and accumulated tool outputs with nearly every step, causing tokens from earlier interactions to be re-processed and billed repeatedly, leading to a quadratic, not linear, increase in costs.
  3. Tool Schemas and System Prompts: Major Re-read Expense: Beyond conversational history, the constant re-sending of large system prompts and extensive tool schemas with every agent turn significantly contributes to context re-read costs; in one instance, tool schemas alone accounted for 11,000 tokens of a 14,000-token base.

Sources

Open the full topic