Skip to content

AIDR Interactions Overview

Interactions performs a detailed security analysis of the input and output of LLM interactions.


Interactions is a flexible API that allows users to ensure that AI inputs and outputs are safe. The API takes a prompt input and / or model output, and returns a detailed analysis for many detection categories.

A user making a post request to the API with a prompt will receive a detailed analysis with details about which detections were triggered by the prompt. For example, it will return detections for prompt injection, personally identifiable information (PII), code, denial of service, guardrails, model refusals, and prompt language.

The detections are based on the rules configured for the relevant Project. For example, if the rules were configured to allow the model to return code, but not PII, the API would not returns detections if the only detections were for code.