The decision to build custom AI software or buy a third-party solution is one of the most consequential choices a technology leader will make. It dictates budget allocation, team structure, and the speed at which you can innovate. Get it right, and you create a durable competitive advantage. Get it wrong, and you risk high costs, vendor lock-in, and a strategic capability gap.
This is not a simple technical choice; it is a capital allocation problem. Too often, the debate is framed as a battle between impatient business units demanding a SaaS tool and a proud engineering team eager to build. A more rigorous, business-led framework is required. Across our engagements, we have developed and refined a multi-factor model to guide this decision. It moves beyond sticker price and feature checklists to focus on strategic differentiation, long-term cost, and manageable risk.
The differentiation test
Before any financial analysis, the first and most important filter is the differentiation test. You must ask: is this AI capability a core part of our unique value proposition, or is it a utility required to run the business?
Core Differentiators are the capabilities that make customers choose you over a competitor. They are deeply intertwined with your proprietary data, unique business processes, or intellectual property.
- For an insurer, this might be a proprietary claims fraud detection model that saves millions and outperforms off-the-shelf systems because it’s trained on decades of internal claims data.
- For a media company, it could be a recommendation engine whose nuanced understanding of user taste drives engagement and retention in a way a generic vendor solution cannot.
- For a fintech firm, it might be a credit scoring algorithm that can accurately underwrite a segment of the market that traditional models misprice.
If an AI use case falls into this category, the default position should be to build. Owning the model, the logic, and the feedback loop allows you to refine and extend your competitive moat. Entrusting a core differentiator to a vendor is outsourcing your competitive advantage.
Utilities, by contrast, are necessary but non-differentiating functions. They are the operational plumbing of the business.
- An accounts payable department using AI to extract invoice data (vendor name, amount, due date).
- A customer support team using a sentiment analysis tool to categorise incoming tickets.
- An HR team using a tool to screen CVs for basic qualifications.
In these scenarios, multiple vendors offer mature, reliable solutions. The marginal benefit of a custom-built solution is likely to be small, if it exists at all. Attempting to build a "better" invoice OCR system from scratch is a poor use of elite engineering talent. For utilities, the default position should be to buy. The goal is to solve the business problem efficiently and move on.
This is, of course, a spectrum. The key is to be honest about where on that spectrum a given capability lies. A capability that is a utility for one company may be a differentiator for another. The critical question is not "Can we build it?" but "If we built the best version of this in the world, would it fundamentally help us win more customers or create more enterprise value?"
Five-year TCO: licences, integration, change, exit
A common mistake in the build-versus-buy analysis is comparing a vendor's year-one licence fee with the first-year salary cost of an engineering team. This comparison is misleading. A true Total Cost of Ownership (TCO) analysis must extend over a realistic strategic horizon—we recommend five years—and account for all direct and indirect costs.
Breaking down the costs
- Acquisition & Setup: For a buy decision, this includes licence fees, implementation/onboarding charges, and the internal team time required for integration. For a build decision, this is the cost of your development team (engineers, product manager, designer, ML scientist) for the initial build period, plus infrastructure setup.
- Ongoing Operation & Maintenance: For buy, this is the annual subscription cost, which may escalate based on usage (e.g., per API call, per user, per document). It also includes the cost of an internal administrator or team to manage the vendor relationship and operate the tool. For build, this is the ongoing salary cost of the team required to maintain, monitor, and incrementally improve the system. We typically see this requiring at least 25-50% of the original build team's capacity.
- Change & Evolution: No software is static. For buy, this is the cost of customisation requests (if possible) or the opportunity cost of waiting for the vendor to add a feature to their roadmap. For build, this is the cost of the team developing new features and adapting the model to changing business needs.
- Exit Costs: Often ignored, the cost of switching is real. For buy, this involves data extraction, migrating to a new vendor, and retraining users. The costs can be substantial if the vendor makes data portability difficult. For build, this is the cost of decommissioning the system and archiving data and code.
Worked Example: TCO for Claims Document Processing
A mid-sized European insurer processes 500,000 claims documents per year, a figure growing at 10% annually. They are evaluating two options for automating the classification and data extraction from these documents.
Option A: Buy (Vendor SaaS) The vendor charges €0.40 per document. They also have a one-time integration and setup fee of €100,000. An internal administrator is required at a fully loaded cost of €80,000 per year.
Option B: Build (Internal Team) Golux estimates a v1 can be built in 9 months by a team of four (1x PM, 1x ML Engineer, 2x Software Engineers). The fully loaded annual cost of this team is €550,000. After the initial build, a two-person team (€280,000/year) is required for maintenance and ongoing improvements. Annual cloud infrastructure costs are estimated at €40,000.
| Cost Component | Option A: Buy (Vendor SaaS) | Option B: Build (Internal Team) |
|---|---|---|
| Year 1 | ||
| Licence/Usage Cost | €200,000 (500k docs * €0.40) | €0 |
| Setup/Integration Fee | €100,000 | €0 |
| Internal Team Cost | €80,000 (Admin) | €412,500 (Team for 9 months) |
| Infrastructure Cost | €0 | €30,000 |
| Year 1 Subtotal | €380,000 | €442,500 |
| Year 2-5 (Annual Avg.) | ||
| Licence/Usage Cost | €267,500 (growing 10% YoY) | €0 |
| Internal Team Cost | €80,000 | €280,000 |
| Infrastructure Cost | €0 | €40,000 |
| Avg. Annual Cost (Y2-5) | €347,500 | €320,000 |
| Total 5-Year TCO | €1,770,000 | €1,722,500 |
In this scenario, the five-year TCO is remarkably close. The "buy" option offers faster time-to-value with a lower year-one cost, but the scaling usage fees make it more expensive in the long run. The "build" option requires more upfront investment but provides a lower, more predictable ongoing cost. With TCO being so similar, other factors like differentiation and lock-in risk become the deciding variables.
Lock-in, data portability and pricing power
The financial model above is clean, but the real world is messy. A vendor's primary commercial goal is to increase customer lifetime value, which often translates into creating dependencies that make it difficult or expensive for you to leave. This risk, known as vendor lock-in, is a critical factor in the build-versus-buy decision.
Technical Lock-in occurs when a vendor's technology is so deeply integrated into your workflows that replacement becomes a major engineering project. This can manifest through:
- Proprietary APIs: APIs that do not conform to open standards and have unique, complex structures.
- Non-standard data formats: Your data is stored or exported in a format that only the vendor's tools can easily read.
- "Sticky" ecosystems: The AI tool works seamlessly with other products from the same vendor, creating a bundle that is hard to dismantle piece by piece.
Commercial Lock-in is created through contracts and pricing models:
- Long-term contracts: Three- or five-year deals with steep penalties for early termination.
- Bundled discounts: The AI product is heavily discounted as part of a larger purchase, making it uneconomical to cancel just that one component.
- Unfavourable renewal terms: The vendor has the power to significantly increase prices at renewal, knowing the cost and pain of switching is high. We have seen clients face renewal uplifts of 200-300% once a vendor solution is deemed business-critical.
Data Portability and Model Ownership is a particularly acute issue in AI. When you use a vendor's AI, you are often providing them with valuable data. The key questions to ask before signing any contract are:
- Can I export my raw data at any time, in a standard format (e.g., JSON, CSV)?
- Can I export the outputs of the model (e.g., predictions, classifications, labels)?
- Who owns the model that is trained or fine-tuned on my data? Can I export the trained model weights? For most SaaS vendors, the answer to the last question is a firm "no".
This means that if you leave the vendor, you not only lose the tool but also the intelligence (the trained model) that you helped create with your data. You are forced to start from scratch. A custom-built solution, by contrast, ensures you own the data, the code, the infrastructure, and—most importantly—the trained model itself. This is an asset on your balance sheet.
Speed to value versus fit
The most common argument for buying is speed. A SaaS product can often be implemented and delivering value within weeks or a few months. A custom build project, even an agile one, will typically take a minimum of six to nine months to deliver a production-ready version one.
Speed to Value (Buy): The ability to quickly deploy a solution is a powerful advantage. It allows you to test a hypothesis, demonstrate value to the business, and begin learning from real-world usage far sooner. For a market where speed is paramount, or for a problem that is well-defined and standard, buying is often the fastest path to an outcome.
Degree of Fit (Build): The primary advantage of building is achieving a perfect fit for your specific needs. Off-the-shelf software is designed for the median customer. It will invariably have features you don't need and lack specific capabilities that are critical to your unique workflow. This forces you into one of two compromises:
- Change your process: You adapt your business operations to match the tool's workflow. This can sometimes be a positive, forcing an outdated process to modernise. But if your process is a source of efficiency or differentiation, this is a value-destroying compromise.
- Build workarounds: Your team builds brittle, custom scripts and integrations around the SaaS tool to bridge the functionality gap. This creates a "shadow IT" system that is fragile and expensive to maintain.
A custom-built solution avoids this. It is designed from the ground up to support your exact process, integrate seamlessly with your existing systems, and use your data in its native format. For a complex, mission-critical workflow, this perfect fit can unlock significant efficiency gains that a generic tool cannot. The challenge lies in accurately identifying which processes truly need a bespoke fit. As you begin an AI transformation project, this distinction is one of the first strategic lines to draw.
The hybrid pattern: buy the commodity, build the edge
The most sophisticated answer to the build-versus-buy question is often "both". The modern AI landscape, dominated by powerful foundation models from providers like OpenAI, Anthropic, and Google, makes a hybrid strategy more viable and attractive than ever.
The core idea is to buy or license the commodity component—the underlying model—and focus your valuable engineering resources on building the thin layer of differentiation on top. This allows you to combine the speed and power of pre-existing models with the unique fit of a custom solution.
This "differentiating edge" can take several forms:
- Retrieval-Augmented Generation (RAG): Connecting a foundation model to your proprietary knowledge base (e.g., product documentation, internal wikis, customer history) to provide contextually aware, accurate answers. The core model is a commodity; the curated data and retrieval mechanism are your edge.
- Fine-Tuning: Taking a pre-trained open-source model (like Llama or Mistral) and further training it on your specific, high-quality data to specialise it for a particular task, such as a legal-domain language style or a specific diagnostic process.
- Complex Business Logic: Wrapping a foundation model's capabilities within a robust workflow engine that incorporates your business rules, human-in-the-loop review steps, and integrations into core systems like your ERP or CRM.
This layered architecture is a powerful pattern we implement frequently in our AI engineering engagements.
+-------------------------------------------------------------+
| Your Differentiating Application |
| (Custom UI, business logic, fine-tuning, RAG, prompt chains)| <-- BUILD THIS
+------------------------------+------------------------------+
|
+------------------------------v------------------------------+
| Commodity AI Services / Foundation Models |
| (OpenAI API, Google Gemini, AWS Bedrock, open-source LLMs) | <-- BUY/LICENSE THIS
+------------------------------+------------------------------+
|
+------------------------------v------------------------------+
| Your Core Data & Systems |
| (CRM, ERP, Data Warehouse, Vector Database) |
+-------------------------------------------------------------+
This hybrid approach offers a compelling balance. You avoid the monumental cost and complexity of training a foundation model from scratch, while still retaining full ownership and control over the application logic and data integration that makes the solution valuable to your business.
Scoring model with a worked example
To bring these factors together into a repeatable, defensible decision, we use a weighted scoring model. This forces stakeholders to debate the weights of each factor before scoring the options, aligning everyone on what matters most.
Here is a sample template. The weights should be adjusted based on your company's strategic priorities (e.g., a startup might weight "Speed to Value" higher, while a regulated enterprise might weight "Lock-in Risk" higher).
| Criterion | Weight | Buy Score (1-5) | Buy Weighted | Build Score (1-5) | Build Weighted |
|---|---|---|---|---|---|
| Strategic Differentiation | 30% | 2 | 0.6 | 5 | 1.5 |
| 5-Year TCO | 25% | 3 | 0.75 | 3 | 0.75 |
| Speed to Initial Value | 15% | 5 | 0.75 | 2 | 0.3 |
| Customisation & Fit | 15% | 2 | 0.3 | 5 | 0.75 |
| Vendor Lock-in Risk | 10% | 1 | 0.1 | 5 | 0.5 |
| Internal Capability/Feasibility | 5% | 5 | 0.25 | 3 | 0.15 |
| TOTAL | 100% | 2.75 | 3.95 |
Scoring: 1=Poor, 5=Excellent
Worked Example: Applying the Model
Let's revisit the European insurer evaluating claims document processing. The TCO was similar, so the decision rests on other factors. Their leadership team agrees on the weights above.
- Strategic Differentiation (Weight: 30%): The insurer believes that a highly accurate, custom-tuned model could reduce manual review by an extra 15% compared to a generic tool, creating a significant operational advantage. Buy: 2, Build: 5.
- 5-Year TCO (Weight: 25%): As calculated previously, the costs are very close over five years. Buy: 3, Build: 3.
- Speed to Initial Value (Weight: 15%): The vendor can be live in 3 months. The internal build is 9 months for v1. Buy: 5, Build: 2.
- Customisation & Fit (Weight: 15%): The vendor solution cannot handle one specific, complex claim form that represents 10% of volume but 30% of manual effort. A custom solution would be designed to handle it perfectly. This requires strong software engineering to integrate with legacy policy systems. Buy: 2, Build: 5.
- Vendor Lock-in Risk (Weight: 10%): The leading vendor is known for aggressive price hikes at renewal and does not allow model export. If you're considering a vendor, it is vital to know how to evaluate providers properly. Buy: 1, Build: 5.
- Internal Capability (Weight: 5%): The insurer has a strong data science team but lacks deep MLOps and production software engineering experience. They would need to hire or partner to build successfully. Buy: 5 (easy), Build: 3 (feasible with help).
Result: The "Build" option scores significantly higher (3.95 vs 2.75), driven by its strength in strategic differentiation and fit, and the avoidance of high vendor lock-in risk. Despite the slower start and the need to augment their internal team, the long-term strategic value justifies the build decision.
Governance for a mixed portfolio
The build-versus-buy decision is not made once per company; it is made continuously for each new AI-powered capability. The result is a portfolio of both built and bought solutions. This mixed environment requires deliberate governance to prevent chaos.
We recommend establishing a central body—an AI Steering Committee or a Centre of Excellence—with cross-functional representation from technology, product, finance, and legal. This group's mandate should include:
- Maintaining the Decision Framework: Owning and updating the scoring model and TCO calculator to ensure all new projects are evaluated consistently.
- Vendor Portfolio Management: Tracking all AI vendor contracts, monitoring performance against SLAs, and managing renewal timelines proactively. This group should be planning for renewal negotiations 12 months in advance.
- Internal Project Oversight: Monitoring the TCO and ROI of internal AI projects to ensure they are delivering value and not becoming legacy burdens.
- Strategic Re-evaluation: Periodically reviewing bought solutions. A utility bought three years ago might now be on the cusp of becoming a strategic differentiator. The committee must decide if it's time to replace that vendor solution with a custom build to capture emerging competitive advantage.
- Risk & Compliance: Ensuring all solutions, whether built or bought, adhere to the company's data governance, security, and privacy standards.
This governance function ensures that your AI strategy remains a dynamic, deliberate exercise, rather than a disconnected series of ad-hoc decisions. For organisations needing support in establishing such a function, our AI consulting services can provide the frameworks and expertise to get started.
Frequently asked questions
When should a company build its own AI software?
A company should build its own AI software primarily when the function it performs is a core source of competitive advantage. If the specific workflow, the model's logic, or the way you use your unique data is how you win in the market, building is the only way to protect and enhance that edge. Building is also necessary when data residency or security policies absolutely forbid sharing data with any third-party vendor. Finally, a build can be more economical at extreme scale, where a vendor's per-unit pricing model would lead to exorbitant costs that outstrip the total cost of ownership of an internal team.
Key takeaways
- Start with the differentiation test. If a capability isn't core to your competitive advantage, buy a commodity solution and focus your resources elsewhere.
- Calculate a five-year Total Cost of Ownership (TCO), not just the year-one price. Include costs for integration, maintenance, internal staffing, and potential exit.
- The "hybrid" pattern is often optimal in the age of foundation models. Buy the underlying model as a commodity and build your unique, differentiating logic on top.
- Use a weighted scoring model to make the decision objective and transparent. Force a debate on the strategic importance of each factor before scoring the options.
- Actively govern your portfolio of built and bought AI. The landscape changes, and today's correct "buy" decision might be a candidate for a strategic "build" in two years.
- Vendor lock-in is a significant risk. Scrutinise contracts for data portability, renewal terms, and pricing models that scale with your success.
The build-versus-buy decision for AI is not a one-time choice but a continuous strategic exercise. By applying a structured framework that weighs differentiation, cost, risk, and speed, you can allocate your capital and talent to the initiatives that create lasting value. The right answer is rarely a simple binary, but a thoughtful portfolio of both approaches.
If you're shaping your AI strategy and need a sparring partner to validate your approach, our senior teams can help you run this analysis for your specific context.

