Fixed System Prompt Cost Dwarfs Actual Output

The tokens consumed by re-sending system prompts and other context overhead often far outweigh the actual output. For instance, in AI coding agents, the code generated is typically only 5-15% of total tokens, with the majority spent on context like system prompts and repository maps.

The top 3

  1. Agentic AI's Input Cost: 154x More Than Output: Agentic coding tasks show an average input-to-output token ratio of 154:1, with 62% of agent bills stemming from re-sent context, significantly dwarfing the cost of actual generated responses.
  2. Top 3 System Prompt Cost Drivers Revealed: The largest contributors to high fixed system prompt costs are excessively long initial prompts (e.g., OpenClaw's ~9,600 tokens), their repeated re-transmission in every step of multi-turn agent tasks, and the accumulation of conversation history and tool outputs within the context window.
  3. Best 3 Ways to Cut Agent Prompt Costs: To significantly reduce AI agent costs, implement prompt caching for up to 90% savings on repeated contexts, leverage Retrieval-Augmented Generation (RAG) to cut document token usage by 60-80%, and perform aggressive prompt optimization to reduce system prompt length by as much as 75%.

Open the full topic