Runaway AI costs: where the money goes

Why does an AI feature cost more than you planned, and what can you do about it?

In production · about 5 minutes

Every call to an AI costs money. Here are two quiet ways costs run away: an agent takes more steps than the job needs, or your message is built so the AI can't reuse what it has already read.

Picture: two messages with the same lines; with the time on top nothing is reused and 10 calls cost 7.2 times as much; with the time at the bottom the rest is reused and 10 calls cost the same as before