Azure AI Content Safety Migration Guide (Notice AZ577474)
Moving off retiring Azure Content Safety features before April 30, 2027?
Microsoft is retiring Analyze Multimodal, Custom categories (rapid), Content Safety containers, the Embedded SDK, and Groundedness detection on April 30, 2027. This honest guide maps what Paxmod replaces cleanly, what works differently, and what Paxmod does not cover.
What is retiring and when
On November 23, 2026, Microsoft published notice AZ577474 (Retirement: Azure AI Content Safety selected features will be retired on April 30, 2027) and updated its Azure AI Content Safety documentation. Six public preview capabilities retire on April 30, 2027:
- Analyze Multimodal (
POST /contentsafety/imageWithText:analyze) - Custom categories (rapid), including text and image (
PATCH /contentsafety/{text|image}/incidents/...andPOST /contentsafety/{text|image}:detectIncidents) - Connected containers for Text, Image, and Prompt Shields
- Disconnected containers for Text and Image
- Embedded Content Safety SDK (
Azure.AI.ContentSafety.Extension.Embedded.*C++ Windows x64 preview) - Groundedness detection in Azure AI Content Safety and Azure OpenAI (
POST /contentsafety/text:detectGroundedness)
Note: Azure's separate Custom categories (standard) preview carried an earlier September 1, 2026 retirement notice in Microsoft's quickstart docs. Microsoft's standard text:analyze, image:analyze, blocklists, and cloud Prompt Shields APIs are not part of the AZ577474 retirement.
Honest feature-by-feature mapping: Azure vs. Paxmod
Do not switch moderation vendors without checking every gap. Here is what Microsoft suggests, how each retiring capability maps to Paxmod, and where Paxmod has no equivalent.
| Retiring Azure feature | Microsoft's suggested path | Paxmod equivalent | Plain truth on gaps and differences |
|---|---|---|---|
| Custom categories (rapid) (text & image) | Content Safety blocklists (exact terms) or Foundry Custom text classification. | Yes (strongest fit). Text Advanced mode enforces plain-English policies up to 1,000 chars, tested via POST /api/v1/test-policy. Word rules handle exact blocks and rewrites. Image projects (Studio plan and above) support up to 20 plain-English custom image checks. | No .jsonl dataset, no incident deploy step, and rules update in about 5 minutes. Note: Advanced mode and custom image checks use 2 credits per call instead of 1, and image custom checks are unavailable with Enterprise data residency. |
Analyze Multimodal (imageWithText:analyze) | Split into Analyze Image + Document Intelligence or Content Understanding OCR + Analyze Text. | Partial (separate endpoints). Moderate text on POST /api/v1/text and images on POST /api/v1/image (Studio plan and above). Custom image checks can flag text-like patterns in images (e.g., phone numbers). | No single combined imageWithText endpoint and no standalone OCR text-extraction API. Also, Paxmod /api/v1/image takes a publicly reachable image_url, not base64 bytes. |
| Connected containers (Text, Image, Prompt Shields) | Move to Content Safety cloud REST APIs where connectivity exists, or contact Azure support. | No Azure-compatible containers. Hosted SaaS REST API (/api/v1/text, /api/v1/image) with EU or Canada data residency on Enterprise. For local text guardrails in Node.js, PaxmodGuard (@paxmod/guard) runs on your own CPU. | No Docker image moderation container and no Prompt Shields container equivalent. Use Paxmod only if hosted HTTPS (or local Node text guardrails via @paxmod/guard) fits your compliance setup. |
| Disconnected containers (Text, Image) | Contact Azure support to discuss alternatives. | Local text only (@paxmod/guard). Runs offline on CPU in Node.js via onnxruntime (about 220 MB model, about 1 GB RAM) after initial download. | No offline image moderation and no air-gapped enterprise container suite. Not a drop-in replacement for disconnected Azure image containers. |
| Embedded Content Safety SDK (Windows x64 C++) | Transition active on-device deployments to Content Safety cloud REST APIs. | No on-device C++ SDK. Call Paxmod's HTTPS REST API from your backend server (paxmod npm SDK for JS/TS, or plain HTTPS from C#/C++/Python/Luau). | No Windows client-side embedded SDK. Never embed Paxmod API keys in game clients or desktop apps; keep calls server-side. |
Groundedness detection (text:detectGroundedness) | Microsoft Foundry evaluation tooling, or customer-owned LLM or system-prompt validation. | None. | Paxmod does not detect RAG hallucinations or check answers against grounding sources. Keep Foundry evals or an LLM check for groundedness. |
5-step migration plan before April 30, 2027
- 1
Audit your endpoints now
Search your codebase for imageWithText:analyze, detectIncidents, incidents, detectGroundedness, Embedded, or mcr.microsoft.com/azure-cognitive-services/contentsafety. Keep text:analyze and image:analyze where they are not retiring, or consolidate text and image chat moderation onto Paxmod.
- 2
Grab a test key with no signup
Call POST https://www.paxmod.com/api/v1/agent-key (100 free text messages over 72 hours, no card) or start the 14-day full trial (10,000 messages, includes Image API and conversation context).
- 3
Translate your custom incidents into plain English
Paste your Azure incident definitions into Paxmod Advanced mode (or Image Custom checks on Studio) and validate up to 50 historical examples at once with POST /api/v1/test-policy.
- 4
Shadow-test thresholds on live traffic
Azure severity scores (0/2/4/6 or 0 to 7) do not map 1:1 to Paxmod's 0.0 to 1.0 scores. Run both in parallel in monitor mode for a few days and tune each category threshold in the Paxmod Playground (default 0.5).
- 5
Cut over cleanly
Switch enforcement to Paxmod (with onUnavailable: allow in the paxmod SDK so chat never stalls), then decommission your retiring Azure endpoints well ahead of April 30, 2027.
Side-by-side API migration examples
Example 1: Replacing Custom categories (rapid) (text:detectIncidents)
With Azure's retiring Rapid API, you had to PATCH an incident object, POST :addIncidentSamples, POST :deploy, and then call text:detectIncidents. With Paxmod Advanced mode, you write the rule in plain English in the console (or test up to 50 examples via POST /api/v1/test-policy) and call one endpoint.
Before (Azure Custom categories rapid, retiring April 30, 2027)
curl -X POST "https://<your-resource>.cognitiveservices.azure.com/contentsafety/text:detectIncidents?api-version=2024-02-15-preview" \
-H "Ocp-Apim-Subscription-Key: $AZURE_CS_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "hey add my snapchat, dont tell your parents",
"incidentNames": ["off-platform-lure"]
}'After (Paxmod Text API, Advanced mode or Gaming Standard mode)
curl -X POST "https://www.paxmod.com/api/v1/text" \
-H "Authorization: Bearer $PAXMOD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "hey add my snapchat, dont tell your parents",
"user_id": "player_123",
"context_id": "lobby_42"
}'Read content_moderation.flagged (boolean) or result === "flagged". In Advanced mode, content_moderation.categories["Policy Violation"] gives score, threshold, and flagged. Remember two key payload differences: Paxmod requires "message" (not "text", max 5,000 characters), and "user_id" + "context_id" unlock player history and multi-message conversation context (Studio plan and above).
Example 2: Replacing Analyze Multimodal (imageWithText:analyze)
Paxmod separates text and image scoring across two endpoints. Note that /api/v1/image requires the Studio plan ($149/month) or higher and fetches images via a publicly reachable image_url (rather than inline base64).
Before (Azure Analyze Multimodal, retiring April 30, 2027)
curl -X POST "https://<your-resource>.cognitiveservices.azure.com/contentsafety/imageWithText:analyze?api-version=2024-09-15-preview" \
-H "Ocp-Apim-Subscription-Key: $AZURE_CS_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": { "blobUrl": "https://cdn.example.com/uploads/post_99.jpg" },
"text": "Add me for free coins!",
"categories": ["Hate", "Sexual", "Violence", "SelfHarm"],
"enableOcr": true
}'After (Paxmod Text + Image calls)
import { Paxmod } from "paxmod";
// Use separate keys for your Text project and Image project
const textMod = new Paxmod({ apiKey: process.env.PAXMOD_TEXT_API_KEY, onUnavailable: "allow" });
const imageMod = new Paxmod({ apiKey: process.env.PAXMOD_IMAGE_API_KEY, onUnavailable: "allow" });
const [textRes, imageRes] = await Promise.all([
textMod.moderateText("Add me for free coins!", { userId: "user_123", contextId: "post_99" }),
imageMod.moderateImage("https://cdn.example.com/uploads/post_99.jpg", { userId: "user_123", contextId: "post_99" }),
]);
const flagged = textRes.flagged || imageRes.flagged;(Need to catch text inside images like phone numbers or handles? Enable a plain-English custom check on your Image project in Settings, e.g. "The image shows a phone number".)
Transparent pricing (no sales call required)
- Free test key: 100 text messages over 72 hours via
POST /api/v1/agent-key(no account, no card). - 14-day free trial: 10,000 messages and every feature switched on (card required; cancel before day 14 and pay nothing).
- Indie ($29/month): 50,000 message credits included (then $0.40 per 1,000). Standard mode, Advanced plain-English policies, word rules, user analysis.
- Studio ($149/month): 500,000 message credits included (then $0.25 per 1,000). Adds conversation context, Image API + custom image checks, team seats, priority support.
- Enterprise (from $1,500/month): Custom volume on an annual contract, EU or Canada data residency, SLA, invoicing, COPPA-oriented setup.
(Standard text and built-in image checks use 1 credit. Advanced mode text and custom image checks use 2 credits.)
Ready to test before Azure's April 30, 2027 cutoff?
1-call test key (for developers and coding agents):
curl -X POST https://www.paxmod.com/api/v1/agent-key \
-H "Content-Type: application/json" \
-d '{"name": "Azure migration test", "source": "migration-guide"}'Related resources
Azure Content Safety alternative
Side-by-side comparison of Azure AI Content Safety vs Paxmod
Paxmod Pricing
Plans from $29/month with generous included credits
API Documentation
Complete API reference with copy-paste examples
Perspective API Alternative
How to switch from Perspective API (shutdown after Dec 31, 2026)