Voice TTS & COGS
LLM Context Growth & Prompt Caching on Long Calls
Why unpruned 20-turn transcripts triple LLM cost per minute and push TTFT past 400 ms.
4,000-token cap · -68% LLM spend on 10m calls
The Quadratic Token Trap on Multi-Turn Calls
Every conversational turn re-sends the system prompt plus all prior turns. Without sliding-window summarization or provider prompt caching, Turn 18 costs 6x more than Turn 1 and slows LLM TTFT.
Sliding Window + Rolling Summary State
Pinning a static 800-token system prompt (cache-eligible) and retaining only the last 6 raw turns plus a 150-token structured JSON summary caps per-minute LLM spend under $0.0045/min.
Measured Pipeline Thresholds
| Unbounded 20-Turn History | ~38,000 input tokens/call | $0.019/min + rising TTFT |
| 6-Turn Window + Summary | ~11,000 input tokens/call | $0.0045/min + flat 180 ms TTFT |
| Prefix Prompt Cache Hit | 50-75% input discount | Consistent sub-200 ms TTFT |