Choosing the Right AI Model
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 neededExam 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.
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
- Filter the catalog by task, collection and deployment option. Prices are illustrative and shown in your currency.
- Open a model card: capabilities, context window, supported deployment types and known limitations.
- Compare models on the leaderboard: quality, cost and throughput side by side.
- 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.
🖱️ Drag to rotate · scroll or pinch to zoom
Bigger is not always better
Large models reason better but cost more and answer slower. Small language models are cheap and fast for simple jobs. Multimodal models also read images and audio. Pick the smallest model that does the job well.
🤔 What happens if…
Read this tour as text
- A prompt goes in. You type a prompt: "Write a thank-you note to my team." The model never sees letters. First the text is cut into tokens, which are whole words or pieces of words.
- Tokens become numbers. Each token becomes a long list of numbers called an embedding. Words with similar meaning get similar numbers, so "team" sits near "colleagues" and far from "banana".
- Layers of attention. The tokens flow through dozens of transformer layers. In each layer, attention lets every token look at the others to work out context, so "bank" means money in one sentence and a river in another.
- Predict the next token. At the end the model scores every possible next token and picks one. Then it adds that token to the input and predicts again, one token at a time, until the answer is finished. That is all "generation" is.
- Temperature. Temperature controls how adventurous the pick is. Low (0.1) almost always takes the top token, so answers are focused and repeatable. High (1.2) spreads the choice, so answers get more creative and less predictable.
- Context window and max tokens. A model can only "see" a limited number of tokens at once: its context window. Max output tokens caps how long the answer can be. Long chats eventually push the oldest messages out.
- Grounding beats guessing. A model only knows its training data, so it can confidently make things up (a hallucination). Grounding adds trusted data to the prompt, for example your company handbook, so the answer is based on facts you supplied.
- Bigger is not always better. Large models reason better but cost more and answer slower. Small language models are cheap and fast for simple jobs. Multimodal models also read images and audio. Pick the smallest model that does the job well.
Bigger isn’t always better. Compare models in the catalog, then deploy a small model and a multimodal model and test what each can do.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 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
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 type | What it does | Example job | Example models |
|---|---|---|---|
| Large language model (LLM) | Broad, open-ended text: chat, writing, summarising, code | A general helpdesk assistant | GPT-4.1, GPT-5 family, Llama |
| Small language model (SLM) | Narrower text tasks, cheaper and faster, can run on smaller hardware | Classify support tickets, run on a field device | Phi |
| Multimodal model | Takes text plus images (and sometimes audio) as input | Read a photo of a damaged parcel and describe the damage | GPT-4o, GPT-4.1 |
| Reasoning model | Works through a problem step by step before answering | Plan a delivery route, solve a pricing puzzle, debug code | o-series |
| Embedding model | Turns text into vectors that capture meaning | Semantic search, the retrieval step in RAG | text-embedding models |
| Image-generation model | Creates or edits images from a text prompt | A festival poster for a shop | gpt-image-1 |
| Speech or audio model | Takes audio in or produces audio out | A voice assistant | gpt-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
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
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.
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.
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.Which model type turns text into vectors?Show
An embedding model.
-
2.Name a Microsoft family of small language models.Show
Phi.
-
3.Where do you read a model's intended use, limits and license?Show
On its model card in the model catalog.
-
4.Which model type suits multi-step maths and planning?Show
A reasoning model.
-
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
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.