Azure AI Content Safety for Python

•
6
•

Detects harmful text and image content with multi-severity classification and custom blocklists using the Azure AI Content Safety Python SDK.

Azure AI Content Safety for Python equips Claude Code with deep implementation patterns for integrating Microsoft's Azure AI Content Safety SDK into Python applications. It provides ready-to-use workflows for text and image harm detection across categories like Hate, Violence, Sexual content, and Self-Harm, along with multi-level severity scoring (4-level and 8-level modes). The skill also covers secure authentication via API keys or Microsoft Entra ID, image analysis via base64 or remote URLs, and end-to-end custom text blocklist management, making it an essential guide for building robust AI guardrails and user-generated content moderation pipelines.

Key Features

01Custom text blocklist creation and match-based content filtering
02Support for base64 encoded local images and remote image URLs
03Text and image content moderation with multi-severity level classification
04Dual authentication support using AzureKeyCredential and DefaultAzureCredential (Entra ID)
05Automated harm detection across Hate, Sexual, Violence, and Self-Harm categories
066 GitHub stars

Use Cases

01Moderating user-generated forum posts, comments, and uploaded profile pictures
02Implementing safety guardrails and output filtering for generative AI applications
03Enforcing compliance policies with custom domain-specific word blocklists