Apogor Notes

Measuring cost per task, not per token

· 4 min read

When we first estimated what our agents would cost, we multiplied an average prompt size by the price per token. The real bill was several times higher. The estimate was not wrong about tokens; it was wrong about what a task is.

A task is more than one call

A single finished task might include a planning step, a dozen tool calls, a retry after a timeout, a self-check and sometimes a full second attempt. A cheaper model that needs two attempts can cost more than a stronger one that finishes in one.

What we record for every run

The last field is the important one. Cost per accepted task is the number we compare when we change a prompt or a model.

Where the money actually went

Tokens are the unit you are billed in. Tasks are the unit you are paid for. Measure the second one.