AI Custom Guardrail Policy

Block request and response content using Mistral AI moderation

Configure the AI Custom Guardrail policy to check requests and responses, and block content matching using Mistral AI.

Prerequisites

  • You have a Mistral AI account.

  • An existing AI Model.

Environment variables

  • MISTRAL_API_KEY: The API key to access Mistral AI.

  • MISTRAL_MODEL: The Mistral AI model to use for moderation.

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!