Brief IA

Hidden Costs of AI Agents: A Surprise for Businesses

🔬 Research·Tom Levy·

Hidden Costs of AI Agents: A Surprise for Businesses

Hidden Costs of AI Agents: A Surprise for Businesses
Key Takeaways
1Companies often underestimate the costs of AI agents, exceeding initial forecasts by three times.
2Token costs are visible, but retries and the use of tools amplify expenses.
3AI agent systems require complex evaluation, far beyond traditional ML models.
💡Why it mattersCompanies need to rethink their budgeting approach to incorporate the structural costs of AI agents, thereby avoiding unexpected financial overruns.
Le brief IA que lisent les pros

Le brief IA que les pros lisent chaque soir

Les 7 actus IA du jour, décryptées en 5 min. Gratuit.

Inclus dès l'inscription : notre sélection des meilleurs guides & comparatifs IA.

Choisis ton rythme

Gratuit · Pas de spam · Désabonnement en 1 clic

📄
Full Analysis

The Unexpected Costs of AI Agent Systems

Companies integrating AI agent systems into their operations often encounter budget surprises. The initial production bill frequently exceeds forecasts, sometimes reaching three times the estimates. This phenomenon is not due to a poor estimation of tokens usage, but rather a misunderstanding of what needs to be measured.

Each team has its own version of this scenario: projected expenses seemed manageable, but the final bill turns out to be much higher than expected. Adjustments to prompts and the search for ineffective prompts or overly broad context windows only allow for a marginal reduction in costs, typically in the range of 10 to 15%. The structural gap persists despite these efforts.

The cost of tokens is often the most visible, but it represents only a small part of the total cost of an agent system. Major expenses arise from retries, the use of third-party tools, latency, and fallback solutions. These elements constitute the operational cost of artificial intelligence, far beyond the mere invocation cost.

The cost of an agent system is not simply the cost of its model calls. It encompasses the cost of every decision the model did not make. This includes retries, tools, latency, fallback solutions, and observability. Understanding these structural costs is essential to avoid budget surprises.

Understanding Cost Structure

Agent systems differ from traditional machine learning (ML) models, where costs scale linearly with the volume of inferences. In the case of agents, the cost is tied to the complexity of tasks, involving multiple reasoning steps and interactions with various tools.

The appropriate diagnosis is to measure the cost per task solved, rather than the cost per call. The real question is not "what is the cost per API call?" but "what is the cost to complete a task end-to-end?"

Agent systems generate a cost distribution with a long tail fueled by retries, failures, and complex tasks. This distribution is not symmetrical, and the average is often dominated by the tail. Teams budgeting for the median are quietly subsidizing the tail until the bill arrives.

Categories of Hidden Costs

Five main categories explain where budgets are truly heading:

  1. Retry Cascades and Reasoning Loops: Agents are designed to retry in case of failure, which increases costs. When a step fails, the agent loops within the task, making agents resilient to noisy inputs and partial failures.

  2. Tool Usage: Each call to an external tool, whether it’s a search API, databases, or internal services, has its own cost and failure profile. These calls add a layer of complexity and cost to each task.

  3. Multi-Step Reasoning Latency Tax: Latency incurs additional costs long before it appears on the model's bill. To maintain throughput against service level objectives, multi-step systems scale horizontally with more replicas and parallel inferences.

  4. Fallback Rates and Human Revisions: Fallback solutions occur after the agent has given up. When an agent cannot resolve a task due to uncertainty or policy constraints, it resorts to fallback solutions, thereby increasing costs.

  5. Evaluation and Observability Overhead: Agent systems require a fundamentally different evaluation and observability stack than single-model systems. Static datasets and aggregated metrics are insufficient for properly assessing these systems.

Practical Example

Consider a customer service agent tasked with handling billing complaints. A user reports double billing. The initially projected cost is $0.04 per model call. However, the agent needs to query multiple internal systems, generating additional costs of $0.01 for tool calls. Retries due to ambiguous data add another $0.05 to the total cost, far exceeding the cost of tokens.

These examples illustrate that the costs of AI agents are far more complex and structural than traditional ML cost models might suggest.

Brief IA — L'actualité IA en français

L'essentiel de l'actualité de l'intelligence artificielle, décrypté et expliqué chaque jour.