azure-ai-contentsafety-java

Detect harmful content in text and images via Azure AI Content Safety Java SDK.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-ai-contentsafety-java-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-ai-contentsafety-java
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-ai-contentsafety-java
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-ai-contentsafety-java-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide programmatic moderation of user-generated text and images to detect hate, violence, sexual content, and self-harm so applications can automatically flag, block, or route risky content for review.

Core Features & Use Cases

  • SDK Integration: Java client examples and dependency details for com.azure:azure-ai-contentsafety to embed moderation into backend services.
  • Text & Image Analysis: Severity scoring across harm categories, image URL or binary analysis, and configurable output levels for operational decisions.
  • Blocklist Management: Create, update, list, and remove blocklists and blocklist items to enforce custom policy matches.
  • Use Case: Moderating chat messages and uploaded images in a social platform, flagging high-severity content and halting posts on blocklist matches.

Quick Start

Analyze a message or image by creating a ContentSafetyClient with your CONTENT_SAFETY_ENDPOINT and CONTENT_SAFETY_KEY (or DefaultAzureCredential) to get severity scores and blocklist matches.

Frequently Asked Questions about azure-ai-contentsafety-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect harmful content in user-generated text and images using Java?

To detect harmful content in Java, use the Azure AI Content Safety SDK to analyze text and images, returning severity scores across categories like hate, violence, sexual content, and self-harm for automated moderation.

How do I create and enforce custom blocklists for content moderation in Java?

Custom blocklists for content moderation in Java are managed via the Azure AI Content Safety SDK, allowing you to create, update, and remove blocklists to enforce custom policy matches and halt posts on matches.

Does the Azure AI Content Safety SDK support analyzing both image URLs and binary data in Java?

Yes, the Azure AI Content Safety SDK for Java supports image moderation by analyzing both image URLs and binary data, returning configurable severity scores to inform operational decisions.

What authentication do I need to configure a ContentSafetyClient in Java?

Configuring a ContentSafetyClient in Java requires your CONTENT_SAFETY_ENDPOINT and CONTENT_SAFETY_KEY, or you can use DefaultAzureCredential for authentication to access content moderation features.

Can I use Azure AI Content Safety to moderate chat messages in a social platform backend?

Yes, you can use Azure AI Content Safety in a Java backend to moderate chat messages and uploaded images, flagging high-severity content and halting posts on blocklist matches in social platforms.

What are the limitations of using Azure AI Content Safety for automated moderation?

The Azure AI Content Safety SDK provides severity scoring and blocklist matching but requires standard HTTP error handling, and relies on accurate endpoint and credential configuration for reliable automated safety checks.