AI-901 lesson 10: vision and image apps
Vision in Foundry comes down to two directions. To understand a picture, an app sends it inside a prompt to a deployed multimodal model, together with a text question, and reads a text answer. To produce a picture, the app sends a text description to a deployed image-generation model and receives an image. Both are ordinary deployments in a Foundry project, so the habits from the earlier lessons apply: deploy first, test in the portal, then call it from a client.
Interpreting visual input
A multimodal chat model accepts more than text in a user message. The message holds a list of parts, and one part can be an image while another is the written question. The image is supplied either as a link to a location the service can reach or as the image data itself, encoded as text. The system prompt still sets the standing behaviour, for example “describe only what is visible and say when something is unclear.”
What the model returns is text. It can describe a scene, read visible writing, compare two photos, answer a specific question or judge whether something looks damaged. It is reasoning in language about pixels, which makes it flexible and also fallible: answers can be wrong or overconfident, so a person should review decisions that matter.
Three practical points follow. The deployed model must actually support image input; a text-only deployment will not do. Images count against the context window, so a long conversation with many photos fills it faster. And a clear question gets a better answer than “what is this?”, which is the same prompt-writing lesson as before.
Creating images with generative models
Image-generation models work the other way round. The prompt describes the subject, setting and visual style, and the model returns a new image. Microsoft’s current documentation lists the GPT-image series of models for this; the older DALL-E 3 model has been retired, so older tutorials that name it are out of date. Access to some image models can require registration, so a deployment may be unavailable until approved.
In the portal, a deployed image model can be opened in a playground, where a prompt is entered and the result appears on the page. A client app does the same through the project: it sends the prompt and options such as image size and quality to the deployment and receives the image data, which it then saves or displays. Because a generated image is created, not found, the same prompt can give different pictures, and safety filters can refuse a prompt or filter the output.
Worked example: a hardware shop’s catalogue tool
A 40-person hardware retailer wants two features. First, staff photograph returned items and the app should state whether the packaging looks damaged and mention any visible serial number. Second, the marketing person wants a few illustrated banner backgrounds for a spring sale.
The first feature is interpretation: the photo and a question go to a deployed multimodal model, and a written assessment comes back. The second is creation: a text description goes to an image-generation model. If the retailer instead needed exact serial numbers, invoice totals or table values pulled into fields, the better tool would be Content Understanding, covered in the next lesson, because that is structured extraction rather than open description.
The lightweight vision app has a simple shape: connect to the project, choose the multimodal deployment, build a user message holding the photo and the question, send it and display the text reply.
Easy to confuse
| Scenario wording | Capability |
|---|---|
| “Check”, “describe”, “answer questions about” a photo | Multimodal model with image input |
| “Create”, “design”, “produce variations of” artwork | Image-generation model |
| “Pull invoice fields from scanned pages” | Content Understanding |
| “Turn a spoken request into text” | Speech, not vision |
The usual trap is a question that mentions both an image and a model. Ask which direction the image travels: into the model means interpretation, out of the model means generation.
Key points
- Interpreting an image means passing it in a user message to a multimodal model, along with a text question.
- The reply to an image question is text, and it should be checked when decisions depend on it.
- Image-generation models turn a written description into a new image; the model can be tried in a playground first.
- A vision app uses the same project, deployment and client pattern as a chat app.
- The deployment must support image input, and images consume part of the context window.
- Structured fields from scans or forms point to Content Understanding rather than open-ended description.
Check yourself
Question 1. A 30-person insurance broker wants staff to upload a photo of a damaged roof and get a written description of the visible damage. What does the app send to the model?
- A. Only a system prompt to an image-generation model
- B. The photo and a text question in a user message to a multimodal model
- C. The photo to a speech-synthesis voice
- D. A text prompt to a text-only model
Show answer
Answer: B
Interpreting a photo needs a multimodal model that receives the image together with a text question in the user message. An image-generation model would create a picture instead, a speech deployment handles audio, and a system prompt alone contains no image.
Want more questions like this? Full AI-901 practice tests →
Question 2. A bakery wants three illustrated menu backgrounds in a watercolour style from a written brief. Which capability should the app call?
- A. Sentiment analysis
- B. Speech recognition
- C. A multimodal chat model with image input
- D. An image-generation model
Show answer
Answer: D
Producing new pictures from a text description is the job of an image-generation model. A multimodal chat model interprets images rather than creating them, text analysis works on written text, and speech recognition handles audio.
Want more questions like this? Full AI-901 practice tests →
Question 3. A developer deploys a model, adds a photo to the user message, and gets an answer that ignores the photo. Which cause is most likely?
- A. The deployed model does not accept image input
- B. A system prompt was included
- C. The app should have used speech synthesis
- D. The photo must first be created by an image-generation model
Show answer
Answer: A
If the deployed model does not support image input, it cannot use the photo, so the first check is the model’s capabilities. Using a system prompt is normal, image generation is not involved in interpreting a photo, and the photo does not need to be turned into audio.
Want more questions like this? Full AI-901 practice tests →
This lesson sits in the Implement AI solutions by using Microsoft Foundry domain, worth 55-60% of AI-901. Revisit the domain on the Foundry implementation page, and see how responsible AI applies to generated content for the safety side.