Next-Generation AI · 2 min read
Cost per attempted request can favor a system that cheaply fails. Cost per successful request puts the bill and the result in the same calculation.
Worked example
If one configuration spends 40 dollars and solves 50 of 100 requests, it costs 80 cents per success. A second spends 48 dollars and solves 80, or 60 cents per success. The second costs more per attempt and less per success on this workload.
How to apply it
Use total observed spend divided by total verified successes, with failures and retries in the numerator. Compare the same traffic mix, include latency constraints, and report uncertainty when a small sample drives the ratio.
Check your understanding
If half the successful requests took longer than the service deadline, recalculate the ratio using on-time successes if that is the service promise. Define success before comparing configurations.
Further reading
Chapters 11–12 of Next-Generation AI, Explained and Evaluated develop the method in more detail.
