Azure AI Content Safety for Python
Moderates user-generated and AI-generated content by detecting harmful text and images using Azure's AI-powered safety service.
This skill integrates the Azure AI Content Safety SDK into your Python workflow, allowing you to automatically detect and categorize harmful content across four key categories: hate, violence, sexual, and self-harm. It provides robust tools for multi-severity classification, custom blocklist management, and support for both text and image analysis. This is particularly useful for developers building applications that require automated moderation, safety filtering for LLM outputs, or compliance with digital safety standards within an Azure environment.
Key Features
01Versatile image analysis via local file uploads or remote blob URLs
02Secure authentication using either API keys or Azure Entra ID (Managed Identity)
030 GitHub stars
04Configurable severity levels with support for both 4-level and granular 8-level scales
05Multi-category text and image analysis for hate, sexual, violence, and self-harm
06Custom blocklist management for domain-specific content filtering
Use Cases
01Automated moderation of user comments and profile pictures in web applications
02Implementing custom compliance rules using managed blocklists for restricted terminology
03Safety guarding for LLM prompts and responses to prevent generating harmful content