Cost of an In-House ML Team vs a Managed AI Service in 2026: About $1.1M a Year, and Where It Breaks Even
A four-person in-house ML team costs about $1.15 million in its first year once salary, benefits, recruiting and compute are counted. Here is every line of that figure, and the request volumes at which it beats a managed AI service.
The cost of building an in-house ML team for one production workload comes to about $1.15 million in the first year and about $1.08 million a year after that for four people (two ML engineers, a data engineer and an MLOps engineer), using Built In's 2026 machine learning engineer salary averages, the Bureau of Labor Statistics' benefits data and list-price GPUs. A managed AI service costs between $0.30 and $24 per 1,000 decisions at November 2026 list prices, depending on the model. On those numbers, the team only becomes cheaper than a managed service for a single workload above roughly 13 million decisions a month on a mid-priced model, and above 260 million on the cheapest ones.
That is the whole answer in one paragraph. The rest of this piece shows how each number is built, so that a reader can swap in their own salaries, volumes and prices and see whether their case lands on the other side of the line.
Why salary pages disagree by more than 2x
Any build-versus-buy calculation starts with pay, and the first thing a buyer finds is that the sources do not agree. PayScale puts the average US machine learning engineer base salary at $126,315 in 2026, from 944 salary profiles last updated October 12. Built In puts the average base at $162,080, with another $49,942 in additional cash, for total compensation of $212,022. Levels.fyi, updated November 17, reports a median total compensation of $287,500 from 1,027 salaries, with a 75th percentile of $389,850. The Bureau of Labor Statistics' closest occupation, data scientists, had a median wage of $120,230 in May 2025.
Levels.fyi's median is 2.28 times PayScale's average, and three things explain most of the gap. The first is what is counted: PayScale's headline is base salary, while Levels.fyi's is total compensation, which includes stock and bonus. The second is who reports: Levels.fyi's sample leans toward large technology companies that pay heavily in equity, while PayScale and the BLS cover a wider range of employers. The third is location. Built In's San Francisco page puts ML engineer base pay at $207,474 and total pay at $291,430, which is 28% and 37% above its own national averages.
For a company outside Big Tech hiring in a mix of cities, Built In's national totals sit in the middle of the range and include bonus cash, which is what an employer actually pays out. This model uses them: $212,022 for an ML engineer and $150,234 for a data engineer. Built In has no MLOps page, so its DevOps engineer average, $150,355 in total, stands in for the platform role. A company hiring in San Francisco against large technology employers should expect the Levels.fyi end instead, which would add roughly a third to each ML engineer's pay.
From salaries to a fully loaded team
Salaries are the largest line, but not the whole of it. Four more costs sit on top, and each needs a stated basis.
Benefits and payroll taxes. The BLS Employer Costs for Employee Compensation release for June 2026 breaks down what private employers pay for management, professional and related workers. Of $78.88 in total compensation, $54.06 is wages and $24.82 is benefits. But two of those benefit lines, paid leave ($7.37) and supplemental pay such as bonuses ($3.59), are already inside a total-compensation salary figure. What remains is insurance ($5.87), retirement ($2.92) and legally required benefits such as payroll taxes ($5.07): $13.86 on top of $57.65 in cash pay, or 24.0%. That is the load used here. It is an average across all professional jobs, not ML roles specifically.
Recruiting. SHRM's benchmarking puts the average cost per hire at "nearly $4,700," but that figure dates from 2022 and covers all roles. No primary source publishes agency fees for ML hires, so this model assumes 20% of first-year base salary per hire. That is an assumption, and readers who fill roles through their own recruiters should replace it.
Ramp. There is no primary measurement of how long a new ML team takes to ship its first production model. This model assumes five months, during which the team is paid but the workload is still running on whatever it ran on before. Ramp therefore does not add cash; it delays the date the team starts to pay for itself.
Attrition. The BLS JOLTS survey put the monthly quits rate in the information industry at 1.4% in both August and September 2026, or roughly 16.8% of staff a year when multiplied out. The model charges each departure a replacement fee (20% of base) plus 2.5 months of lost output at loaded pay.
| Team | Pay loaded at 24% | Year one | Year two onward |
|---|---|---|---|
| 3 people (2 ML, 1 data) | $712,105 | $935,140 | $885,160 |
| 4 people (adds MLOps) | $898,545 | $1,148,344 | $1,082,622 |
| 5 people (3 ML, 1 data, 1 MLOps) | $1,161,452 | $1,443,667 | $1,360,177 |
Before the load, cash pay is $574,278, $724,633 and $936,655 for the three sizes. Year one adds recruiting fees to the loaded salaries; later years add attrition instead ($40,048, $51,070 and $65,718 a year for the three team sizes). Both include $133,007 a year of non-staff cost, built as follows.
The compute and data lines
An in-house team that trains and serves its own model pays for GPUs. Together AI's list price for an on-demand H100 dedicated endpoint is $5.49 an hour, which is $4,008 for a 730-hour month. Two replicas, enough to keep serving when one fails, cost $96,185 a year. Experiments add more: 2,000 H100-hours a year, an assumption, is $10,980. Retraining a small model is cheap at Together's rate of $0.34 per million training tokens for Llama 3.1 8B: a monthly 30-million-token run is about $10, or $122 a year. Experiment tracking on the Pro tier of CoreWeave's Forge (the Weights & Biases product) starts at $60 a month.
Data labelling is the line with the least public pricing. No labelling vendor's list price was found in a primary source, so the model holds $25,000 a year as a placeholder. A workload that needs expert labels, such as medical or legal review, will spend far more.
One number is missing from every published comparison, including this one: whether two H100s can actually serve the workload at high volume. That depends on the model size and the traffic pattern, and it has not been measured for any workload in this model. Above a few million decisions a month, readers should expect the GPU line to grow.
What the managed side costs per decision
A managed service charges per token, so the useful unit is cost per decision. Take a typical classification or extraction call of 1,500 input tokens and 300 output tokens with no caching. At OpenAI's and Anthropic's November 2026 list prices, that costs $0.30 per 1,000 decisions on OpenAI's gpt-6-luna or Anthropic's Claude Haiku 5.5 (both $0.10 input and $0.50 output per million tokens), $2.48 on gpt-5.4-mini, $6.00 on Claude Sonnet 5.5 or gpt-6.2-sol, $12.00 on Claude Opus 5.5 and $24.00 on gpt-6.2-astra. The same decision varies 80-fold in price depending on the model, while a team's cost does not move at all, so where a workload sits in that range decides most of the answer.
Both providers cut those prices for non-urgent work. Anthropic's Batch API is a 50% discount, and OpenAI's batch rates are about half its standard ones. Data residency moves the other way: Anthropic charges 1.1 times the normal price for US-only inference on its newer models.
A managed service is not zero headcount. Someone still writes prompts, owns the evaluation set and watches quality. This model charges the managed side half an ML engineer at loaded pay, $131,454 a year.
Where the lines cross
Break-even is the monthly volume at which the four-person team's year-two cost, $90,219 a month, equals the managed bill plus its half-time owner. In decisions per month:
| Managed price per 1,000 decisions | 1 workload | 3 workloads (each) | 5 workloads (each) |
|---|---|---|---|
| $0.30 (gpt-6-luna, Haiku 5.5) | 264M | 86M | 51M |
| $2.48 (gpt-5.4-mini) | 32M | 10M | 6.1M |
| $6.00 (Sonnet 5.5, gpt-6.2-sol) | 13M | 4.3M | 2.5M |
| $12.00 (Opus 5.5) | 6.6M | 2.2M | 1.3M |
The multi-workload columns assume one team of four runs every workload, with each extra workload adding its own two GPUs and labelling budget to the team side and another half-time owner to the managed side. The pattern is the useful part. The team is a fixed cost, so it pays off by being spread: across volume, across workloads, or both. A team that runs five workloads on a mid-priced model breaks even at about 2.5 million decisions a month each. A team built for one workload on a cheap model almost never does.
Two caveats change how to read the table. It assumes the team's own model matches the managed model's quality on the task, which has not been measured for any workload here. And it ignores year one, when recruiting fees and five months of ramp push the in-house cost higher still.
A worked case shows how much year one matters. Take three workloads at 5 million decisions a month each, running on Claude Sonnet 5.5 at 1,500 input and 300 output tokens per decision. Managed, each costs $30,000 a month in tokens, so three cost $1,080,000 a year; add three half-time owners at $131,454 each ($394,363) and the total is $1,474,363. The four-person team, from year two, costs $1,325,236: loaded pay of $898,545, attrition of $51,070, experiments and tracking of $11,700, and $121,307 per workload for GPUs, labelling and retraining. That is $149,127 a year less than managed. In year one, though, recruiting ($116,792) replaces attrition, and the workloads stay on Sonnet for the five ramp months, another $450,000, so the team costs $1,840,958, or $366,595 more than staying managed. It takes about two and a half years of savings to earn that back. If Claude Haiku 5.5 passes the same quality bar, the comparison ends there: the same three workloads would cost $448,363 a year managed.
The costs both sides keep paying
Launch is not the end of the bill on either side. Evaluations, monitoring and on-call fall on the in-house team entirely; on the managed side, the provider runs the servers and handles their on-call, but the customer still owns the evaluation set and the quality monitoring, which is why the half-time owner is in the model.
Model upgrades fall differently. In-house, retraining when a model drifts is the team's job and costs little in compute but a lot in time. On the managed side, the provider decides when a model goes away. OpenAI's October 14, 2026 notice retires GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini on January 14, 2027, and its deprecations page says fine-tuned versions "follow the same shutdown schedule as their underlying base models." Anthropic commits to "at least 60 days' notice" before retiring a public model and is retiring Claude Sonnet 4.5 on November 30, 2026. Each forced migration means re-running evaluations and, sometimes, rewriting prompts: work the managed side's owner absorbs.
What flips the decision
Cost is not the only input, and several factors outweigh it.
Time to a first production model. A managed API works on the first day. An in-house team has to be hired and then ramp, five months in this model before the first model ships.
Success rates. Fortune's August 2025 report on MIT NANDA's State of AI in Business 2025, based on 150 executive interviews, a 350-person survey and 300 projects, found that purchased AI tools succeeded 67% of the time and internal builds about one-third as often. Fortune's account names missing in-house expertise among the reasons. It is one study, built largely from interviews and a survey, but it points the same way as the cost model.
AI as the product. If the model is what the company sells, owning it and the team that improves it is a strategic choice, not a cost line.
Data residency and regulation. Where rules forbid sending data to a third party, the managed option may not exist at any price. Where they only require it to stay in-country, Anthropic's 10% US-only premium is far cheaper than a team.
Weights and training data. With a pay-per-token API, the customer owns no model. An in-house team owns its weights outright.
Spare capacity. A company that already employs ML engineers with free time pays only the marginal cost of a new workload, not the $1.08 million in this model.
Between those two options sit managed custom-model services. Parsec, a small language model lab, trains and serves a compact model on a customer's own traffic and sends requests it is not confident about to a closed frontier model. Its comparison page claims a first custom model in "about 4 weeks," against "100+ ML engineer hours, plus procurement" for running your own GPUs; neither figure has a stated source, and both are Parsec's own. Its inference page says "Weights: Yours. Download them," but Parsec publishes no price for the service, so it cannot be placed on the break-even table.
Bottom line
For one workload below about 10 million decisions a month on anything up to a Sonnet-class model ($6 per 1,000 decisions), a managed AI service is cheaper than a four-person in-house team, and it is in production months sooner. On the cheapest models it stays cheaper into the hundreds of millions. Build in-house when you run several AI workloads on expensive models, when the model is your product, when regulation rules out third-party processing, or when you already have the engineers. Before deciding, replace this model's salary, recruiting and ramp assumptions with your own, price your actual tokens per request, and test whether a small model you could own matches the managed one on your task.
Sources
- PayScale, Machine Learning Engineer salary: https://www.payscale.com/research/US/Job=Machine_Learning_Engineer/Salary
- Built In, Machine Learning Engineer salary in US: https://builtin.com/salaries/us/machine-learning-engineer
- Built In, Data Engineer salary in US: https://builtin.com/salaries/us/data-engineer
- Built In, DevOps Engineer salary in US: https://builtin.com/salaries/us/devops-engineer
- Built In, Machine Learning Engineer salary in San Francisco: https://builtin.com/salaries/us/san-francisco-ca/machine-learning-engineer
- Levels.fyi, Machine Learning Engineer pay in the United States: https://www.levels.fyi/t/software-engineer/title/machine-learning-engineer/locations/united-states
- BLS, Occupational Outlook Handbook, Data Scientists: https://www.bls.gov/ooh/math/data-scientists.htm
- BLS, Employer Costs for Employee Compensation, June 2026: https://www.bls.gov/news.release/ecec.nr0.htm
- BLS, ECEC Table 4, by occupational group: https://www.bls.gov/news.release/ecec.t04.htm
- BLS, JOLTS Table 4, quits by industry: https://www.bls.gov/news.release/jolts.t04.htm
- SHRM, The real costs of recruitment: https://www.shrm.org/topics-tools/news/talent-acquisition/real-costs-recruitment
- Together AI, Pricing: https://www.together.ai/pricing
- CoreWeave, Forge pricing: https://coreweave.com/forge-pricing
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, Deprecations: https://developers.openai.com/api/docs/deprecations
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Anthropic, Model deprecations: https://platform.claude.com/docs/en/about-claude/model-deprecations
- Fortune, An MIT report that 95% of AI pilots fail spooked investors: https://fortune.com/2025/08/21/an-mit-report-that-95-of-ai-pilots-fail-spooked-investors-but-the-reason-why-those-pilots-failed-is-what-should-make-the-c-suite-anxious/
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/
- Parsec, Inference: https://parseclab.ai/inference/