Lesson 2 of 3 Microsoft Foundry Platform and Model Selection

Selecting Models and Foundry Tools for Each Task

This lesson explains how to choose a model for each task, since no single model is best for every task. A solution often combines a large model for complex reasoning, a small model for high-volume classification, an embedding model for search and Foundry Tools for structured tasks.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish the model families, such as LLMs, reasoning models, small language models and embedding models.
  • Choose between a model and a Foundry Tool for a task.
  • Apply a selection process that starts with hard requirements and ends with evaluation.

Model families

A model is a trained neural network that takes an input, such as text, an image or audio, and produces an output, such as generated text, a vector or a new image. The Foundry Models catalogue contains thousands of models, but they fall into a small number of model families: groups of models that accept similar inputs, produce similar outputs and suit similar tasks. Identifying the family a task needs is the first step in choosing a model, because it narrows the catalogue to a few candidates. The following paragraphs describe each family.

Large language models (LLMs), such as the GPT-5 family, are general-purpose text models trained on very large amounts of text. They have broad knowledge, follow complex instructions, call tools reliably and support long contexts, which makes them the default choice for chat, drafting, summarization and agents.

Reasoning models generate internal reasoning before answering, working through a problem step by step. They perform better on multistep planning, mathematics, complex code and analysis. They are slower and more expensive per request, use a reasoning effort setting to control how much they think and do not accept the temperature parameter.

Small language models (SLMs), such as the Phi family and mini or nano variants of larger families, have fewer parameters, so they cost less and respond faster. They suit narrow, high-volume tasks such as intent classification, routing, short extraction or summarization, and models such as Phi can run on devices or on-premises hardware.

Multimodal models accept images and, in some cases, audio alongside text, so they can describe a photo, read a chart or answer a question about a scanned page. Many current LLMs, including the GPT-5 family, are also multimodal.

Code models are optimized for generating, explaining and editing code, and they suit coding assistants and code review.

Embedding models, such as text-embedding-3-small and text-embedding-3-large, do not generate text. They convert text into a vector, a list of numbers that represents its meaning, which vector search uses to find passages with similar meaning.

Image and video generation models, such as GPT-image models, create media from a text prompt and optional reference images. Sora 2, the video model the exam guide names, retired in Foundry in October 2026.

The catalog's Inference tasks filter narrows the list to one kind of model, such as chat completion, embeddings or text to image. The following screenshot shows the catalog filtered to embedding models.

Foundry model catalog filtered by the Embeddings inference task
Embedding models from several publishers, filtered by inference task.
Sort into groups

Which kind of model?

Exam skills 1.1.1

Choose the model family that fits each task.

Log in to try this activity Interactive activities are free with an account.

Models compared with Foundry Tools

Foundry Tools are task-specific services. They return structured results with offsets, timestamps or confidence scores, are priced per transaction, need no prompt design and produce the same output for the same input. Models are general and flexible but need prompts, may vary between runs and are priced per token. The following table compares typical choices.

TaskFoundry Tool optionModel optionUsually choose
Read text from scansContent Understanding or Document Intelligence read and layoutMultimodal model reading the imageTool: positions, confidence, scale
Detect and redact PIIAzure Language PII detectionPrompt to find personal dataTool: categories and offsets
Transcribe callsAzure Speech batch or fast transcriptionTranscription model such as gpt-4o-mini-transcribeEither; tool for diarization at scale
Extract custom contract clausesCustom NER (needs training data)LLM with structured outputsModel unless volume justifies training
Summarize with a prescribed structureLanguage summarizationLLM with instructions and schemaModel for custom structure

In the Foundry portal, Foundry Tools appear on the Services tab of the catalog rather than among the models. The following screenshot shows that tab, with playgrounds for tasks such as document layout analysis, speech to text, invoice analysis, text translation and language detection.

Services tab of the Foundry catalog listing Foundry Tools playgrounds
Foundry Tools are grouped by service: Document Intelligence and Content Understanding, Speech, Language and Translator.
Sort into groups

Foundry Tool or model?

Exam skills 1.1.1 · 1.1.2

Decide whether a task-specific Foundry Tool or a general model fits each task.

Log in to try this activity Interactive activities are free with an account.

A selection process

Selection starts with hard requirements: modality, context length, tool calling, structured output support, deployment types and regions available, data residency and licence terms. Candidates that pass are compared on an evaluation dataset drawn from real inputs, with quality evaluators, latency and token cost recorded for each. Public benchmarks and leaderboards in the catalogue help to shortlist but do not replace this step. The final choice is usually the smallest, cheapest model that meets the quality bar, with a larger model kept for the minority of requests that need it, for example through model router or a cascade.

The following screenshot shows the Model leaderboard in the catalog, which compares models on a quality index, safety (attack success rate), throughput and benchmark cost. These scores come from public benchmarks, so they are useful for shortlisting but cannot show how a model performs on the organization's own inputs.

Model leaderboard in the Foundry portal comparing quality, safety, throughput and cost
The leaderboard shortlists candidates; an evaluation on real inputs makes the final choice.
Worked example

One solution, several models

An insurer processes 30,000 claim emails a day. Each email must be classified into one of twelve categories, attached claim forms must have their fields extracted, and complex claims need a written assessment that weighs policy terms against the claim. Cost must be minimized.

Classification into a fixed label set at high volume suits a small model with a strict JSON schema, validated on labelled emails. Field extraction from forms suits a Content Understanding analyzer, which returns typed fields with confidence. The complex assessment, a minority of requests, suits a reasoning model with the policy retrieved through RAG. Sending every email to the reasoning model would meet quality but not the cost requirement.

Check yourself

Public benchmarks rank two models differently from your own tests. Which result should decide?

Show answer

Your own evaluation dataset. Public benchmarks help to shortlist models, but only your data shows how they perform on your task.

Exam Tips

Remember for the exam

  • Choose the smallest model that meets the quality bar on your own evaluation data.
  • Reasoning models: multistep problems, higher latency, reasoning effort instead of temperature.
  • Foundry Tools give deterministic, structured results with offsets and confidence; models give flexibility.
  • Public benchmarks shortlist; your evaluation dataset decides.