Topic 6 of 6 · 5 min read
Total cost of build versus buy
Goal: Compare two-year total cost for building and buying the same capability, including the costs that are easy to forget.
Compare build and buy over two years and count every cost, not just the licence or the token bill. The visible line on the invoice is often the smaller part of what an AI feature costs to own.
Check yourself · 1 of 3
Why compare build and buy over two years rather than one month?
Why it matters
A build-versus-buy decision made on first-month price is usually wrong. Building looks cheap when you count only API tokens. Buying looks expensive when you count only the seat price. A fair comparison puts both on the same timeline and the same list of costs.
The costs to list
For both options
- Integration. Connecting to your systems, login, data and permissions.
- Security and compliance. Reviews, contracts, audits and data-protection work.
- Quality checks. Evals before launch, plus regular re-testing.
- Monitoring and support. Watching cost, quality and failures, and answering users.
- Change management. Training staff and adjusting processes.
Extra for building
- Engineering time. Initial build, plus ongoing fixes. Count people's pay, not just cloud bills.
- Model migrations. Models are retired and replaced, so each one means re-testing and re-tuning prompts.
- Infrastructure. Hosting, logs, queues, and GPUs if self-hosting.
- Safety and abuse work. Filters, limits and incident response.
Extra for buying
- Price rises and seat growth. Renewal prices and per-seat or per-use fees grow with adoption.
- Customization fees. Paid services for features you need.
- Exit cost. What a later switch will take.
How to compare
- Choose a time frame: two years is long enough to include a model migration.
- Build a table with one row per cost and one column per option.
- Estimate each cell with a low and a high value, and write the assumption beside it.
- Add one-off costs once and recurring costs per month.
- Find which assumption, if wrong, flips the answer. Check that one first.
Before and after
Weak: "Building costs about the token bill, so about 2,000 dollars a month. The vendor wants 6,000, so we build."
Better: "Building: tokens 2,000 a month, plus about half an engineer for upkeep, monitoring and one model migration, plus security review. Buying: 6,000 a month with a 10 percent assumed renewal increase, plus integration. Over 24 months the gap is much smaller, and it reverses if the feature needs more than one engineer's attention."
What goes wrong
Teams forget that engineers cost money even when no invoice arrives. Others price today's usage and not the growth they hope for. Others treat model migration as a one-off when it recurs.
Examples
A two-year table
| Cost | Build | Buy |
|---|---|---|
| Licence or tokens | 24 months of API use | 24 months of seats |
| Engineering | build plus upkeep | integration only |
| Evals and monitoring | own team | partly included |
| Model migration | at least once | vendor's job |
| Security review | full | contract review |
| Exit | low | data export and rebuild |
The decision turns on the engineering and migration rows, so those get the most careful estimates.
Key points
- Compare over two years so recurring work such as a model migration is included.
- Count engineering time, evals, monitoring, security and compliance for both options, not only licence or token cost.
- Building adds upkeep, migrations, infrastructure and safety work; buying adds price rises, customization fees and exit cost.
- Give every estimate a low and a high value and write the assumption beside it.
- Identify the assumption that would flip the answer and verify that one first.
Common mistakes
- Counting only token or licence cost and treating engineering time as free.
- Pricing today's volume and ignoring growth that will change both options.
- Treating a model migration as a one-off event when it will repeat.
- Leaving out exit cost for the bought product.
Check yourself · 2 of 3
A team compares an API token bill of 2,000 dollars a month with a vendor price of 6,000 and picks the API. Which cost have they most likely left out?
Check yourself · 3 of 3
Which extra cost applies mainly to the build option?
Practice items, not counted towards your mastery.
Start here
- How 100 enterprise CIOs are building and buying gen AI in 2025 (a16z) (opens in a new tab)ArticleFree
Survey-based view of how large companies split spend between building, buying and multiple model providers.
- Rate limits (Claude API docs) (opens in a new tab)DocsFree
How a frontier API caps requests and tokens per minute, and what a product must plan for.
- Anthropic Commercial Terms of Service (opens in a new tab)DocsFree
A real vendor contract: data use, ownership of outputs, indemnity and termination terms to compare.
More for this topic
- AI Risk Management Framework (NIST) (opens in a new tab)StandardFree
Frames the governance and monitoring work a team owns when it deploys any AI system.