Labeled SetGet the app
Menu

Topic 2 of 10 · AI concepts

How generative AI models work, at AI-901 depth

A generative AI model writes by predicting what comes next, one small piece of text at a time. That single idea explains both its fluency and its habit of stating fluent nonsense, and AI-901 builds two skills on it in sub-area 1.2: describe how generative models work, and identify the right model for a job by its capabilities.

  • ExamAI-901 (replaced AI-900 on June 30, 2026)
  • Skill areaAI concepts · 40–45%
  • Questions here12
  • UpdatedOct 19, 2026

Fig. 1

Pack light for the coast in October.Pack light for the coast in October.
Fig. 1 A prompt as a model receives it: tokens, often word pieces. The model scores what could come next from all of them.

Prediction, minus the mystique

A language model reads your prompt as tokens and writes its reply the same way, a token at a time, each one chosen from probability scores over its whole vocabulary and conditioned on everything before it. A reply of a few paragraphs is a few hundred of those choices. None of it involves the model knowing things in the way launch videos imply, and that turns out to be the most useful fact on this page.

The machinery underneath is on tokens, embeddings and transformers: embeddings hold meaning as lists of numbers, and the attention mechanism of the transformer decides which earlier tokens matter for the next one.

Fluency is what training rewards. Accuracy comes along only when the facts were in the training data or are in the prompt; where neither holds, you get a well-written answer that is wrong, usually called a hallucination or an ungrounded answer. Supplying source material in the prompt is the standard fix. The potential for harmful output is the other side of the same mechanism, and it is why responsible AI has a process written for generative systems.

Table 1

Generative or predictive?

Two families of model, and what each one hands back
PointPredictive machine learningGenerative AI
OutputA number or a label: a price, yes or no, a categoryNew content: text, code, an image, audio
Question it answersHow much? Which one? Is this unusual?Write, draw or explain this
On AI-901Background only; the outline no longer lists itCore of the concepts and Foundry skill areas

Classic machine learning was a whole AI-900 skill area and is absent from the AI-901 outline. How predictive models learn from labeled examples is on supervised vs unsupervised learning; the topic as a whole stays on this site as machine learning basics, labeled as AI-900 material.

Map 1

Choosing a model by capability

The model catalog in Microsoft Foundry holds several kinds of model, and many of them are capable. Questions in this skill name a job; you name the kind of model whose input and output fit it.

Job to capability to kind of model
JobCapability neededKind of model
Answer open questions in a staff chat tool, in several languagesText in, text outLarge language model
Rewrite error messages into plain language inside a product, within a tight latency budgetFast, narrow taskSmall language model
Read a chart screenshot and explain the trend in itImage and text inMultimodal model
Produce banner artwork from a one-line descriptionText in, image outImage generation model
Group thousands of survey comments by what they meanText in, vectors outEmbedding model
Compare two versions of a contract clause and lay out each difference with its consequenceMultistep reasoningReasoning model

Trap

A chat model is the wrong pick for “make a picture,” and an embedding model is the wrong pick for “talk to the customer.” Options in this skill are often a real, strong model that does a different job. Compare what goes in and what has to come out before comparing anything else.

Worksheet

Worksheet on model behavior

Some items ask what happens inside a model; others give you a job and four kinds of model. When two options both sound able, the input and output usually settle it.

Questions come in batches of five. Pick an answer for each, then evaluate the batch: notes on all four options open under every question.

Accuracy by batch

0 evaluated · 0 right · 12 to go

Batch 1 questions 1–5

  1. 01

    How does a large language model produce its response to a prompt?

    Your label —The notes on all four options open when this batch is evaluated.

  2. 02

    A retailer has two projects: estimating next month's sales for each store, and drafting replies to customer emails. How are these best described?

    Your label —The notes on all four options open when this batch is evaluated.

  3. 03

    An assistant states a refund rule in a confident, well-written paragraph, but the rule does not exist in the company's policy. What best explains this?

    Your label —The notes on all four options open when this batch is evaluated.

  4. 04

    A company wants a model that runs on employees' laptops and phones to tag short notes by topic, at low cost. Which kind of model fits best?

    Your label —The notes on all four options open when this batch is evaluated.

  5. 05

    A home-repair app lets users snap a photo of a broken part and ask, in their own words, what it is and how to replace it. Which kind of model should the app call to answer?

    Your label —The notes on all four options open when this batch is evaluated.

0 of 5 labeled

Batch 2 questions 6–10

  1. 06

    A developer adds an embedding model to a document search app. What does that model contribute?

    Your label —The notes on all four options open when this batch is evaluated.

  2. 07

    A team needs a model to plan multistep schedules and check its own math before answering. A reasoning model scores best in their tests. What trade-off should the team expect?

    Your label —The notes on all four options open when this batch is evaluated.

  3. 08

    A model's documentation lists the size of its context window. What does that figure describe?

    Your label —The notes on all four options open when this batch is evaluated.

  4. 09

    Which statement correctly contrasts pretraining with fine-tuning?

    Your label —The notes on all four options open when this batch is evaluated.

  5. 10

    Which of these scenarios is NOT an example of generative AI?

    Your label —The notes on all four options open when this batch is evaluated.

0 of 5 labeled

Batch 3 questions 11–12

  1. 11

    A team needs one narrow, well-defined capability, such as translating product descriptions, with predictable results and no prompt design. According to Microsoft's model-selection guidance, what may suit them better than picking a general model from the catalog?

    Your label —The notes on all four options open when this batch is evaluated.

  2. 12

    Which statement about the Microsoft Foundry model catalog is accurate?

    Your label —The notes on all four options open when this batch is evaluated.

0 of 2 labeled

Where this topic connects

Choosing the kind of model is half of sub-area 1.2. Deploying it and setting its parameters is the other half, on Foundry models and deployments. Deciding whether a business problem needs generative AI at all, or text analysis, vision or extraction instead, is AI workloads.

Once the vocabulary holds, the AI-901 practice test mixes this topic with the rest of the concepts skill area, which Microsoft weights at 40–45% of the exam (AI-901 study guide, skills measured as of April 15, 2026).

Go deeper on this topic