azure-ai-contentsafety-java

Implement content moderation workflows for text and images using Azure Content Safety in Java.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-ai-contentsafety-java-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-ai-contentsafety-java
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-java/skills/azure-ai-contentsafety-java
Command: npx skills add https://github.com/microsoft/skills --skill azure-ai-contentsafety-java-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build content moderation capabilities for Java applications using the Azure AI Content Safety SDK. It helps you detect and manage hate, violence, sexual content, and self-harm in text and images, and provides blocklist management to enforce policies across your platforms.

Core Features & Use Cases

  • Analyze text to detect harmful content and apply moderation decisions in chat, forums, or social apps.
  • Analyze images to identify unsafe content and trigger appropriate actions.
  • Manage and apply blocklists to centralize policy enforcement across content streams.
  • Access code samples and patterns to accelerate integrating content moderation into your product.

Quick Start

Create a Content Safety Java client and run a sample analysis workflow.

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 text in Java applications?

You can detect harmful text in Java by using the Azure AI Content Safety SDK to analyze content for hate, violence, sexual, and self-harm categories. Create a client and run a sample analysis workflow to apply moderation decisions in chats or forums.

Can I analyze images for unsafe content using Java?

Yes, you can analyze images for unsafe content using the Azure Content Safety Java SDK to identify harmful visual material. This allows you to trigger appropriate moderation actions across your social platforms and applications.

Do I need an Azure API key to use the Content Safety Java SDK?

Yes, you need an Azure API key or DefaultAzureCredential to authenticate requests with the Content Safety Java SDK. You also need a Java runtime environment configured to build and run your content moderation workflows.

How do I manage blocklists for content moderation in Java?

You can manage blocklists for content moderation in Java using the Azure AI Content Safety SDK. It provides blocklist management features to centralize policy enforcement across your content streams and platforms.

What is the best way to enforce content policies across social platforms in Java?

A reliable way to enforce content policies in Java is using the Azure Content Safety SDK to analyze text and images, manage blocklists, and detect hate or violence. It provides code samples to accelerate integrating moderation into your product.