Skip to content

Azure AI Content Safety

Azure AI Content Safety is Microsoft's guardrail service for LLM apps and agents. Its Prompt Shields API takes a user prompt plus up to five documents and returns a Boolean attackDetected result for each, covering jailbreak attempts and hidden instructions in emails, files or web pages. In Microsoft Foundry the same checks run as guardrails at user input, tool call, tool response and output, alongside protected material detection and a Task Adherence check on agent tool calls.

Updated 2026-11-21 · Prompt Shields alternatives · learn.microsoft.com

What Prompt Shields does

Flags jailbreaks, hidden prompt injections and harmful content in Azure LLM apps and agents.

Prompt Shields flags user prompts that try to bypass system instructions or safety training (jailbreaks).

learn.microsoft.com

Prompt Shields flags hidden instructions placed in documents, emails or web pages that try to hijack the model session (indirect attacks).

learn.microsoft.com

Protected material detection flags known copyrighted text (lyrics, articles, recipes, web content) and protected code in LLM output.

learn.microsoft.com

Task Adherence checks whether an agent's tool calls match the user's request.

learn.microsoft.com

Groundedness detection checks whether LLM output is supported by the supplied source material (marked for retirement).

learn.microsoft.com

In Foundry, guardrails can be applied at four intervention points: user input, tool call, tool response and output.

learn.microsoft.com

Controls for AI systems

Features as Microsoft names them.

Good fit

Teams already building on Azure or Microsoft Foundry who want prompt injection and jailbreak screening billed per request, with a free tier of 5,000 text records a month to test against.

  • Published usage pricing: $0.375 per 1,000 text records and $0.75 per 1,000 images on Standard, plus a free F0 tier
  • Covers indirect attacks in third-party documents, with a preview Spotlighting option for extra protection
  • Foundry guardrails apply at four points, including agent tool calls and tool responses (preview)
  • Microsoft says prompts and completions aren't stored for filtering and customer data isn't used for training

Look elsewhere if

Teams with non-English traffic, inputs longer than 10K characters, or a need to run off Azure should look elsewhere, since Prompt Shields is trained mainly on English, caps prompt length, and its container options retire on April 30, 2027.

  • Prompt Shields models are trained and evaluated mainly on English; protected material detection is English only
  • Prompts capped at 10K characters, and documents at five per call totaling 10K characters
  • In Foundry, document attack detection and Spotlighting are off by default, and Spotlighting raises token counts through base-64 encoding
  • Groundedness detection, containers and several other preview features retire April 30, 2027, and some features may process data outside the resource's region

Prompt Shields pricing

Plans and list prices as published.

PlanPriceBillingSource
Standard (S0) text records$0.375 per 1,000 text recordsmonthlyprices.azure.com 2026-11-21
Standard (S0) images$0.75 per 1,000 imagesmonthlyprices.azure.com 2026-11-21

F0: 5,000 text records and 5,000 images per month; usage stops at the limit.

Coverage, deployment and compliance

What it watches, where it runs, and what it connects to.

Covers

LLM user prompts and jailbreak attemptsDocuments, emails and web pages fed to LLMsAgent tool calls and tool responsesLLM output: protected text and codeAll Foundry Models sold by Azure

Runs as

Azure cloud service, supported regionsContainers (preview, retiring Apr 2027)

Integrations

Microsoft FoundryContent Safety Studio

Compliance

Documented limits

  • Prompt Shields: prompt up to 10K characters; up to five documents totaling 10K characters. learn.microsoft.com
  • Prompt Shields models are trained and evaluated mainly on English. learn.microsoft.com
  • Prompt Shields does not verify where submitted content came from. learn.microsoft.com
  • In Foundry, document attack detection is off by default and spotlighting is off by default; spotlighting works only through the Chat Completions API. learn.microsoft.com
  • Spotlighting adds no direct charge but base-64 encoding increases document tokens. learn.microsoft.com
  • Protected material, groundedness and custom categories (standard) work in English only; other models cover eight languages. learn.microsoft.com
  • Some features can process customer data outside the resource's region. learn.microsoft.com
  • Text moderation requests are capped at 10k characters. learn.microsoft.com

Prompt Shields changes since 2025

Launches, deals and renames, newest first.

Alternatives to Prompt Shields

Compare all 6 side by side

Should you shortlist Prompt Shields?

For an Azure or Foundry shop, Prompt Shields is the cheapest way to add jailbreak and indirect injection screening, and the free tier makes a trial easy. Turn on document attack detection explicitly, test it against your own non-English and long-context traffic, and plan around the 2027 retirements before relying on containers or groundedness checks.

Sources (13)
  1. learn.microsoft.com/en-us/azure/ai-services/content-safety/overview
  2. learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/jailbreak-detection
  3. learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/protected-material
  4. learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/task-adherence
  5. learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/groundedness
  6. learn.microsoft.com/en-us/azure/foundry/guardrails/guardrails-overview
  7. learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-jailbreak
  8. learn.microsoft.com/en-us/azure/ai-services/content-safety/whats-new
  9. learn.microsoft.com/en-us/azure/ai-services/content-safety/region-availability
  10. prices.azure.com/api/retail/prices?$filter=contains(productName,'Content%20Safety')%20and%20armRegionName%20eq%20'eastus'
  11. azure.microsoft.com/en-us/pricing/details/cognitive-services/content-safety/
  12. learn.microsoft.com/en-us/azure/ai-services/content-safety/faq
  13. learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/content-safety/data-privacy

Spotted something out of date? [email protected]