Your profile

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

Compare

Image Harm Controls vs Prompt Shields vs a Custom Visual Policy

30-second answer

Use image harm controls for hate, sexual, violence and self-harm in pictures. Use Prompt Shields (indirect attack detection) for instructions hidden in the text of an image. Use a custom analyzer for your own visual rules, such as banned logos or a required watermark.

Simulate it »

Side by side

↔ Swipe the table to see every column.

Image harm controlsPrompt ShieldsCustom visual policy analyzer
Looks forHate, sexual, violence, self-harmInstructions aimed at the model, found in textYour logos, symbols, watermark
Set up inGuardrail controls and Content SafetyGuardrail (indirect attacks) or the Prompt Shields APIA Content Understanding analyzer
ResultSeverity per categoryAttack detected or notTyped fields with confidence
Who defines the rule?Microsoft categories, your thresholdMicrosoftYou
ExampleGraphic violence in an uploadA sticky note saying to approve a refundA competitor logo in an ad

Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.

Which one should I pick?

  • Image harm controls

    Pick it when users or models may produce unsafe pictures

  • Prompt Shields

    Pick it when the model reads text from untrusted images or documents

  • A custom analyzer

    Pick it when the rule is specific to your brand or law

Simulate it

3D Computer vision in Foundry: generate, understand, extract and keep it safe Send a harmful image, then the injected photo.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

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

Keep visual content safe

Images and video need gates too. A guardrail with image controls classifies hate, sexual, violence and self-harm content, and a custom analyzer can enforce your own visual policy (a competitor's logo, a missing watermark). Text inside a picture can be an indirect prompt injection: read it as data, scan it with Prompt Shields, and never let it grant a tool or an approval.

Read this tour as text
  1. Generate and edit an image. A gpt-image deployment turns a prompt into pixels. Choose a size (1024x1024, 1024x1536 or 1536x1024), a quality (low, medium, high) and a format (PNG or JPEG). To change only part of a picture, send the image plus a mask: a PNG of the same size where the transparent area is what the model may repaint.
  2. Generate and remix a video. Sora 2 makes video as an asynchronous job: create, poll until it's done, then download. Pick 720x1280 or 1280x720 and 4, 8 or 12 seconds. An input reference image must match the video size, and faces in it are rejected. Remix changes a finished video with a short prompt, ideally one change at a time.
  3. Ask a model about a picture. A multimodal chat model such as gpt-4.1-mini reads images you send with the prompt. The prompt decides the result: a concise caption, a detailed one, alt text for accessibility, or an answer to a question that points to what is visible. Up to 10 images can go in one request, and detail (low, high, auto) trades cost for small text.
  4. Content Understanding turns media into fields. Azure Content Understanding in Foundry Tools runs an analyzer on an image or video and returns the same structured record every time. Start from prebuilt-imageSearch or prebuilt-videoSearch, or create a custom analyzer with fields that classify or generate. For video, segmentation splits the file into scenes with their own fields, key frames and transcript.
  5. Keep visual content safe. Images and video need gates too. A guardrail with image controls classifies hate, sexual, violence and self-harm content, and a custom analyzer can enforce your own visual policy (a competitor's logo, a missing watermark). Text inside a picture can be an indirect prompt injection: read it as data, scan it with Prompt Shields, and never let it grant a tool or an approval.

Questions people ask

Does a harm filter catch an injected instruction?

Not reliably. The note isn't harmful content, so use Prompt Shields, a data-only system message and approvals.

Can OCR text from images go through Prompt Shields?

Yes. Extract the text, then scan it as a document before the model acts on it.

Learn each one properly

More comparisons

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.