Skip to content
All challenges
PerformanceIntermediate

Cost blowup after launch

Your AI feature launched 2 weeks ago. Costs were about $200/day in week 1. Today they are about $35,800/day. Traffic is up 3x but cost is up about 178x. Find the leak.

How to find where a cost increase comes from

A total is the product of several factors, so find the factors that moved and check they explain the whole.

Symptoms
  • Requests up 3x, cost up about 178x
  • P95 latency up from 1.2s to 4.8s
  • Most cost on the frontier model, not the small model
  • Cache hit rate dropped from 60% to 8%
Evidence

Cost breakdown

Week 1: ~$200/day — ~650,000 requests/day, model calls 80% small (gpt-4o-mini), 20% frontier (gpt-4o)
Week 2: ~$35,800/day — ~1,950,000 requests/day, model calls 12% small, 88% frontier
Prices as of 26 October 2026: gpt-4o-mini $0.15 / $0.60, gpt-4o $2.50 / $10 per million input / output tokens (check /pricing)

Recent changes

- Removed caching layer 'to simplify'
- Bumped default model from mini to frontier
- Added conversation history (full) to every prompt

Average prompt size

Week 1: 450 input + 200 output tokens
Week 2: 8,200 input (history included) + 200 output tokens
Tasks
  • 1Identify all cost drivers
  • 2Propose a recovery plan
  • 3Design cost guardrails going forward