AI Engineer vs ML Engineer vs Full-Stack Engineer
Introduction
Three job titles are often mixed up: AI engineer, ML engineer and full-stack engineer. The mix-up can make it sound as if you must become a machine learning expert first. You do not, and the reasons are below.
The AI Stack: Application, Model & Infrastructure Layers set out three layers. This page puts the three roles on them, from two sources: Chip Huyen's book AI Engineering (O'Reilly, 2025), and swyx's essay "The Rise of the AI Engineer" (June 2023), which named the role.
The One-Sentence Difference
The quickest test: do you make the model, or build on one? Huyen puts it in one sentence: "AI engineering differs from ML engineering in that it's less about model development, and more about adapting and evaluating models."
- An ML engineer makes models. Model development, the middle layer, is "the layer most commonly associated with traditional ML engineering."
- An AI engineer builds products on a model someone else trained, in the top layer, and goes down a layer when the product needs it.
- A full-stack engineer builds the product around the model: the interface, the backend, the APIs. Of the people who become AI engineers, Huyen writes, "more increasingly come from web development or full-stack backgrounds."
swyx drew the split as a line, the API line, with the people who make models on one side and the people who build on them on the other. He added that the line can be crossed: "the API line is permeable - AI Engineers can go left to finetune/host models and Research Engineers go right to build atop APIs too!"

The figure puts the three roles on either side of that line, with the work each one does.
AI Engineer vs ML Engineer
Huyen names three ways that building on foundation models differs from traditional machine learning engineering:
- Who trains the model. "Without foundation models, you have to train your own models for applications. With AI engineering, you use a model someone else has trained." So the work is "less on modeling and training, and more on model adaptation."
- How big the models are. "AI engineering works with models that are bigger, consume more compute resources, and incur higher latency than traditional ML engineering." That puts "more pressure for efficient training and inference optimization."
- What the models say. They "can produce open-ended outputs", which "are also harder to evaluate. This makes evaluation a much bigger problem in AI engineering."
The two jobs also start at opposite ends. swyx: "Instead of requiring data scientists/ML engineers do a laborious data collection exercise before training a single domain specific model that is then put into production, a product manager/software engineer can prompt an LLM, and build/validate a product idea, before getting specific data to finetune."
Data and evaluation belong to both, at different scales. In swyx's words, "MLR/MLEs handle foundation model concerns - aka pretrain scale data and general benchmark evals; but AI Engineers should certainly view product-specific data and evals as their job."
And the two overlap: "Regardless of where organizations position AI engineers and ML engineers, their roles significantly overlap." Huyen adds that "Existing ML engineers can add AI engineering to their list of skills to enhance their job prospects, and there are also AI engineers with no ML experience." One difference she points out is closeness to the product. In traditional ML engineering, she writes, model development and product development are often separate, "with ML engineers rarely involved in product decisions at many organizations", while "with foundation models, AI engineers tend to be much more involved in building the product."
AI Engineer vs Full-Stack Engineer
This pair is closer than people expect. Huyen: "The increased emphasis on application development, especially on interfaces, brings AI engineering closer to full-stack development." She quotes Anton Bacaj: "AI engineering is just software engineering with AI models thrown in the stack."
The tools moved towards web developers too. Machine learning engineering has traditionally been "Python-centric"; now there is "increasing support for JavaScript APIs", such as LangChain.js, Transformers.js, OpenAI's Node library and Vercel's AI SDK. And a full-stack engineer brings what Huyen calls "their ability to quickly turn ideas into demos, get feedback, and iterate."
What is new for a full-stack engineer moving into AI:
- Answers vary. "Sampling makes AI models probabilistic." That same nature "also causes inconsistency and hallucinations", so you measure quality with evaluations instead of exact assertions.
- Context is part of the code. "Prompt engineering is not just about telling a model what to do. It's also about giving the model the necessary context and tools for a given task."
- A new kind of attack. Models follow instructions, and "this ability also opens them up to prompt attacks in which bad actors get models to follow malicious instructions."
- A new unit of cost. Anthropic and OpenAI both price their models per million tokens (MTok), with input and output priced apart.
The rest carries over: the backend, the APIs, deployment, and a sense of what a product needs.
Do I Need to Be an ML Engineer First?
No. Huyen: "With the availability of foundation models, ML knowledge is no longer a must-have for building AI applications." Andrej Karpathy, quoted in swyx's essay, said the same of the role: "One can be quite successful in this role without ever training anything."
ML knowledge still pays. Huyen calls it "still extremely valuable, as it expands the set of tools you can use, and helps with trouble-shooting when a model doesn't work as expected." That is why Foundations of AI Engineering covers how models work, from Language Models 101: Predicting the Next Token to Pretraining: Learning from the Internet, before it turns to prompting.
What the work rests on is software engineering. swyx's prediction in 2023: "I think software engineering will spawn a new subdiscipline, specializing in applications of AI and wielding the emerging stack effectively".
The Lines Are Blurry: Judge Skills, Not Titles
Companies do not agree on the names. In job headlines on LinkedIn on 17 December 2023, Huyen found both: "Many companies put AI engineering and ML engineering under the same umbrella", while "Some companies have separate job descriptions for AI engineering". swyx: "All job titles are flawed, but some are useful."
So read what the job does, not what it is called:
- prompts, retrieval, agents, evaluation, and shipping features built on a model: AI engineering;
- training models from data, or pre-training them: ML engineering;
- the product with no model in it: full-stack engineering.
Try It Yourself: Who Do You Hire?
Eight briefs. For each, pick the role whose work it is. One question settles most of them: does the work make the model, build on one, or build the product around it?
Who do you hire?
1 / 8Multiple choice
Multiple choice
Multiple choice
Multiple choice
Multiple choice
Multiple choice
Multiple choice
Multiple choice
Common Misconceptions
- "AI engineering is ML engineering with less depth." It is a different focus: "less about model development, and more about adapting and evaluating models", and evaluating open-ended answers is "a much bigger problem in AI engineering."
- "You need a PhD or a machine learning background." In Huyen's words, "there are also AI engineers with no ML experience."
- "Full-stack and AI engineering are unrelated." The emphasis on interfaces "brings AI engineering closer to full-stack development."
- "The title tells you the job." It does not: in December 2023 some companies put the two roles under one title and some kept them apart.
- "AI engineers never fine-tune or host a model." swyx's line is permeable: AI engineers "can go left to finetune/host models".
Key Takeaways
- ML engineers make models; AI engineers build products on models someone else trained; full-stack engineers build the product around them, and more and more of them move into AI engineering.
- The test: do you make the model, or build on one?
- You do not need to be an ML engineer first. ML knowledge helps; it is no longer a must-have.
- The line between the roles can be crossed both ways, and titles vary from company to company: judge the work, not the title.
Next: What You Can Build: The Foundation-Model Use-Case Map, the kinds of applications these roles build.