What if an insurance claims team could take a photo of storm damage and get back both a damage report and a picture of the finished repair? That’s exactly what the tenth video in my AI-901 Microsoft Azure AI Fundamentals series builds. Using Python and Microsoft Foundry, you’ll create an app that looks at a photo, describes what’s wrong, and shows what the house will look like once it’s fixed. There are no API keys, and nothing to install on your computer.
The video covers three AI-901 skills from the “Implement AI solutions by using Microsoft Foundry” domain: interpreting visual input with a deployed multimodal model, creating new visual outputs with generative models, and building a lightweight app with vision capabilities. By the end, you’ll have three short scripts. One describes a photo, one generates an image, and one does both.
No Separate Vision Service Needed
Computers see pixels, not pictures. Classic computer vision turns those pixels into labels, objects, text, and captions. Multimodal models take it a step further by connecting what they see with words, so you can show a model a photo of a roof and simply ask what repairs it needs.
That’s also where Azure is headed. At the time of recording, the older vision services, Image Analysis and Custom Vision, retire in September 2028, and new work is moving to multimodal models. So this video doesn’t use a separate vision service at all. The same gpt-5-mini chat model from earlier in the series already accepts images.
The code barely changes, either. With the Responses API, the user message has two parts: an input_text part with your question and an input_image part with the photo, sent as a Base64 data URL. A detail setting of low, high, or auto controls how closely the model looks, and it’s also a cost choice. High detail uses more tokens but is more likely to pick up fine details like a small house number. Add structured outputs with a JSON schema, and the damage report comes back with the same fields every time.

Generating vs Editing Images
The second half of the story is creating images. The demos use gpt-image-2.5-flare, which does two jobs. It generates new images from text, called text to image, and it edits existing images, called image to image.
The difference matters. Generating starts from nothing but your words. Ask for a house and you’ll get a nice house, just not your customer’s house. Editing starts from a real photo and changes only what you describe, like fixing the roof. In code, that’s the difference between images.generate and images.edit, both called through the Images API with the same keyless sign-in as the rest of the series.
Why gpt-image-2.5-flare? It’s generally available, while gpt-image-1.5, gpt-image-1, and gpt-image-1-mini all need an approved limited access application. Flare is the fast, cost-efficient option, and its sibling Sunburst takes longer for more precise, detailed work. It’s the same speed versus quality trade-off from earlier in the series. And content filters check both the prompts going in and the images coming out.

One App, Two Models
This is where it all comes together. The repair preview app chains the two models in three steps. First, it looks: gpt-5-mini reads the storm photo, returns a JSON damage report, and writes short edit instructions for the image editor in the same call. Next, it creates: gpt-image-2.5-flare takes the original photo and those instructions and edits it. The result is the same house, only repaired, with the debris, ladder, and person cleaned out of the yard. Finally, it labels the result as AI-generated.
So why not just ask the image model to fix the roof? Because the image model doesn’t know what’s broken. It changes what you tell it to change. The chat model looks first and writes specific instructions, so the edit matches the actual damage in the photo. One model’s output becomes the next model’s input.
The label is just as important as the edit. The file name says AI-generated, and the app prints a notice that the image is a preview, not a record. You’d never want that picture showing up in a claim file as proof. That’s the transparency principle from responsible AI, built right into the code.

What the Demos Cover
The hands-on section starts by creating a new Foundry project in a region that supports both models, then deploys gpt-5-mini and gpt-image-2.5-flare and tries them in the playground. From there, it moves to VS Code for the Web, so all you need is a browser. You’ll describe the storm photo with a JSON damage report and compare low and high detail, generate images from a prompt, and run the repair preview app. The video wraps up with the most common errors, like a wrong deployment name or sending a chat prompt to an image model, and how to clean up your Foundry resources.
Get the scripts: https://github.com/tsrob50/AI-901-Labs
Watch the Video
If you’re studying for the AI-901 certification, this video connects three exam skills in one working app: the chat model reads the photo, the image model makes the picture, and your code connects them. And if you’re building AI apps on Azure, it’s a practical pattern you can adapt for inspections, insurance, real estate, or anywhere a photo needs a second look.
Grab the scripts, open a browser, and build it alongside me. A few test runs will likely cost very little, and you’ll walk away with an app that reads a photo, writes a damage report, and creates a labeled repair preview.
Watch now on YouTube: https://youtu.be/VnMxQ3NiG-4
Want to go deeper? The full AI-901 course on My Cloud Coach includes every lesson from this series, plus cheat sheets and practice exams. And subscribe to the channel and turn on notifications so you don’t miss the next video in the series, which shows how to pull structured data out of documents, images, audio, and video with Azure Content Understanding.
Links
My Cloud Coach AI-901 course:
https://MyCloud.Coach
A Beginner’s Guide to the AZ-900
https://www.udemy.com/course/beginners-guide-az-900/?referralCode=C74C266B74E837F86969
Zero to Hero with Azure Virtual Desktop
https://www.udemy.com/course/zero-to-hero-with-windows-virtual-desktop/?referralCode=B2FE49E6FCEE7A7EA8D4
Hybrid Identity with Windows AD and Azure AD
https://www.udemy.com/course/hybrid-identity-and-azure-active-directory/?referralCode=7F62C4C6FD05C73ACCC3
Windows 365 Enterprise and Intune Management
https://www.udemy.com/course/windows-365-enterprise-and-intune-management/?referralCode=4A1ED105341D0AA20D2E
Exam AI-901: Microsoft Azure AI Fundamentals
https://learn.microsoft.com/en-us/credentials/certifications/exams/ai-901/
Study guide for Exam AI-901: Microsoft Azure AI Fundamentals
https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/ai-901
Demo scripts:
https://github.com/tsrob50/AI-901-Labs