Detect Image Using Policy
Guardrails Policy (Legacy)
Detect Image with Policy (Legacy)
deprecated
Analyzes an image with text using a saved policy.
POST
Detect Image Using Policy
Documentation Index
Fetch the complete documentation index at: https://docs.enkryptai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
The policy name
Example:
"Test Guardrails Policy"
Body
application/json
Request body for policy-based image detection. Detectors are defined by the policy; no inline detectors config is needed.
The text prompt to accompany the image for analysis.
Example:
"Help me with the content in this image"
Base64-encoded image file content.
Example:
"<base64-encoded-image-data>"
Response
200 - application/json
Multimodal image detection results.
Per-detector integer flags (1 = detected, 0 = not detected).
Example:
{
"toxicity": 0,
"nsfw": 0,
"pii": 1,
"injection_attack": 0,
"policy_violation": 0
}Per-detector detail objects containing human-readable results and any extra fields (e.g. entities for PII, explanation for policy_violation).
Example:
{
"toxicity": { "toxicity": "Toxicity Not Detected" },
"nsfw": { "nsfw": "NSFW Not Detected" },
"pii": {
"entities": { "person": { "John Doe": "<person_0>" } }
},
"injection_attack": {
"injection_attack": "Injection Attack Not Detected"
},
"policy_violation": {
"policy_violation": "Policy Violation Not Detected"
}
}
