The cost to build an AI application goes beyond development hours. You also need to budget for data preparation, running the application and maintaining it after launch. Those costs are harder to pin down, especially before you have real usage data. Here’s how we’d work through the estimate.
The four cost buckets in an AI application
We’d split the budget into four parts:
- Build hours. Discovery, prompt and retrieval design, integration, evaluation, security review, QA and UAT.
- Data readiness. Getting the content the model depends on into a clean, permission-aware state.
- Run costs. Tokens or GPUs, plus vector storage, observability and logging. This bucket moves with usage.
- Maintenance. Providers deprecate models, prompts behave differently after a model update, and retrieval quality drifts as your documents change.
Include a usage forecast in the first estimate. You won’t know exactly how people will use the application, so start with explicit assumptions and measure them during the pilot.
How AI coding tools change the build estimate
AI coding tools can reduce development hours, but we wouldn’t apply a blanket discount to the project. Look at the tasks the team actually has to do.
The research is mixed. A 2025 randomized trial by METR found experienced open-source developers took 19% longer with AI tools while believing they were faster. METR's 2026 follow-up could not produce a reliable figure, partly because many developers now refuse to work without AI. METR calls its newer data weak evidence, though it believes the speedup is likely higher now.
Some tasks benefit more than others:
- Larger savings: scaffolding, API wrappers, test generation, UI boilerplate and migration scripts.
- Smaller savings: retrieval tuning, evaluation design and prompt behavior on edge cases.
- Little or no savings: security review, compliance evidence, legacy integration, and reviewing AI-written code that looks right and is wrong.
If a quote cuts hours across the board because “AI writes the code,” ask which tasks got smaller and who will review the output.
How scope changes the cost of an AI application
Before estimating hours, be clear about what you’re building. Adding a draft reply to an existing app is a different project from letting an agent update business system.
- A single AI feature in an existing app. For example, summarizing a ticket or drafting a reply. One prompt, one model call, and a person reviews the output before anything happens. Run cost is usually small.
- A RAG (Retrieval-Augmented Generation) assistant over company documents. The team now owns ingestion, chunking, permission-aware search, citations and an evaluation set.
- An agentic workflow. The AI plans steps, calls tools and writes to systems of record. You need tool sandboxing, approval steps, retries, rollback and full trace logging.
- An enterprise rollout across departments. Along with the application work, you need a platform team to run it.
An enterprise rollout also adds work that a startup may not need: SSO (Single Sign-On), role-based access, audit logs, data residency, change management and time in the security review queue. Using the same model doesn’t make those projects comparable.
Data readiness for AI: the line item most often missed
On RAG and agentic projects, data preparation is the line-item teams most often leave out or underfund. It includes:
- Finding the data. SharePoint sites, shared drives, wikis, ticket systems, and the spreadsheet that runs the process.
- Cleaning it. Duplicate versions, outdated policies, scanned PDFs that need OCR (Optical Character Recognition), and tables that come out as garbage when parsed.
- Carrying permissions into the index. If a user can't open a document in SharePoint, the AI shouldn't quote it to them.
- Assigning ownership. Someone has to decide which version of the travel policy is current and keep it current.
Before you estimate, ask for 50 representative documents and 30 real questions users ask. If getting those together takes weeks, allow time for data readiness in the plan.
How to estimate token costs per user action
Start with the tokens one action uses, then estimate how often that action happens. A per-user estimate alone won’t tell you much.
Take a support copilot. Each action sends about 3,000 input tokens (system prompt plus retrieved context) and returns about 500. At current Anthropic list prices, one action costs:
- Claude Haiku 5.5: about $0.0006
- Claude Sonnet 5.5: about $0.011
- Claude Opus 5.5: about $0.022
Put 5,000 support agents on it at 20 actions a day for 22 working days. That is 2.2 million actions a month, or roughly $1,200 on Haiku, $24,000 on Sonnet and $48,000 on Opus. OpenAI's price list spans a similar range, from $0.10 input and $0.50 output per million tokens for gpt-6-luna to $10 and $50 for gpt-6-astra.
Agentic tasks cost far more per action. An agent that takes 15 steps re-sends its growing context at every step. At an average of 25,000 input tokens and 1,000 output tokens per step, one task uses about 375,000 input tokens. On Sonnet 5.5 that is around $0.90 per task, about 80 times the copilot action, and 1,000 tasks a day comes to about $27,000 nth.
Prompt caching is the biggest lever. On Opus 5.5 and Sonnet 5.5, cached input is billed at 5% of the normal input rate, which brings that agent task to about $0.33 when 80% of the context is cached. Routing simple steps to a smaller model and keeping the larger one for planning lowers it further.
Check token usage when upgrading models, not just the price per token. Anthropic notes that Claude 4.7 and later models use a tokenizer that produces about 30% more tokens for the same text. A lower per-token price may not mean a lower bill.
API providers vs. self-hosted open-weight models
With a self-hosted open-weight model, you pay for GPU capacity and the team’s time to operate it instead of paying per token.
On AWS, an 8x H100 p5 instance lists at about $6.88 per GPU-hour in US East, roughly $40,000 a month if it runs around the clock. Specialist GPU clouds list H100s from about $2 to $4 per GPU-hour, so a two-GPU setup runs roughly $3,000 to $6,000 a month before anyone patches, scales, monitors or upgrades it.
We’d start with an API when usage is low, uneven or hard to forecast. You pay per token and can benefit from price cuts without migrating. We’d consider self-hosting when:
- Token volume is high and steady.
- A smaller open model passes your evaluation set.
- Your team has run GPU infrastructure before.
Data that can’t leave your environment may be a separate reason to self-host; the compliance section below covers that constraint. Otherwise, log API usage first. Once you have a monthly token bill, compare it with the full cost of self-hosting, including operations.
Security configuration for AI applications
The security estimate needs to cover the usual application controls as well as risks specific to AI. Assign time and an owner for each:
- Prompt injection defences. A retrieved document or email can carry hidden instructions. Agents with write access need input filtering, output checks and tight tool scopes.
- Least-privilege tool access. The agent's service account should be able to do less than the user it serves.
- Secrets and keys. API keys live in a vault, separate per environment, rotated, with spend limits per key.
- Logging without leaking. Full traces are needed for debugging, and those traces now hold customer data. Set redaction and retention rules before launch.
- Red-team testing. Run adversarial tests before launch and again after major prompt or model changes.
Give security its own budget line. The more an agent can change, the more work you need to put into access controls, testing and logging.
How compliance requirements affect AI application cost
Check compliance requirements before choosing the model or hosting setup. They can restrict vendors, data locations and the evidence you need to keep, which affects the rest of the estimate.
In healthcare, HHS guidance says a cloud provider handling protected health information must sign a BAA (Business Associate Agreement), which narrows the model providers you can use. In financial services, AI-assisted decisions often need an audit trail a reviewer can follow.
In Europe, the EU AI Act's high-risk obligations for stand-alone systems such as hiring and credit scoring now apply from 2 December 2027, after the AI Omnibus moved them from August 2026. Risk management, technical documentation and human oversight still must be designed in, and the extra time is best spent doing that.
Smaller choices carry a price too. Keeping Claude inference in the US adds a 1.1x multiplier to token costs, and self-hosting for data sovereignty brings back the GPU and operations bill from the self-hosting section above.
Maintenance: the cost that starts after launch
An AI application needs ongoing work after launch because the things it depends on keep changing. Plan for these four areas:
- Model deprecations and upgrades. Providers retire models on a schedule. Moving to a newer model means re-running your evaluation set, adjusting prompts and checking token usage again, since a new model can tokenize the same text differently.
- Prompt and behavior regressions. A model update can change how your prompts behave, even when the version number looks minor. Keep a regression test set and run it after every change.
- Retrieval drift. Documents get added, revised and retired. Re-index on a schedule, remove outdated content and re-check that permissions still carry through.
- Monitoring and evaluation. Track answer quality, cost per action and failure rates. Someone needs to review the results and act on them.
Assign an owner and a recurring budget for this work before launch and adjust it once you have real usage data.
Questions to answer before you estimate an AI application
We’d want answers to these seven questions before committing to an estimate:
- Does the AI read, suggest or act? Which level of scope are we estimating?
- Is the data ready, or does someone need to find, clean and own it first?
- What does one user action cost in tokens, and how many happen per month at peak?
- Can a smaller model pass the evaluation set for most of those actions?
- What can the agent touch, and how is that access locked down and logged?
- Which regulations apply, and do they restrict where data and inference can run?
- Who maintains this next year, when the model you built on is deprecated, and what budget covers that work?
If you can’t answer any one of these, make the gap visible in the estimate. Don’t let an assumption turn into a commitment.
If you’re working through an AI estimate, our AI application development team can help review the scope, usage assumptions and costs.








