AI Azure Content Safety Policy

Block response content in predefined categories

Configure the policy to block response content matching the Hate and Violence categories defined by Azure.

Prerequisites

  • You have an Azure subscription and access to Azure AI Content Safety.

  • An existing AI Model.

Environment variables

  • CONTENT_SAFETY_URL: The full URL of the Azure AI Content Safety instance.

  • CONTENT_SAFETY_KEY: The API key to access the Azure AI Content Safety instance.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!