The short version
- Total cost (Year 1): an in-house team means several senior salaries plus recruiting, management and tooling. The agency route is one fixed-price project plus optional ongoing support, typically a fraction of the in-house cost.
- Time to first production: in-house 6 to 12 months. Agency 6 to 12 weeks.
- In-house wins when: AI is core to your product, you have 12+ months runway, and you can hire and keep good ML engineers in 2026.
- Agency wins when: speed matters, the AI is one of many initiatives, and you don’t want to run a recruiting process.
- Most successful companies do both: hire one or two senior people for ownership, work with an agency to ship fast.
If your business needs custom AI in 2026, you have two paths. Hire ML or AI engineers in-house, or work with a specialist agency that ships AI systems. Both work.
They have very different cost structures, timelines, risk profiles and outcomes. The right answer depends on what you’re actually trying to do.
I’ve done this from both sides. I’ve been the in-house lead trying to get ML production-ready while the rest of the engineering org ships the actual product.
I now run an agency that has shipped 50+ projects for businesses. The trade-offs below are what I’ve actually seen play out.
The real cost of building it ‘for free’ in-house
The most common in-house pitch is that the engineers you already have are smart, they’ll figure it out, and the only cost is API tokens. That maths misses three things:
- Salary: a senior AI/ML engineer in 2026 earns a high base salary in Europe, North America, Singapore, Hong Kong and Australia alike. Add benefits, equipment and manager overhead, and the fully loaded cost is well above the base.
- Hiring time: 4 to 8 months from posting to productive employee. That’s 4 to 8 months your problem isn’t getting solved.
- Project ramp: even a great hire takes 3 to 6 months to ship the first production AI feature. Domain knowledge, eval infrastructure, MLOps tooling and prompt iteration all get built from scratch.
An honest in-house budget for a one-engineer Year 1:
| Cost | What it adds up to |
|---|---|
| Senior AI engineer (loaded) | The biggest line: salary plus benefits |
| Recruiting cost (agency / referral) | A recruiter’s fee or referral bonus |
| Manager overhead (part of an EM’s time) | A share of a manager’s salary |
| Tooling, infra, model APIs | Grows with usage |
| Lost months (no production AI for ~6 months) | opportunity cost |
| Year 1, single engineer | Far more than the salary alone |
And one engineer is a brittle bus-factor. Most serious in-house AI starts with two and adds a third. Year 1 for a small team costs two or three of those budgets, mostly with nothing in production yet.
Agency comparison:
- One project, at a fixed price agreed before work starts. I don’t publish a price list, because the number depends on your systems, data and scope. I quote it after a short scoping chat, so you know the full cost up front.
- In production in 6 to 12 weeks.
- Optional managed support after launch for hosting, monitoring and ongoing tweaks, agreed at the same time.
- Optional follow-on work for new features, scoped and priced the same way, scaled up or down.
Compare Year 1 results like for like. In the time and budget that gets one in-house team to its first deployment, an agency typically ships several production AI systems.
When in-house wins
I’m not anti-in-house. There are clear cases where it’s the right call:
1. AI is core to your product
If you’re an AI-first company, where the AI is the product rather than a feature, you must own the talent. Iterating on a model that is your product happens daily, not quarterly. Outsourcing that is outsourcing your moat.
2. You have 12+ months and an experienced engineering culture
If you can wait, hire well, and invest in MLOps over 12 months, in-house compounds beautifully. Year 2 is much cheaper than Year 1 because the foundation is in place.
3. Your data is too sensitive for any third party
For some defence, intelligence, or critical-infrastructure clients, no agency engagement is on the table. In-house is the only option, and the cost is the cost.
4. You can actually hire
The ML talent market in 2026 is brutal, and big tech offers packages most companies can’t match. If you’re a non-tech company in a tier-2 city, you’ll lose every senior candidate to remote-first competitors. Be honest about whether you’ll find and keep good people.
When agency wins
1. Speed matters more than ownership
When business AI initiatives fail, the usual cause is a project that took too long. By the time it ships, the business need has shifted.
Agencies ship much faster because the foundation already exists. You pay for delivery instead of rebuilding the MLOps wheels every other team builds.
2. AI is one of many initiatives
Picture a CTO who also owns the website rebuild, the migration to Postgres 17, the SOC 2 audit and three product features. Asking them to build AI competency too is overload. Use the agency for the AI work; let the engineering org focus on the product.
3. You want a working result, not a hiring project
Hiring a senior ML engineer takes 4 to 8 months. Negotiating an agency engagement takes 2 to 4 weeks. If your CEO needs the customer-support AI deployed before next year’s board meeting, the maths is decisive.
4. Your budget is project-shaped, not headcount-shaped
Capex / project budgets are easier to approve than new headcount in most companies. A fixed-price project with a defined scope and end date is a different conversation from asking for a new permanent headcount.
Scope your custom AI project in 30 seconds
Three questions show the shape of your build and a realistic timeline, based on real shipped projects. After a short scoping chat with me you have a written fixed-price quote, so you know the full cost before anything starts.
Or build your own AI system piece by piece and send the design in for a written quote →
The hybrid that actually works
The pattern I see in the best-performing companies:
- Hire one senior AI/ML person to be the technical owner. They review the agency’s work, manage handover, run the evals and decide when to internalise or outsource.
- Use an agency for the first few production systems. They ship fast, they bring patterns, your senior person learns from the implementation.
- Internalise gradually. As the senior owner gets comfortable, hire a second engineer, then a third. Move from agency-led to senior-led to team-led over 12 to 18 months.
- Keep the agency on retainer for spike work. New AI initiative, integration with a new system, urgent feature: the agency stays on call.
This is ‘build the team while shipping the product’ instead of ‘build the team for 12 months, then ship the product’. Year 1 has working AI in production, the business gets the wins, and the in-house team grows on real work instead of greenfield setup.
Common objections, addressed
‘An agency won’t understand the business.’
True for some. False for any agency that does discovery properly: I sit with your team, watch the work and write the spec before code.
After two weeks I know the workflow as well as anyone except the people doing it daily. My process page walks through this.
‘What about IP? Who owns it?’
You should. Look for an agency where the contract explicitly assigns IP to you.
Avoid deals where you license the system from the agency. That’s vendor lock-in dressed up as an agency engagement. AI Makers writes contracts where you own everything: code, prompts, evals, integrations.
‘What if the work moves in-house later?’
Plan for it. The right agency builds with handover in mind: clean code, written architecture, recorded walkthroughs, a runbook.
A good agency hands the work over cleanly when you are ready to take it in-house. The wrong agency builds a system only they can maintain. Avoid them.
‘Why not use freelancers instead?’
Sometimes — for small, well-scoped tasks. The platforms have improved: Upwork’s AI and ML engineers are vetted, contracts, milestones and payments run on-platform, and Job Success Scores and past client feedback show who has actually shipped. A stalled contractor can be swapped in days, not months. That fixes hiring risk, not delivery risk: one freelancer is still one bus factor, no eval infrastructure, no support when things break. For prototypes and fixed-scope work, fine. For production systems your business depends on, I still back the agency model — a team and accountability.
Disclosure: the Upwork link above is a paid placement; it hasn’t changed my view on freelancers versus agencies.
‘What about offshore development at a fraction of the price?’
The quote looks great until the project ships. Then you find the AI fails on real edge cases and the integrations break under load. And there’s no-one to talk to in your time zone.
Offshore can work for the right kind of well-defined task. Custom AI is rarely that: the work is too specific, the iteration too tight, the stakes too high. Pay for senior people who’ve shipped before.
The 5-question fit test
If you’re trying to decide right now, answer these five:
- Is AI core to your product, or supporting your business? Core → in-house. Supporting → agency.
- Do you need it shipped in 3 months, or can you wait 12? 3 → agency. 12+ → in-house possible.
- Can you actually hire and keep senior ML engineers right now? Yes → in-house possible. Honestly no → agency.
- Is this one project, or a permanent capability? One project → agency. Permanent capability → in-house (or hybrid).
- Is your budget project-shaped or headcount-shaped? Project → agency. Headcount → in-house.
If you got four or five ‘agency’ answers, the call is clear. Four or five ‘in-house’ answers, also clear. Mixed answers → hybrid.
Whichever path you pick
If you’re going in-house: don’t under-budget. A single engineer’s Year 1 costs far more than the salary. Plan for the ramp.
If you’re going agency: pick one that has shipped your kind of work before, owns the IP transfer cleanly, and is willing to be replaced. This is the question list I’d use.
Either way, the worst outcome is the third path: the half-built in-house effort that’s neither finished nor abandoned, eating budget and morale for 18 months. Decide, commit, and ship.
If you want a real number for the agency path
The interactive cost estimator helps you frame the scope in 30 seconds. Every project I take on is a fixed price, quoted after a short scoping chat with me. On that call I’ll tell you straight whether in-house actually suits you better, and walk you through what that would look like.