The true cost of an AI agent, beyond the API bill
Published on October 23, 2026
·
10 min read
A prototype that reads a supplier invoice and pulls out the amount takes an afternoon to build. The model call costs a few cents. Then the quote for production arrives, and it runs to tens of thousands of euros. The question then comes: where does the gap come from?
This article answers that question. It is not a price list. It describes the cost structure of an AI agent in production, line by line, so that you can read a quote and know what it covers and what it leaves out.
An agent, meaning a program that uses a language model to read, decide and act inside your tools, has five cost lines. Only one of them shows up in the demo.
The demo trap
The demo is honest, and it is misleading. Honest because the prototype works: you give it a clean PDF, it returns the supplier, the amount and the due date. Misleading because everything that makes it easy is missing in production.
In the demo, the invoice was chosen. It is legible, one page long, in a familiar layout. Nobody has to approve it. The result appears on screen and is written nowhere. If the model gets it wrong, you run it again and smile.
In production, the invoice lands in a mailbox among dozens of other messages. It is sometimes scanned at an angle. The purchase order it refers to does not always exist. The result has to be written into the accounting software, and an error becomes a payment. That distance between the demo and daily work is what costs money, not the model.
Take Acme Industrie, the fictional SME we use as a reference example. An agent there handles supplier invoices received by email: it reads the PDF, extracts the lines, matches the invoice to the purchase order, flags discrepancies, asks for human approval when in doubt, then writes to the accounting tool. On an invoice of 12 480 € before tax tied to purchase order BC-2291, it spots that line 7 bills three units when two were received. Sophie, in accounts payable, approves and requests a credit note. The "read the PDF" part is the demo. Everything else is production.
Cost one, the model calls
This is the cost everyone looks at, and it is the smallest. Reading and processing a document with a language model costs cents or tens of cents, depending on the model and the length of the document. We give that as an order of magnitude and nothing more: it varies from one provider to the next and from one month to the next.
Models are billed per token, meaning per fragment of a word read or produced, so the cost tracks the length of the text. Three things push it up.
- Volume: the cost tracks the number of documents, with no economies of scale.
- Length: a framework contract running to dozens of pages weighs more than a one-page invoice, and a scanned invoice, processed as an image, weighs more than a text PDF.
- Retries: an agent that rereads a document when its first pass is doubtful, checks its own output, or fails and starts over consumes a multiple of the nominal cost.
This cost has one useful property: it can be steered. There is no reason to use the most capable model to classify an email as "invoice" or "other". A smaller, cheaper model is enough for the simple steps, and the strongest model is kept for the ambiguous cases. At Acme Industrie, sorting incoming mail and matching an invoice against a partially delivered purchase order are two tasks that do not deserve the same model.
But that choice is not a procurement decision. It is an engineering decision, because you have to measure that the cheaper model performs as well on your documents, and measure it again at every change. Without an evaluation set, the model gets chosen by intuition, and intuition gets it wrong in both directions.
Cost two, building for production
This is where most of the budget goes, and it is the line missing from the demo. Building for production means writing everything that surrounds the model call.
First, connecting to the real tools. The mailbox, to receive invoices and their attachments. The ERP or order management tool, to find purchase orders and goods receipts. The accounting software, to post the entry. Each connection has its own access method, its own limits, its own outages. Some have no API at all.
Then, handling the ugly cases. The PDF scanned upside down. The invoice sent as two attachments. The missing purchase order, because the purchase was made over the phone. The duplicate invoice, sent by two different people at the supplier. Each is rare on its own. Together, they make up a share of the flow you cannot ignore, and that is where a badly built agent does damage.
Then, a human approval interface. When the agent is unsure, someone has to see the invoice, the proposal, the discrepancy, and decide in a few seconds. That interface is a real product: if it is painful, the approver works around it, and the agent loses its purpose.
Then, a business evaluation set: real documents, common cases and rare ones, each with the expected correct result, so the agent can be measured before every change. This is what turns "it seems to work" into "it works on our documents".
Finally, logging of every decision, and access rights so the agent reads only what it should. None of this is visible. All of it has to be paid for.
In our pilot, this work fills weeks 2 and 3: the agent, the integrations, the approval interface, the evaluation set. It is why a production pilot starts at 28 000 € and not at a few hundred euros of model calls.
Cost three, keeping it alive
A delivered agent is not a finished agent. Its environment moves, and it does not tell you.
Data drifts. A supplier changes the layout of its invoices, and the extraction that had worked for months starts confusing the amount before tax with the amount including tax. A new supplier shows up with a format nobody has seen.
Models move too. Providers retire old versions and publish new ones. A new version is often better on average and different in particular: it can miss a case the old one handled. Every model change means replaying the evaluation set.
Call costs creep. A retry that has become systematic on one document type, a volume that doubled without anyone noticing. Without a dashboard that someone reads every week, you find out on the bill months later.
The question to ask your provider, or your own team, is simple: who looks at the dashboard on Monday morning? If the answer is "nobody", the agent degrades silently. It keeps producing entries, wrong more and more often, until closing. Our AI Run offer, from 2 500 € per month, is one way to cover this line; a trained internal team is another, and just as legitimate.
Cost four, human time
An agent does not remove human time. It moves it. The question is whether it frees more than it consumes.
First, the approver's time. Each escalation, meaning each case where the agent asks for a human opinion, costs Sophie a few minutes: open, read, decide.
Then, correction time. When the agent gets it wrong without doubting, the error goes through, and someone catches it later, at a higher price: an entry to reverse, a supplier to call back, a credit note to chase.
Finally, training time, at the start and then for every new hire: understanding what the agent does, what it does not do, and how to respond to its requests.
The lever that decides everything is the escalation rate, meaning the share of documents the agent does not dare to handle alone. Too high, and the approver processes almost as many invoices as before, with an extra interface on top: the agent has not saved time, it has moved it. Too low, and errors go through unchecked. The right setting is found by measuring, and it moves over time. That is why our pilot requires a named, available business validator: without one, nobody can tune that dial.
Cost five, the ones nobody budgets
A few lines appear in no technical quote and still end up in the real cost.
- The security review. An agent that reads the accounting mailbox and writes to the accounting tool is a new entry point into the information system. Your CIO will want to know what it sees, where the data travels, and how to switch it off.
- The compliance file. A processing register, a risk analysis, information for the people concerned. We deliver it with the pilot, but someone on your side has to read it and own it.
- Change management. Explaining to the accounting team that the agent replaces nobody and that escalations are normal. Supporting the first weeks, while trust is being built.
- The internal owner's time. Someone on your side decides the scope, answers the project team's questions, settles the ambiguous cases. That is a real cost, even if it never shows up on an invoice.
How to compare honestly
The most common mistake is to compare the API bill with someone's salary. Both terms are wrong. Here is the method we apply in week 1 of the pilot, and that you can apply on your own.
On one side, the current cost of the process.
- People's time: how many minutes per invoice, from sorting the email to posting the entry, multiplied by the monthly volume and by the fully loaded hourly cost.
- Errors: invoices paid twice, discrepancies not caught, credit notes never claimed.
- Delays: late payment penalties paid, early payment discounts not taken.
- Side effects: the tender submitted late because accounting was underwater, the supplier who delivers last because it is paid last.
On the other side, the full cost of the agent over twelve months, with the five lines from this article.
- The build, once.
- The model calls, at real volume, retries included.
- Upkeep, every month.
- The remaining human time: escalations, corrections, training.
- The unbudgeted costs: security, compliance, change management, internal owner.
Put the two columns side by side. If the second is smaller than the first, with room to spare, the case is worth launching. If not, the case is poor, or the scope is too wide, and it is better to know before signing. It is common for a case to fail this filter at the first scope proposed. That is good news: you tighten the scope before spending, not after.
Why we quote a fixed price
A fixed-price pilot forces us to carry the engineering risk: if the ugly cases are more numerous than expected, that is our problem, not yours. In exchange, you carry the scope: one team, one flow, a quantified objective signed in week 1, and no new flow added in week 4. This split is the only one we have found that pushes both sides to tell the truth about the scope.
Where to start
If you have a quote in hand and do not know what it covers, that is what the AI Scan is for. It is a free 45-minute conversation. Within 48 hours, you receive a three-page memo with three quantified use cases, each with an order of magnitude for full cost and expected gain, built with the method in this article. You then decide, with or without us. To talk about it: the AI page.