Blog

Thoughtbubble Blog

How to Estimate the True Cost Per Task of an AI Feature

A three-step method for estimating per-task AI costs, from tokens through retries to human review, compared against task value to decide whether to build.

Most AI features do not fail because the model is weak. They fail because the unit economics are weak: the demo impresses, the team ships, and the cost per task quietly consumes the value the feature was supposed to create. Before you approve the build, learn how to calculate AI cost per task: it is one page of arithmetic that weighs what a task costs against what it returns. Every number in this article is a hypothetical illustration, not a sourced benchmark, so substitute your own figures at each step.

Why per-task costs sink AI features

A small product team at a whiteboard covered only in simple hand-drawn arithmetic, at a morning stand-up in a sunlit office.

Capability demos hide unit economics. A feature that works once in a controlled demo scales to thousands of daily tasks, and every task carries the same repeated costs: model calls, failed calls that must be retried, and human checks on the output. Approvals based on the demo alone miss all three. The method below makes them explicit. Estimate the token cost of one task, multiply it by retry and fallback behavior, add the cost of human review, then set that total against the value the task delivers. If the ratio is ugly, you know before engineering begins.

Step 1: Compute the token cost per task

A person's hands resting beside a closed plain notebook and coffee cup at a wooden desk in warm evening light.

Start with a representative task and estimate the tokens that flow in and out. A hypothetical support-reply task might send about 1,500 input tokens (ticket history, instructions, context) and receive about 400 output tokens. Cost then follows from those volumes and the provider's published input and output rates, which are usually quoted per million tokens. If the input rate is a and the output rate is b per million tokens, one task costs 0.0015a + 0.0004b dollars. Add any fixed per-request overhead your provider charges. When you run the numbers, use the provider's current published rates rather than figures you remember.

Step 2: Add retries and fallbacks

A single task rarely maps to a single model call. Failed or malformed outputs trigger retries, validation loops re-call the model to fix errors, and fallback models take over when the primary model fails. Multiply your base token cost by the expected number of calls per task. The effective multiplier is one plus the retry share plus the fallback share, so failure traffic raises the per-task price in direct proportion to how often it happens. A modest failure tail can quietly add a fifth or more to the base token cost, which is why the share you measure matters more than the rate you pay. Do not assume these rates. Measure the real retry and fallback rates from your logs once a prototype is running, because your prompt and use case may behave very differently from a generic example.

Step 3: Price the human review

Two colleagues at a kitchen-table review session, one reviewing output on a laptop while the other takes notes in a blank notebook.

Most AI features route some tasks to a person, and this is the most commonly underestimated component. Work out what one review costs the reviewer, then apportion it across all tasks by the share that gets reviewed. For an illustration, choose your own review share, minutes per reviewed task and reviewer rate: the cost per reviewed task is the minutes converted to hours times the hourly rate, and the per-task addition is that figure times the share routed to review. Review rates also drop as confidence grows, so track them over time rather than fixing them once.

The other side of the ledger: task value

The value side of the ledger can be just as decisive as the cost side. Value per task can come from the human work displaced (minutes saved times loaded labor cost), from willingness to pay, or from strategic value that resists a clean number. For a hypothetical support reply, pick the minutes saved per ticket and the loaded labor cost: minutes converted to hours, times that cost, gives the value per ticket. This half rests entirely on assumptions you must validate with your own data: real time savings, real ticket volumes and real wage figures. An assumption that flatters the feature will flatter the ratio too.

The worked example, end to end

Assemble the pieces. Take the token cost per task, apply the retry multiplier, add the per-task review cost, and divide the total by the value per task to get the cost-to-value ratio. Every figure in that chain is one you supply: your token counts, your provider's dated rates, your measured retry rates, your review share and rate, and your own value estimate. The ratio, not anyone else's example values, is the decision output.

Thresholds: when the math says don't build it

Two rules of thumb, offered as unsourced heuristics rather than standards. First, if cost per task approaches or exceeds roughly half the task's value, the feature needs redesign before it needs engineering. Second, if retries and human review more than double your token cost, the design is leaking money through failure and oversight, and that is a signal in itself. Both thresholds are judgment calls, so adjust them to your margins. The useful levers are cheaper models for routine tasks, smaller prompts that carry less context, and a lower review rate earned through better validation and fewer fallbacks.

Run the numbers before the build

The method ends the same way good validation does: prototype the smallest version, then measure real token counts, real retry rates and real review rates instead of assuming them. That is the same problem-first discipline Thoughtbubble applies when teams bring AI ideas in for prototyping and consulting. If the measured ratio holds up, build. If it does not, you have spent a fraction of the engineering budget learning it. See also the riskiest assumption framework and testing an AI workflow before building the full app.

Explore the prototyping service.