How to Avoid Wasting LLM API Costs
Five habits for keeping AI pair-programming sessions focused, reviewable, and cost-aware.
Topics: Models, Tools & Evaluation ยท AI-Assisted Engineering
How to Avoid Wasting LLM API Costs
I learned an expensive lesson while building an access-control project: it is easy to let an AI session keep running after the work has stopped being useful. The tool is eager to continue. That does not mean it still has the right context, plan, or direction.
My rule is simple: do not blindly hit continue. Pay attention to what the model just attempted, what remains unresolved, and whether the next request needs a fresh context instead of another long turn.
Five habits keep the work disciplined:
- Stop and restate the goal when the session starts to drift.
- Break a large task into reviewable steps instead of asking the model to reason through everything at once.
- Check the output before spending more tokens on a bad direction.
- Use the right level of capability for the task, then reserve stronger review for work that deserves it.
- Treat spending as feedback. A large bill often means the human stopped steering the process.
AI pair programming is not passive consumption. The developer still needs to notice when the plan is weak, correct it, and decide when a result is good enough to keep.