The per-request cost formula from Appendix B of Production LLM Architecture — see exactly where your API bill comes from.
max_tokens cuts cost here faster than trimming input.
Same request, held constant — only the cached-input share changes. The book's steady-state target is 70%.
Bars show monthly cost at each cache hit rate, using your current input/output/volume settings.
This is Appendix B. The book has 61 more tables like this — plus the filtering, caching, and routing techniques that change these numbers.
Get notified when it's live →