What Is AI Engineering? (And Why It Exploded)
Introduction
In 2023, Shawn Wang, who writes as swyx, summed up the change in one sentence: "A wide range of AI tasks that used to take 5 years and a research team to accomplish in 2013, now just require API docs and a spare afternoon in 2023."
What changed is where the hard part lives. A few labs now train large, general models, and many more teams build products on them. That shift made a new kind of engineering work, and gave the people who do it a name: AI engineers.
The sections below say what AI engineering is, why it grew so quickly and when, what the work looks like day to day, and what a first program looks like.
What Is AI Engineering?
On the page for her book AI Engineering (O'Reilly, 2025), Chip Huyen defines the subject as "the process of building applications with readily available foundation models."
A foundation model is the large model such an application starts from. The Stanford report that gave these models their name in 2021 described them as models that "are trained on broad data at scale and are adaptable to a wide range of downstream tasks." Some are offered through an API; some are published as open weights you can download and run yourself.
The point is that you do not make the model. You build the product around it: what the model is asked, what it is given to read, how its answers are checked, what each answer costs, and what it is allowed to do. It is like the way a backend engineer builds on a database without writing one.
AI engineering grew out of machine learning engineering, which Huyen calls "the overarching discipline involved with building applications with all ML models." The two differ in where they start:
| ML engineer | AI engineer | |
|---|---|---|
| Core work | trains models on data | builds products on models already trained |
| Starts from | a dataset | a model, through an API or as open weights, and a product idea |
| Typical skills | statistics, training pipelines, GPUs | software engineering, prompting, retrieval, evaluation |
| Output | a trained model | a feature people use |
Neither is the better job; they are different jobs, and they meet in the middle. AI Engineer vs ML Engineer vs Full-Stack Engineer draws the lines in detail. The courses here are about the second column.
Why It Exploded
Machine learning is decades old. Three things together made building on foundation models a job of its own.
1. The hard part is done once, by a few labs. Training a large model is the big, expensive part: the model of the GPT-3 paper had 175 billion parameters. The labs that train them offer them to everyone through an API, or publish the weights. swyx's essay credits the shift to "the emergent capabilities and open source/API availability of Foundation Models."
2. One model does many jobs, told what to do in words. The GPT-3 paper of 2020 described the method of its time: take a model pre-trained on a large body of text and fine-tune it on each task, a method that "still requires task-specific fine-tuning datasets of thousands or tens of thousands of examples." GPT-3 was used another way, "without any gradient updates or fine-tuning, with tasks and few-shot demonstrations specified purely via text interaction with the model." One model, many tasks, each written as text.
3. You can start without training anything. A first version needs no labelled dataset and no GPUs of your own. Andrej Karpathy, quoted in swyx's essay, put it plainly: "One can be quite successful in this role without ever training anything."

The demand shows in job postings. Stanford's AI Index 2026, which counts postings in Lightcast's database, found that 2.6% of all job postings in the United States asked for AI skills in 2025, and that from 2024 to 2025, "postings referencing agentic AI, AI agents, or agentic systems exponentially increased."
Why Now? A 14-Year "Overnight" Success
AI engineering can look sudden. It is the latest of a line of steps, each standing on the ones before it:
- 2012, AlexNet. A deep network, trained on GPUs, classified images "considerably better than the previous state-of-the-art results."
- 2017, the Transformer. The paper "Attention Is All You Need" proposed "a new simple network architecture, the Transformer, based solely on attention mechanisms."
- 2020, GPT-3. One model took its tasks as text, with no fine-tuning.
- 2021, foundation models. A Stanford report gave this kind of model its name.
- 2022, ChatGPT. Stanford's AI Index dates generative AI from it: "We use 2022 as the introduction year for generative AI, which was the year ChatGPT was released."
- 2023, the AI engineer. swyx's essay, "The Rise of the AI Engineer", named the role.
- 2024, MCP. Anthropic open-sourced the Model Context Protocol, "a new standard for connecting AI assistants to the systems where data lives."
- 2025, the book. Huyen's AI Engineering set out the discipline end to end.

Fourteen years from AlexNet to today. First the models became general enough to take a task in words; then building on them became work of its own.
What Does an AI Engineer Do?
Mostly software engineering, with one new part: a component whose answers are not fixed in advance. A demo is easy. Making it dependable, affordable and safe is the work. Day to day, an AI engineer:
- designs prompts and context: what the model is told, and what it is given to read;
- connects the model to real data: retrieval-augmented generation (RAG), so that answers rest on documents and not on what the model remembers;
- builds agents and tools: lets the model call functions, search, run code and act;
- evaluates: because answers vary, their quality is measured with evals rather than hoped for;
- adapts a model when prompting is not enough: fine-tuning;
- ships it: speed, cost, guardrails and monitoring in production.
Each of those has a course of its own here; the last section lists them in order.
A Taste: One Call to a Foundation Model
To feel the shift, here is a sentiment classifier. Before foundation models it meant a dataset of labelled reviews and a model trained on them. Here it is one call to a model that is already trained, with the task written into the request. Setting Up: Anthropic (Claude) & OpenAI SDKs sets up your environment properly; this is only to see the shape.
# AI engineering with Claude (Anthropic)
from anthropic import Anthropic
client = Anthropic() # reads ANTHROPIC_API_KEY from the environment
resp = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Classify the sentiment as POSITIVE, NEGATIVE, or NEUTRAL. "
"Reply with one word only.\n\n"
"Review: 'Shipping was slow but the product is fantastic.'",
}],
)
for block in resp.content: # a thinking block may come first
if block.type == "text":
print(block.text)The reply is a list of blocks. The current Sonnet may think before it answers, and its thinking comes back as a block of its own, so the loop prints only the text. max_tokens caps everything the model writes, its thinking included, so it is set well above what one word needs.
The same idea with OpenAI, on the Responses API. OpenAI's own guide says "we recommend using the Responses API over the older Chat Completions API."
# The same idea with OpenAI
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from the environment
resp = client.responses.create(
model="gpt-6.1-sol",
input="Classify the sentiment as POSITIVE, NEGATIVE, or NEUTRAL. "
"Reply with one word only.\n\n"
"Review: 'Shipping was slow but the product is fantastic.'",
)
print(resp.output_text)Run either one with your own key and it prints what the model replied. No labelled data, no training, and the same call with other words in it would translate or answer questions instead. Model names change as providers release new ones, so check each provider's list of models before you copy one: these two were current on 15 November 2026.
The catch is everything this code does not do. The prompt asks for one word, and nothing checks that one came back: the reply could be "Positive!" or a whole sentence. Nothing stops a review that says "ignore the instructions above", which is the subject of Prompt Injection & Jailbreaking. And nobody has worked out what a million calls would cost, which is Understanding API Pricing (Token Math). Turning a call like this into a feature people can rely on is what the rest of the courses are about.
See It: Two Ways to Ship
Ship a product and watch both ways build it. In the top band, each product gets its own labelled examples, a training run and a model of its own. In the bottom band, one foundation model, trained once by its lab, does every job: each product sends it a task in words. The support bot sends its documents along with each question, and the image captions send the image; no model is trained on either. The counts at the top of each band keep score, and the drawing counts steps, not hours. The 4 missions name what to look for, and Start again clears the board.

Six products cost six datasets, six training runs and six models one way, and one model the other: the hard part was done once, by the lab that trained it.
Try It Yourself: Spot the AI Engineering
Which of these is AI engineering, building on a foundation model, and which is ML engineering, building the model?
Spot the AI engineering
1 / 3Multiple choice
Multiple choice
Multiple choice
Common Misconceptions
Start with the right picture and the rest goes faster.
- "AI engineering is prompt writing." Prompting is one part. The job is the system around the model: retrieval, evaluation, guardrails, monitoring and cost.
- "You need a PhD in machine learning." You need good software engineering and the skills these courses teach. Training models is a different job.
- "It's only calling an API." The call is the easy part. Making the answers dependable, grounded, fast, affordable and safe is the work.
- "AI engineering and ML engineering are one job." One grew out of the other, and they meet in the middle, but one trains models and the other builds on them.
Where This Course Takes You
Seven courses, in this order: Foundations of AI Engineering (how the models work, then prompting and context), RAG & Retrieval Systems, AI Agents & MCP, LLM Evaluation & Observability, Fine-Tuning & Model Customization, Production AI Engineering (LLMOps), and Capstone Projects & Career. Build first, evaluate always, and ship for real.
Next: The AI Stack: Application, Model & Infrastructure Layers, the three layers you will work across, and where AI engineering sits in them.
Key Takeaways
- AI engineering is building applications with foundation models that are already trained: using intelligence, not making it.
- It grew quickly because a few labs train large general models once and offer them to everyone, and one such model takes many tasks as text.
- It came in steps, from AlexNet in 2012 to the role's name in 2023 and a book on the discipline in 2025.
- The work is software engineering with a probabilistic part: prompts and context, retrieval, agents and tools, evaluation, fine-tuning, and shipping.
- A demo is easy; dependable is the craft, and that is what the rest of the courses are about.