Every AI call is metered on tokens: what you send in (input) and what comes back (output). This sounds simple for a single chat message, but in agentic loops โ where the model plans, acts, observes, and repeats โ a large chunk of context often gets re-sent on every single turn, so a task that takes ten loop iterations can cost far more than ten times a single call, because each turn carries the accumulated history along with it.
Understanding this meter is the first step to controlling it: cost isn't just "how good is the model," it's "how much context does this workflow re-send, how often."