Azure AI Content Safety for Python
Integrates Azure's powerful content moderation SDK to detect and filter harmful text and images in Python applications.
The Azure AI Content Safety Python skill provides a standardized framework for implementing robust moderation workflows in your software. It enables developers to programmatically detect hate, violence, sexual content, and self-harm indicators within user-generated or AI-generated content. With detailed guidance on multi-severity classification (4 or 8 levels), custom blocklist management, and secure authentication via Entra ID, this skill is essential for building safe, compliant, and production-ready applications that leverage Azure's machine learning safety models.
Key Features
01Dual authentication support using API Keys or Entra ID (Azure AD)
02Custom text blocklist management for domain-specific content filtering
03Multi-category analysis for text and images (Hate, Sexual, Violence, Self-Harm)
0439 GitHub stars
05Granular severity scoring with 4-level and 8-level classification options
06Pre-built patterns for both local image files and public blob URLs
Use Cases
01Moderating user-generated content in real-time to prevent platform abuse
02Pre-screening LLM-generated outputs to ensure AI safety and alignment
03Automating safety audits for large-scale image and text datasets