Build vs Buy AI: Building Got Cheap, Owning Didn't, and Partner Now Means Distribution

Build vs buy AI, decided by layer: rent the model, build the harness thin, own evals and audit, and partner for distribution in healthcare.

Clint JohnsonPublished 10 min read

Key takeaways

  • Decide build vs buy per layer: rent the model, build the harness thin, own evals and audit, keep buying commodity SaaS, and partner for distribution.
  • Before buying, make the vendor run your eval set on your data, and contract for notice so you can rerun it case by case on every model change.
  • Put every choice behind a seam you own, with evals pinned to it, so switching between buy and build costs a sprint, not a rewrite.

Build vs buy for AI is the wrong question when you ask it about a whole product. Generative AI moved all three options at once. Building got cheap to start and stayed expensive to own. Buying got riskier in new ways. Partnering changed meaning. Most of the SaaSpocalypse debate only covers the first of those. So once I know AI creates new value here at all, I decide layer by layer.

I built the L2 support bot I run for MedScrub in an afternoon, and it costs nothing to run. That's what building looks like now. But the afternoon isn't why I trust it. I trust it because of rules I own. It dedupes against closed issues so a won't-fix stays closed. It pings me only when the real PR gates pass. It never merges its own PRs. The code was cheap. The judgment about what counts as right is the part I'd never hand to anyone.

Build what's cheap. Rent the engine. Own the evals and the trail.

Why building AI got cheap but owning it didn't

A coding agent can now produce a working internal tool, or a CRUD replacement for a SaaS product, in a day. My own workflow changed enough that I dropped tools I'd relied on for years.

The build side of the debate is real. In McKinsey's State of AI in 2026, 32% of respondents said their organization decided against buying one or more software products or features because they could build them with agentic coding tools. Read that number carefully. It means "skipped at least one purchase." It does not mean a third of companies replaced their software. The data is self-reported, and the share of organizations reporting any profit impact from AI stayed flat at 37%.

The more useful signal is elsewhere in the report. High performers are three times as likely as everyone else to say cost has limited their use of coding agents, and token consumption has grown faster than per-token prices have fallen. Even the teams best at building are running into the bill.

The first version is the cheap line on that bill. This is the rest of it, and it's the part to estimate before you commit:

  • Model migrations. OpenAI gave six months' notice before removing the gpt-5 snapshot gpt-5-2025-08-07, which ends up living about 16 months. One model lasting over a year sounds fine. Now count the whole portfolio. On that same page, OpenAI announced the end of stored prompt objects in June 2026, the gpt-5 family in June, gpt-5.3-codex and gpt-5.1 in October, and GPT-4o and GPT-4.1 two weeks later. If you depend on several of these, you are migrating something about every quarter. Fine-tuned models shut down on the same schedule as their base models, so a fine-tune doesn't protect you. And a prompt stored in someone else's dashboard is lock-in too.
  • An eval suite that stays current. Every migration needs a rerun. Every production surprise needs a new case.
  • Someone who owns the page. My support bot is cheap partly because it runs in my terminal, under my own auth, and stops when I close the laptop. A tool other people depend on can't work that way. Someone carries the 3am page, and someone signs off the security review.
  • In healthcare, the compliance chain. HIPAA requires business associate agreements down the chain to subcontractors that handle PHI, and that includes a model provider handling PHI. It also requires audit controls on systems that use ePHI. Then there's per-site integration, which no model upgrade makes cheaper.

The hidden risks of buying AI from a vendor

Buying used to mean renting someone else's capability. Some AI vendors today are a prompt and a wrapper around a frontier model you could rent yourself. Find out whether yours is one of them before you buy. Three risks follow.

Their quality is your quality, and they can change it. When the vendor swaps the model underneath, your output changes. They're on the same deprecation clock you are. On your own stack, you'd pin the model version, watch override and edit rates, and replay a frozen eval set to catch drift. With a vendor, you can't pin anything. You only see the change if your contract makes them show it to you.

Data terms decide whether the buy is safe at all. Ask about retention, training use, where the PHI goes, and whether their BAA chain covers their model provider. If the answers are vague, stop. Nothing else in the sales deck matters.

The platform may ship it. I've argued that Epic Agent Factory will eat the easy AI. If a vendor's whole product is an easy feature, you may be buying something with a short shelf life.

How to evaluate an AI vendor before you buy

Put this test in every AI purchase. Before you sign, the vendor runs your eval set on your data. After you sign, they rerun it on every model change, and you see the results before the change reaches your traffic.

Write the trigger into the contract. Three clauses:

  • Written notice before any change to the model, prompt or retrieval behind your endpoint.
  • A model version identifier on every response, so you can tie any output to what produced it.
  • The right to run your eval set against the change before it touches your traffic.

The notice is what kicks off the gate. The gate compares case by case, not just the average:

// Runs before signing, and whenever a vendor model-change notice arrives.
type Case = { id: string; safetyCritical: boolean };
type Result = { id: string; pass: boolean };

export async function gateVendorChange(vendor: Provider, cases: Case[], baseline: Map<string, Result>) {
  const results = await runEvalSet({ provider: vendor, cases });
  const regressed = results.filter((r) => baseline.get(r.id)?.pass && !r.pass);
  const critical = regressed.filter((r) => cases.find((c) => c.id === r.id)?.safetyCritical);

  if (critical.length > 0) throw new Error(`Safety-critical regressions: ${critical.map((r) => r.id).join(", ")}`);
  if (regressed.length / cases.length > 0.02) throw new Error(`Regressed: ${regressed.map((r) => r.id).join(", ")}`);
  return results; // becomes the new baseline only after a human reads the diff
}

Two rules matter here. An aggregate pass rate can hold steady while the cases that matter flip, so the gate tracks which specific cases went from pass to fail. And any regression on a safety-critical case blocks, with no tolerance. You set the 2% for everything else. The vendor's change has to clear your bar.

The test cuts both ways. If you can't write that eval set, you can't buy safely. You can't build safely either, because you'd have no way to tell whether your own version works. Writing the eval is the real first step of any build vs buy decision. Product Evals in Three Steps is where I'd start.

A vendor who won't run your evals is telling you how the next model swap will go.

Partnering in healthcare AI is now about distribution

You used to partner for capability you couldn't build. Capability is cheap now. Today you partner for what a coding agent can't produce:

  • Distribution. EHR marketplaces, and a place inside the clinician's workflow.
  • Data access. Feeds, scopes and the agreements behind them.
  • Regulatory cover. Someone whose BAA and compliance posture a health system already trusts.
  • The interface team's queue. Your go-live waits behind every project that team already has.

The CDS Hooks case makes this concrete. A CDS Hooks service must expose a discovery endpoint at {baseUrl}/cds-services that lists each service, the hook that triggers it and the data it prefetches. You can build that in an afternoon. It does nothing until a health system registers it in their EHR, and that happens on their timeline, through their interface team. My writeup on getting CDS Hooks working in Epic covers six months of integration reality, and the documentation glosses over most of it.

That's the ratio to plan around: an afternoon of service code against months of someone else's process. So plan the go-live around registration, not around the build. Your sprint plan doesn't control that queue. A partner who already has a seat in it does. Integration is also a big part of why I think healthcare AI will be won by verticals.

Build vs buy vs partner, layer by layer

A single AI feature has five layers. Each one gets its own answer:

LayerDecisionWhy
Model accessRent, behind a swappable interfaceIt's a commodity, and it gets deprecated on someone else's schedule
Orchestration and harnessBuild, thinIt's cheap to build now and specific to your workflow
Evals, golden data from production overrides, workflow state, audit and FHIR ProvenanceAlways ownYour advantage and your liability both live here
Commodity SaaS with no workflow advantageKeep buyingBuilding it gets you an on-call rotation and nothing else
Integration and distributionPartnerYou can't code your way into a health system's queue

The golden data row is the one I'd fight for. Every time a clinician overrides or edits an output, you get a labeled example of what "right" means at that site. A vendor who keeps that data owns your quality bar. FHIR's Provenance resource is the standard way to record which agent produced which resource. Write it yourself, from your own layer, so the trail survives a vendor change.

Spike it for a day before you buy

Before any AI purchase, have a coding agent build a rough version in a day. The point is to learn the requirements, not to ship.

An agent that scaffolds an integration fills in business rules as defaults. In production that's the riskiest output. In a spike, it's the point. Every default the agent guessed is a requirement question you bring to the vendor, and a case for your eval set. You also walk into the pricing conversation knowing what the thing costs to build. It's the same instinct as the Food Truck Method: move fast, but find out which direction is right before you commit.

How to avoid AI vendor lock-in

Everything here will change on someone else's schedule, so put each option behind a seam you own. That can be an interface, an MCP layer or a typed contract. In MedScrub and eSpiral the model gets typed tasks through a FHIR MCP layer, not raw FHIR. That gives the model one surface to call, and gives me one place to swap what's behind it.

Pin your eval set to the seam, not to the implementation:

export interface NoteSummarizer {
  id: string; // "vendor-x@2026-10" or "inhouse@v14"
  summarize(input: SummarizeInput): Promise<SummarizeOutput>;
}

The vendor implements it. Your in-house version implements it. The evals run against NoteSummarizer and don't care which one sits behind it. Switching from buy to build, or back, now costs a sprint instead of a rewrite.

Keep your evals, workflow state and audit trail on your side of the seam.

Build vs buy metrics to review every quarter

Three numbers tell you whether a build, buy or partner decision still holds:

  • Run cost per completed workflow. Total model and infrastructure spend for the workflow, divided by workflows that actually finished. Failed runs and retries count against it. Measure it before and after every migration. A migration isn't done until that number is back where it was, or you've decided the new price is worth it.
  • Eval pass rate on vendor model changes. Zero tolerance on safety-critical cases. If a vendor's swap drops your pass rate and you hear about it from users first, the buy has failed, whatever the contract says.
  • Integration lead time per site. Measure from signed agreement to first production call. If this isn't going down site over site, the partnership isn't doing its job.

If one of these moves the wrong way two quarters in a row, open the seam and reconsider that layer.

If you'd rather have someone map this for your stack, covering what to build, what to buy and what to skip, that's what my AI audit does.

Questions people ask

Should I build or buy AI software?

Decide by layer, not by product. Rent model access behind a swappable interface, build orchestration thin, always own evals, golden data, workflow state and audit, keep buying commodity SaaS, and partner for integration and distribution.

Is the SaaSpocalypse real?

In McKinsey's State of AI in 2026, 32% of respondents said their organization skipped at least one software purchase because they could build it with agentic coding tools. That is not a third of companies replacing their software, the data is self-reported, and the share reporting any profit impact from AI stayed flat at 37%.

How do I evaluate an AI vendor before buying?

Have the vendor run your eval set on your data before you sign, and contract for notice and a rerun on every model change before it reaches your traffic. Compare case by case and block on any safety-critical regression. If you can't write that eval set, you can't buy or build safely.

Why partner with someone on a healthcare AI product?

Capability is cheap now, so you partner for what you can't build: distribution, data access, regulatory cover and a place in the health system's interface-team queue. A CDS Hooks service can be built in an afternoon but does nothing until a health system registers it in their EHR.