Most teams estimating an AI integration budget start in the wrong place. They look up token pricing, multiply by expected volume, add a few weeks of engineering time, and arrive at a figure that turns out to be a fraction of what the work costs.
The reason is that connecting a model to an existing system is only partly a model problem. The model is the cheapest and most predictable component. What consumes the budget is everything the model has to be wired into, and the state that wiring is currently in.
Here is what actually moves the number, roughly in order of impact.
Why is the permission model the largest hidden cost?
This is the item most estimates omit entirely, and it is frequently the single biggest piece of engineering.
Your existing system already knows who may see what. A sales representative sees their own accounts, a manager sees their team's, finance sees payment history, HR sees compensation. Those rules took years to get right and they live inside your application logic, your database views, or your identity provider.
An AI feature has to respect them, and the naive implementation does not. The quick approach gives the AI service account broad read access, retrieves whatever is relevant, and filters the result before showing it to the user. That works until somebody phrases a question in a way the filter does not anticipate, and then an assistant cheerfully summarises a document the user was never entitled to open.
The correct approach enforces access rules inside the query itself, using the source system's own permission model, so the retrieval step physically cannot return records the user may not see. Building that properly means understanding permission logic that may be undocumented, and then threading identity through a new retrieval path. On a mature enterprise system this is rarely a two-week task, and firms with real AI integration services experience tend to raise it in the first technical conversation rather than discovering it in week six.
How much does data readiness actually add?
The second cost driver is the gap between the data you have and the data the model needs at the moment it runs.
Three specific problems recur. Information that exists in your database but arrives too late to be useful at prediction time, which is how pilots outperform production. Text locked inside PDFs, scanned documents or free-text fields that needs extraction and structuring before it is retrievable. And records that are inconsistent across years or departments because the field was optional and different teams used it differently.
None of this is interesting work and all of it is unavoidable. On systems older than five years, data preparation and pipeline construction routinely exceed the model and application work combined. Teams building retrieval over company documents find that chunking strategy, metadata design and index refresh logic are where quality actually comes from, which is why RAG and data engineering work tends to dominate the schedule rather than prompt design.
What does write-back cost that read-only does not?
An AI feature that answers questions is considerably cheaper than one that changes something.
The moment the system can create a ticket, update a record, issue a refund or cancel an order, you inherit a set of requirements that read-only features never face. Idempotency keys, so that a timed-out request retried by the model does not process twice. Approval tiers, so a value above a threshold routes to a human. An audit trail recording what was done, on what input, under whose identity. And a reversal path for actions taken incorrectly.
Each of these is modest in isolation. Together they frequently double the engineering effort relative to a read-only version of the same feature, and skipping them produces the class of incident that finance discovers at month end.
Why does the evaluation harness belong in the budget?
Conventional software is tested with assertions: given this input, expect this output. AI systems do not behave that way, which means you need a different apparatus.
A working evaluation setup requires a test set drawn from real cases with known correct answers, a scoring method appropriate to the task, and a way to compare performance between versions so you can tell whether a prompt change helped or quietly broke something. Building this costs real time, and teams that skip it end up making changes based on whether three examples looked better in a demo.
It also never finishes. Model providers update their models, your data shifts, and your users ask things they did not ask last quarter. The evaluation harness is ongoing infrastructure rather than a one-off deliverable.
Is token cost really that small?
Usually, yes, and it is worth doing the arithmetic rather than assuming.
Take an illustrative retrieval-based assistant. A single query sends perhaps 400 tokens of system instructions, around 3,000 tokens of retrieved context from six document chunks, and 50 tokens for the user's question, then generates 300 tokens in reply. At frontier-tier rates of roughly $1.25 per million input tokens and $10 per million output tokens, that query costs about three quarters of a cent.
At 50,000 queries a month, that is a few hundred dollars. Measurable, and small beside the engineering effort described above and the maintenance that follows.
Two caveats matter. Input dominates in retrieval-heavy systems, so retrieving ten chunks instead of five has a larger cost effect than lengthening the answer. And agentic systems that make several model calls per user request multiply this considerably, which is where usage cost stops being a rounding error. Worth modelling at full production volume rather than at pilot volume, because the two differ by an order of magnitude.
What ongoing costs should sit in the estimate?
Four, and all of them are routinely treated as somebody else's problem until launch.
Monitoring with defined thresholds, so degradation is noticed by the system rather than by a user. Human review capacity for cases the system cannot handle confidently, which is a staffing cost rather than an engineering one. Periodic reassessment as data and usage change. And security review of the AI surface specifically, because prompt injection through user-supplied content is a live attack path on any system that can act, and content retrieved from a ticket or a document should be treated as data rather than as instruction.
How should a team estimate this properly?
Three documents, written before anyone quotes.
First, the action list: every task the feature must complete, with the system it touches and the permission required. Ten lines of this is worth more than a long requirements document.
Second, an honest data assessment: what is available at the moment the system runs, in what format, through what interface.
Third, the acceptable error rate, stated numerically, because that determines your confidence threshold and therefore how much human review you need.
With those three in hand, estimates become comparable and the big cost drivers become visible early. Without them, you get a figure based on token pricing, which is the part of the problem that was never expensive.
Can you answer this question?
Write Answer0 Answers