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 controls | Prompt Shields | Custom visual policy analyzer | |
|---|---|---|---|
| Looks for | Hate, sexual, violence, self-harm | Instructions aimed at the model, found in text | Your logos, symbols, watermark |
| Set up in | Guardrail controls and Content Safety | Guardrail (indirect attacks) or the Prompt Shields API | A Content Understanding analyzer |
| Result | Severity per category | Attack detected or not | Typed fields with confidence |
| Who defines the rule? | Microsoft categories, your threshold | Microsoft | You |
| Example | Graphic violence in an upload | A sticky note saying to approve a refund | A 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
🖱️ Drag to rotate · scroll or pinch to zoom
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.
🤔 What happens if…
Read this tour as text
- 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.
- 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.
- 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.
- 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.
- 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
- Foundry Deployment Types: Global, Data Zone, Standard, Provisioned, Batch
- Foundry IQ Knowledge Base vs File Search vs Agent Memory
- Multi-Agent Orchestration Patterns: Sequential, Concurrent, Handoff, Group Chat, Magentic
- Prompt Engineering vs RAG vs Fine-Tuning
- Generate, Edit or Understand? Vision Features in Foundry
- Azure Translator vs LLM Translation in Foundry
- Sentiment Analysis vs Model Tone Labels vs Content Safety
- Keyword vs Vector vs Hybrid vs Semantic Search in Azure AI Search
- Azure AI Search vs Content Understanding: Which Do You Need?