Numocalculates what you write in words

Home / Methods / AI cost / Agent loop cost

AI cost

Agent loop cost

When the AI works not in one request but in a loop: reads, acts, looks at the result, acts again. This is exactly where the cost creeps up unnoticed.

Calculate in Numo

Or ask in your own words (needs an AI key)

What you need

What it calculates

Examples

A 20-step agent, 8,000 tokens to start, +1,500 a step

input tokens sent across all steps together445,000 tokens
tokens the model writes across all steps6,000 tokens
what one whole task costs1.0146
what it would cost if the conversation never grew0.57

Calculate this example →

A 50-step agent, 20,000 tokens to start, +3,000 a step, no cache, 200 tasks a day

input tokens sent across all steps together4,675,000 tokens
tokens the model writes across all steps40,000 tokens
what one whole task costs6.2438
what it would cost if the conversation never grew1.65
what it comes to per day1,248.75

Calculate this example →

Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.

Careful

The main trap of an agent: at every step the whole previous conversation is sent again. So cost grows not linearly but quadratically with the number of steps. The calculation assumes the context is never trimmed — if the agent compacts it, the real sum will be lower.

Typical mistakes

More in this family «AI cost»