Your LLM bill doubled this month with no traffic increase. How do you investigate?
IntermediateScenarioLLM fundamentals
Answer
Break cost down by feature, model and token type from your logs or gateway. Typical causes are a longer system prompt, more retrieved chunks per request, a switch to a bigger model, retries looping on errors, or conversation history growing without trimming. Fix with caching, trimming history, smaller models for simple steps and per-feature budgets with alerts.