When building AI-powered products, especially those that incorporate large language models (LLMs), one of the foundational product management challenges is understanding unit economics: how much does it cost to complete a single task? This calculation feeds into critical decisions around pricing, scalability, and feature roadmaps. As a Product Manager turned AI product lead, I’ve spent years building lightweight evaluation workflows—often starting in spreadsheets—before automating pipelines. In this post, I’ll share a structured approach to calculating cost per task for an LLM-based feature, enriched by lessons from companies like PayPal, H2O.ai, and tooling approaches like the PM Toolkit's calculators.
Understanding the Challenge: The Model Is Not the Product
Before diving into formulae and costs, it’s important to set expectations: the LLM itself is not a product. It’s an API, a component, or a core technology layer. The product is what users do with it — their workflow, the tasks that get completed, and the problems the AI augments or solves.
Why does this matter? Because calculating how much an LLM feature costs on a per-task basis requires you to:
- Define the “task” clearly Capture the model’s actual usage footprint per task Understand failure modes and retries or fallback mechanisms Account for automation layers versus human-in-the-loop processes
PayPal’s recent forays into AI-assisted fraud detection offer a helpful analogy: the model’s inference cost is just one part of the operational cost, which must align with the value of a successfully completed fraud check or transaction authorization.

Step 1: Define a Completed Task and Its Evaluation
Before you can calculate cost per task, define the task with precision. What does “done” look like? This should come from how users interact today — mapping current workflows before AI.
- Is a task a single model call, or one user action composed of multiple model calls? What are acceptable accuracy, latency, and failure thresholds for that task? How do you measure success? Is it binary (completed/failed) or graded (good/bad/corrected)?
Tools from PM Toolkit, such as the sample size calculator, can help design your evaluation strategy by estimating how many interactions to log for statistically significant insights. Spreadsheets remain invaluable in this early phase to create lightweight evaluations before full automation.
For example, H2O.ai uses rigorous evaluation suites to measure model outputs on specific business use cases — generating reports for their customers that balance model capabilities with expected error types. You'll want to replicate this rigor in your LLM feature's eval framework.
Step 2: Understand Task-Dependent Model Behavior and Failure Modes
LLMs differ widely in their behavior depending on task type. Generating a creative summary differs operationally and economically from extracting structured data, or answering factual questions.
Consider the following failure modes that can affect cost:
- Hallucination: Model generates plausible but incorrect results, leading to user corrections or retries. Latency spikes: Slow responses increase time-to-task-completion and human wait times. Partial outputs: Task may require multiple model calls to complete. Error cascades: Downstream automation may propagate errors or trigger fallbacks.
Each failure mode impacts your effective “tokens times calls” consumed per completed task, increasing the underlying cost.
Step 3: Calculate Tokens Times Calls (API Usage) per Task
Most LLM provider pricing is based on tokens processed (input + output), https://pmtoolkit.ai/learn/ai-modern-pm/ai-literacy-for-pms multiplied by calls made per task. To do this calculation:
Metric Description Example Avg Input Tokens Number of tokens sent to the model per call 500 tokens Avg Output Tokens Number of tokens received from the model per call 200 tokens Calls per Task How many model calls does the task require? 3 calls Retry Rate Percent of calls requiring a retry due to failure or bad output 10%From these, calculate the tokens per task:
Tokens per call = Input tokens + Output tokens = 500 + 200 = 700 tokens Effective calls per task = Calls per task × (1 + Retry rate) = 3 × 1.1 = 3.3 calls Tokens per task = Tokens per call × Effective calls = 700 × 3.3 = 2,310 tokensMultiply tokens per task by your LLM provider’s per-token cost to get a raw API cost per completed task.
Step 4: Put Cost per Task in the Context of Unit Economics
Raw API costs tell only part of the story. Use relevant PM Toolkit calculators — especially ROI, business case, and unit economics models — to include:
- Infrastructure costs (hosting, databases, etc.) Human-in-the-loop costs: operators, reviewers, or support involved per task Cost of failed tasks (retries, fallout management) Revenue or value per completed task
For example, PayPal integrates multiple AI-powered model layers combined with manual review to maintain near-zero fraud. Their cost per fraud check considers software, cloud fees, human review, and associated fraud losses.
Table: Sample Unit Economics for LLM Task
Cost Element Cost per Task (USD) Notes LLM API Cost $0.07 Based on tokens × calls × price per token Infrastructure $0.02 Database, web server, etc. Human Review (if any) $0.05 Partial manual oversight Cost of Task Failures $0.01 Retries and error handling Total Cost per Completed Task $0.15Step 5: Map Cost per Task to Automation, Augmentation, or Innovation Patterns
Consider how your LLM augmentation fits within larger product patterns:
- Automation: The AI replaces human labor 1:1, ideally reducing cost and improving speed. Augmentation: The AI assists humans, improving quality or throughput but not fully replacing them. Innovation: The AI creates entirely new workflows or value propositions, possibly with higher cost but transformative impact.
For instance, H2O.ai often targets automation, reducing manual data science tasks. In contrast, PayPal’s AI-assisted workflows often augment fraud analysts with smarter insights rather than replace them.
Understanding which bucket your feature falls into drives your ship/no-ship thresholds and ROI calculations. Use PM Toolkit’s impact/effort and RICE scoring systems to prioritize AI features with sustainable unit economics and clear user impact.

Final Thoughts and Best Practices
Always define your eval before release: Metrics and acceptance criteria guide model tuning and failure handling. Use lightweight, replicable evals in spreadsheets early: This practice prevents “model wars” that ignore workflow context. Beware hand-wavy “accuracy improved” claims: Quantify with your task-specific eval data. Include a kill switch in your deployment: Systems should gracefully fall back or disable to control costs and risk. Integrate cost per task into your broader PMF and LTV/CAC analysis: PM Toolkit calculators like LTV, CAC, and MRR/ARR help connect AI costs to business impact.Calculating cost per task for an LLM-powered feature is not just about multiplying tokens times calls. It's a product question wrapped in technical, operational, and business context. By following a structured approach rooted in real user workflows, evaluating rigorously, and embedding unit economics into your product planning, you set yourself up to ship AI features that deliver sustainable value — a lesson embraced by innovators like PM Toolkit, PayPal, and H2O.ai.