AI ROI
AI project ROI: the most expensive model is rarely the right one
The ROI of AI projects is decided by the architecture, not the model. Giving each step the model that fits it cuts costs considerably.
By Sascha Sambale · · · 9 min read
- ROI
- AI strategy
- AI agents
- AI automation
- SMEs

The ROI of AI projects depends less on the chosen language model than on the architecture around it. Companies that leave every step to a top-tier model pay many times what is necessary. A sample calculation for an invoice agent shows this, based on list prices as of November 29, 2026. It costs around 68,000 US dollars a year with a single large model and around 3,000 US dollars with task-appropriate routing. The issue is urgent because many companies are now moving their AI pilots into production.
The gap between adoption and return is wide. According to McKinsey’s report The State of AI in 2026, only 37 percent of companies see a positive contribution from AI to their operating profit. Around six percent attribute at least five percent of their earnings before interest and taxes to AI. A 2025 study by MIT’s Project NANDA concluded that 95 percent of the organizations it examined were seeing no business return on their investments in generative AI.
For AI agents, the market research firm Gartner expects a shakeout. By the end of 2027, more than 40 percent of agentic AI projects will be canceled because of rising costs, unclear business value and inadequate risk controls, Gartner predicts. An AI agent is a system that pursues a goal, uses tools and carries out several steps on its own. It is precisely these many steps that make it expensive when nobody manages the cost per step.
Why do so many AI projects deliver no ROI?
Usually the cause is not weak models but the wrong division of labor. Companies use a large language model for tasks that conventional software handles more reliably and at lower cost. They hand it more data than necessary and measure success in tokens instead of completed cases. Each of these mistakes drives up operating costs without improving quality.
A useful rule of thumb: automate first, and use AI only where ambiguity begins. The path from order to order confirmation to invoice follows fixed rules. That calls for workflow software that behaves the same way every time, not for a language model. A language model at this point consumes tokens and introduces the risk of fabricated details into a process that has to be dependable.
Language models show their strength where judgment is needed. That is the case with unstructured documents, free-form requests or the question of whether a tender matches the company’s own offering. Workflow tools such as n8n combine both: fixed steps run as normal automation, and a model makes a decision only at individual nodes.
More context makes agents more expensive and worse
An AI agent sends the conversation so far to the model again at every step. With each step, the number of input tokens grows, and so does the bill. If an agent runs in a loop without stop conditions, costs rise quickly while it gets no closer to a solution. Context, meaning everything the model receives as input, thus becomes a hidden cost driver. At the same time, answers become less reliable as the input grows.
The database company Chroma measured this loss of quality. It tested 18 language models with increasingly long inputs. With more context, results became less reliable for all models, even on simple tasks. Chroma calls this effect context rot.
This yields a clear rule for the architecture. In each step, an agent should receive only the information it needs for that step. Companies that load entire document collections unfiltered into a large context window pay more and get worse answers. It is better to filter beforehand, for example with retrieval-augmented generation (RAG): the system picks only the matching passages from the company’s documents.
The right model for every step
Model routing means automatically sending each subtask to the cheapest model that solves it reliably. The task determines the model, not habit. The RouteLLM research paper, whose authors include researchers at the University of California, Berkeley, showed that costs can be more than halved this way in certain cases without compromising the quality of responses.
The price differences are substantial. Anthropic’s list prices range from 0.10 US dollars per million input tokens for Claude Haiku 5.5 (for prompts of up to 100,000 tokens) to eight US dollars for Claude Fable 5.2. In between are Claude Sonnet 5.5 at two and Claude Opus 5.5 at four US dollars. For output tokens, the generated text, the ratio is the same: 0.50 US dollars for Haiku, 40 US dollars for Fable. The top model thus costs 80 times as much as the smallest Claude model.
For the simplest decisions, there is now a separate class of models. Decision models produce no text. They map an input to predefined answers and return probabilities for them. They answer questions such as “Is this an invoice or a reminder?” or “Does this ticket need a human?” On October 1, 2026, Cloudflare introduced two such models, Clef and Clef-flash. According to the price list for Workers AI, Cloudflare’s AI platform, Clef-flash costs 0.038 US dollars per million input tokens. Cloudflare does not charge for output tokens on the Clef models.
The weights of both models, meaning the trained parameters, are freely available. Such open-weight models can be downloaded and run on your own hardware. Whether that pays off is a classic make-or-buy question. In-house graphics processors incur fixed costs even when they are idle, whereas an API charges only for usage. The main arguments for running models yourself are strict rules under which data must not leave the company, and agents that run under high load around the clock.
Sample calculation: an invoice agent for 1.2 million documents
An invoice agent for 1.2 million documents a year costs around 68,000 US dollars when Claude Opus 5.5 handles every step, and around 3,000 US dollars with task-appropriate routing. That is the result of a sample calculation for invoice processing in accounting. The token volumes are assumptions; the prices come from Anthropic’s and Cloudflare’s price lists.
The calculation assumes 100,000 incoming invoices per month. The process has four steps: first, triage, meaning the classification of the document; second, data extraction; third, validation and booking; fourth, the handling of exceptions.
| Step (input / output tokens) | One model for everything | Cost in US dollars | Task-appropriate routing | Cost in US dollars |
|---|---|---|---|---|
| Triage (2,000 / 50) | Claude Opus 5.5 | 0.0090 | Decision model Clef-flash | 0.0001 |
| Data extraction (4,000 / 500) | Claude Opus 5.5 | 0.0260 | Claude Haiku 5.5 | 0.0007 |
| Validation and booking (3,000 / 300) | Claude Opus 5.5 | 0.0180 | Workflow software without a language model | 0.0000 |
| Exceptions in five percent of invoices (8,000 / 2,000) | Claude Opus 5.5 | 0.0036 | Claude Sonnet 5.5 | 0.0018 |
| Total per invoice | 0.0566 | 0.0025 | ||
| Total per year | around 68,000 | around 3,000 |
Costs are per invoice; the cost of exceptions is spread proportionally across all invoices. The totals are calculated from unrounded values. The task-appropriate variant costs only about one twenty-second as much as the one-model approach. For a single process, that is a saving of roughly 65,000 US dollars a year. It comes mainly from two places. Extraction moves from a large language model to a small one. Validation and booking, almost a third of the cost in the one-model approach, no longer need a language model at all.

Two features that many providers offer in a similar form bring further savings. With prompt caching, the provider stores recurring parts of the instructions. According to Anthropic, cache reads cost only one-twentieth of the normal input price for Claude Opus 5.5 and Sonnet 5.5. Those who do not need results immediately can also send requests in bulk through the batch interface at half the price.
A word of caution: the example covers model costs only. Integration, operation and review come on top of that and are often the larger cost item. A business case therefore only becomes meaningful with a different metric.
Cost per successful outcome instead of cost per token
The cost per successful outcome is the most meaningful metric for AI agents. It covers all tokens, even those spent on failed attempts and retries, the infrastructure and the staff time for review and rework. This total is divided by the number of cases completed correctly, such as invoices booked without errors or tickets resolved.
The cost per token, by contrast, is misleading. A poorly tuned agent can work with very cheap tokens and still be expensive. That happens when it repeats the same request 50 times or delivers results a person has to correct. A business case only holds when the cost per successful outcome is below that of manual processing. For this comparison, today’s effort has to be measured beforehand.
The costs also include the effort of meeting obligations under the EU’s AI regulation, the EU AI Act. Article 50 has applied since August 2, 2026: AI systems that interact directly with people must be designed so that those people can tell they are talking to an AI. Such notices, like logs and approval steps, are cheap to plan for at the start. Retrofitting them into a running agent system, by contrast, is laborious. EU AI Act consulting clarifies which obligations apply to your own agents.
What companies should do now
- Measure today’s effort: duration, people involved and cost of errors in the process, before a model comes into play. Without a baseline, no ROI can be shown.
- Break the process into steps and classify each one: fixed rule, simple decision or real ambiguity.
- Automate fixed rules conventionally, give simple decisions to decision models or small language models, and reserve large models for the hard cases.
- Limit the context. Each step gets only the data it needs, and each agent gets an upper limit for retries.
- Use caching and batch processing where instructions repeat or results can wait.
- Track the cost per successful outcome continuously and compare it with manual processing.
Which of your processes suit this approach can be worked out in an AI workshop with the business units. How that turns into a sound architecture and roadmap for mid-sized companies (Mittelstand) is described on the page on AI consulting for SMEs.
In short: asking which model is best often points AI projects in the wrong direction. What matters is which model is sufficient for which step, and which step needs none at all. Companies that plan this way turn a cost item into a measurable contribution to the bottom line.
Frequently asked questions
How do you calculate the ROI of an AI project?
Most reliably through the cost per successful outcome. That includes all tokens, even those spent on failed attempts, the infrastructure and the staff time for review and rework. This total is divided by the number of cases completed correctly, for example invoices booked without errors. If the value is below the cost of manual processing, the business case holds. Without a measured baseline, this comparison cannot be made.
What is model routing in AI?
Model routing means automatically sending each subtask of a process to the cheapest model that solves it reliably. A fast decision model handles simple classifications, a small language model handles standard tasks, and only hard cases go to a large one. The RouteLLM research paper showed that costs can be more than halved this way in certain cases without compromising the quality of responses. Where steps follow fixed rules and need no model, the savings are often even higher.
How much do Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 cost?
According to Anthropic’s price list, Claude Opus 5.5 costs four US dollars per million input tokens and 20 US dollars per million output tokens. Sonnet 5.5 is priced at two and ten US dollars. Haiku 5.5 costs 0.10 and 0.50 US dollars as long as the prompt has no more than 100,000 tokens. The top model Fable 5.2 costs eight and 40 US dollars. Reused prompt parts from the cache are considerably cheaper.
Is it worth running open-weight models yourself?
Usually only under one of two conditions. Either the data must not leave the company, or the system runs under high load around the clock. In-house graphics processors incur fixed costs even when they are idle, while an API charges only for usage. With irregular load, the API is therefore almost always cheaper. With high continuous load or strict data protection requirements, running the models yourself can pay off.
What is context rot?
Context rot is the effect whereby language models answer less reliably as their input grows longer. The company Chroma described it in 2025 in a test of 18 models. Results got worse for all models, even on simple tasks. For AI agents, this means each step should receive only the information it needs. A completely filled context window costs more and delivers worse answers.
Cut AI costs per outcome, not per token
We break your process into steps, assign each the right model or conventional automation, and compare the cost per successful outcome with today’s effort.
Request consultingSources
- The state of AI in 2026: On the road to ROI – McKinsey & Company
- MIT Report Finds Most AI Business Investments Fail, Reveals 'GenAI Divide' – Virtualization Review (data: MIT Project NANDA), August 19, 2025
- Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027 – Gartner, June 25, 2025
- Context Rot: How Increasing Input Tokens Impacts LLM Performance – Chroma Research, July 14, 2025
- RouteLLM: Learning to Route LLMs with Preference Data – arXiv
- Pricing – Anthropic, Claude Platform Docs
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform – Cloudflare Blog, October 1, 2026
- Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act) – Official Journal of the European Union / EUR-Lex, July 12, 2024