Skip to content
AgenticAIWiki

← Chapter 71. Cost at scale

Shrinking the monthly bill

Prompt cachingstable prefixesModel routingeasy work to smallBatchingnobody waitingShorter promptsand outputsCost by feature and model (credits)Support chat (large)4,000Ticket tagging (large)2,500Nightly reports (large)2,000Search answers (small)500Monthly total: 9,000 credits (illustrative)

Swipe to change step

Step 1 of 7. Here is a monthly bill grouped by feature and model, built from traces. Start with the biggest line. Never guess where the money goes. Prompt caching (stable prefixes). Model routing (easy work to small). Batching (nobody waiting). Shorter prompts (and outputs).

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.