Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 7 of 30
❮Prev Next❯

Choosing the Right AI Model

Module 1: AI Concepts ⏱ 8 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    You choose an AI model by matching its capabilities to the job, then balancing quality, cost and latency. A large language model (LLM) handles open-ended text, a small language model (SLM) such as Phi is cheaper and faster for narrow tasks, multimodal models accept images or audio, reasoning models think through multi-step problems, embedding models turn text into vectors for search, and image-generation models create pictures. In Microsoft Foundry you compare them in the model catalog using model cards and benchmarks.

    Simulate it » No Azure account needed

    Exam objective: 1.2.2 Identify an appropriate AI model, based on capabilities. (Skills measured as of April 15, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Choose a model in the catalog Filter the catalog, read a model card and compare benchmarks.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    Filter the catalog by <strong>task</strong>, collection and deployment option. Prices are illustrative and shown in your currency.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. Filter the catalog by task, collection and deployment option. Prices are illustrative and shown in your currency.
    2. Open a model card: capabilities, context window, supported deployment types and known limitations.
    3. Compare models on the leaderboard: quality, cost and throughput side by side.
    4. Match the model to the job, then Deploy it.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    Your FAQ bot uses the biggest model and the bill is huge.

    😊 THE SOLUTION

    Pick the smallest model that passes your tests.

    • Paying for power you don’t need✓ A small language model
    • Need to read photos✓ A multimodal model
    • Hard multi-step problems✓ A reasoning model
    🛠️ Solved with: Model catalog

    Start with a question

    Would you hire a senior architect to change a light bulb?

    You could. They’d do a fine job. But you’d pay architect rates for a five-minute task, and you’d wait until they had a free slot.

    AI models work the same way. The biggest model can do almost anything, but it’s slower and costs more per request. Picking a model means finding the smallest, cheapest one that still does the job well, and switching to a specialist when the job needs one.

    Explain it like I’m 10

    The technical explanation

    Microsoft Foundry’s model catalog holds thousands of models: Microsoft’s Phi family, OpenAI models (GPT-4.1, GPT-4o, the GPT-5 family, o-series reasoning models, gpt-image-1), Meta Llama, Mistral, DeepSeek, Cohere and more. Some are Foundry Models sold by Azure (billed and supported by Microsoft); others come from partners and the community.

    Start with what the model has to do, because that rules most models out straight away.

    Model typeWhat it doesExample jobExample models
    Large language model (LLM)Broad, open-ended text: chat, writing, summarising, codeA general helpdesk assistantGPT-4.1, GPT-5 family, Llama
    Small language model (SLM)Narrower text tasks, cheaper and faster, can run on smaller hardwareClassify support tickets, run on a field devicePhi
    Multimodal modelTakes text plus images (and sometimes audio) as inputRead a photo of a damaged parcel and describe the damageGPT-4o, GPT-4.1
    Reasoning modelWorks through a problem step by step before answeringPlan a delivery route, solve a pricing puzzle, debug codeo-series
    Embedding modelTurns text into vectors that capture meaningSemantic search, the retrieval step in RAGtext-embedding models
    Image-generation modelCreates or edits images from a text promptA festival poster for a shopgpt-image-1
    Speech or audio modelTakes audio in or produces audio outA voice assistantgpt-audio family, gpt-realtime

    Small language model

    • Lowest cost per token
    • Fastest replies
    • Good for narrow, repeatable tasks
    • Weaker on open-ended or tricky questions

    Large language model

    • Strong general quality
    • Higher cost per token
    • Handles messy, open-ended prompts
    • Usually the safe starting point

    Reasoning model

    • Best at multi-step problems
    • Uses extra thinking tokens
    • Slowest and often the most expensive
    • Overkill for simple chat
    The same request, three different fits

    Reading a model card and benchmarks

    Every model in the catalog has a model card. It tells you the provider, what the model is meant for, the inputs and outputs it supports (text, image, audio), the context window (how many tokens it can read at once), languages, known limits and the license. The catalog also lets you filter by task, collection, deployment type and license.

    Benchmarks (the leaderboards) compare models on quality, cost and throughput. They’re a good shortlist tool. They aren’t the final answer, because a model that wins a public benchmark can still do badly on your invoices or your Hindi customer emails. Deploy two or three candidates and test them with real prompts.

    The trade-off triangle

    Most decisions come down to three things:

    • Quality: how good and accurate the answers are.
    • Cost: you pay per token, and bigger models charge more per token.
    • Latency: how long the user waits. Bigger and reasoning models are slower.

    You rarely get all three at the top. A common pattern is to send easy requests to a small model and hard ones to a larger or reasoning model.

    Architect level Routing and fine-tuning

    Teams with high volume often put a router in front: a cheap model handles the bulk and only escalates when the request looks hard. Fine-tuning is another lever. A fine-tuned small model trained on your own examples can match a much larger model on one narrow task at a fraction of the token cost. Check the model card first, because not every model supports fine-tuning, and fine-tuned models have their own deployment options.

    Real-world business scenario

    Logistics

    Fabrikam Logistics, a parcel company in Pune

    The problem
    It sent every customer message, from 'where is my parcel' to damage claims with photos, to one large model. Token bills were high and replies to simple questions felt slow.
    What they used
    Used the Foundry model catalog to split the work: a Phi small model for tracking questions, a multimodal GPT model for damage photos, and an embedding model to search its claims policy.
    Why that choice
    Most messages were simple and repetitive, so a small model handled them well. Only photo claims needed a multimodal model, and policy search needed vectors, not chat.
    The result
    Simple replies got faster, the monthly token bill dropped sharply, and damage claims still got careful answers.

    When to use it and when not to

    ✓ Use it when…

    • Use a **small language model** for narrow, high-volume tasks where speed and cost matter.
    • Use a **multimodal** model when the input includes photos, screenshots or audio.
    • Use a **reasoning** model for maths, planning, code and multi-step analysis.
    • Use an **embedding** model for semantic search and the retrieval step of RAG.

    ✕ Think twice when…

    • Don't default to the largest model for everything. You'll pay more and wait longer.
    • Don't pick on benchmarks alone. Test with your own prompts and data.
    • Don't expect an embedding model to write answers. It only returns vectors.

    ↔ Alternatives to consider

    • **Foundry Tools** such as Azure Language or Azure Speech when a prebuilt feature already does the job.
    • **Fine-tuning** a smaller model when one narrow task needs better quality.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    5 original practice questions in the AI-901 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 5

    A retail company plans to let customers type a question such as 'waterproof hiking shoes for kids' and return the most relevant products, even when the product descriptions use different words.

    Which type of model should the company use to represent the product descriptions and the customer questions?

    Question 2

    Question 2 of 5

    A company needs to classify short support tickets into five categories. The solution must minimize cost per request and respond quickly. Which type of model is the most appropriate starting point?

    Question 3

    Question 3 of 5 · Select 2

    Which TWO types of information can you find on a model card in the Microsoft Foundry model catalog?

    Question 4

    Question 4 of 5

    An insurance company wants an application that accepts a photo of a damaged car and returns a written description of the damage. Which type of model should the application use?

    Question 5

    Question 5 of 5 · Select 2

    You are comparing models in the Microsoft Foundry model catalog. Which TWO statements about benchmarks are correct?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner What's the difference between a large language model and a small language model?

    Model answer

    An LLM is bigger, has more general knowledge and is better at open-ended or complex tasks, but it costs more per token and responds more slowly. An SLM like Phi is smaller, cheaper and faster. For a narrow job such as classifying support tickets, an SLM is often good enough.

    Interviewer follows up

    Can a small model run on a laptop or phone?

    You

    Yes, that's one of the reasons people pick them. Some SLMs are small enough to run on a device without a cloud call, which helps with offline use and privacy.

    Intermediate How would you compare two models in Microsoft Foundry before deploying one?

    Model answer

    I'd open the model catalog, filter by task and deployment type, then read each model card for inputs, outputs, context window and license. Next I'd look at the benchmarks for quality, cost and throughput. Finally I'd deploy both and test them with my own prompts, because benchmarks don't know my data.

    Experienced developer When is a reasoning model the wrong choice?

    Model answer

    When the task is simple or needs a fast reply. Reasoning models spend extra tokens thinking, so they're slower and cost more. A chatbot that answers store opening hours doesn't need that. I'd save reasoning models for maths, planning, code and multi-step analysis.

    Scenario A team wants semantic search over 50,000 policy documents. Which model type do they need?

    Model answer

    An embedding model to turn every document chunk and every user question into vectors, so the search can find chunks with similar meaning. Then, if they want a written answer rather than a list of results, they add a chat model that reads the retrieved chunks. That's retrieval-augmented generation.

    Quick revision

    Key points

    • Match the model to the capability first, then trade off quality, cost and latency.
    • SLMs such as Phi are cheaper and faster; LLMs are better at broad, open-ended work.
    • Multimodal models take images or audio as input; image-generation models create images.
    • Reasoning models think step by step and suit maths, planning and code, at higher cost and latency.
    • Embedding models output vectors for semantic search and RAG, not chat answers.

    Important terminology

    Large language model (LLM)
    A model with billions of parameters trained on huge amounts of text, good at open-ended language tasks such as chat, writing and summarising.
    Small language model (SLM)
    A compact language model, such as Microsoft Phi, that costs less and responds faster, and can run on smaller hardware or devices.
    Multimodal model
    A model that accepts more than one kind of input, such as text plus images or audio, for example GPT-4o or GPT-4.1.
    Reasoning model
    A model that spends extra compute working through a problem step by step before answering, such as the o-series models.
    Embedding model
    A model that turns text into a vector of numbers so similar meanings sit close together, used for search and retrieval.
    Model card
    The page in the model catalog that describes a model's purpose, inputs, outputs, limits, license and intended use.
    Model catalog
    The Microsoft Foundry library where you browse, filter, compare and deploy models from Microsoft, OpenAI, Meta, Mistral, DeepSeek and others.

    Common mistakes

    • Picking the biggest model for every job. A small model is often good enough and much cheaper.
    • Thinking an embedding model can answer questions. It only produces vectors.
    • Trusting benchmarks alone. Always test with your own prompts and data.

    Exam tips

    • "Lowest cost, fast, narrow task, could run on a device" = small language model.
    • "Describe what is in a photo" = multimodal model. "Create a new picture" = image-generation model.
    • "Convert text to vectors for similarity search" = embedding model.

    Five quick revision questions

    1. 1.Which model type turns text into vectors?Show

      An embedding model.

    2. 2.Name a Microsoft family of small language models.Show

      Phi.

    3. 3.Where do you read a model's intended use, limits and license?Show

      On its model card in the model catalog.

    4. 4.Which model type suits multi-step maths and planning?Show

      A reasoning model.

    5. 5.What three things do you usually trade off when picking a model?Show

      Quality, cost and latency.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Model Deployment Options and Parameters

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.