cURL
curl --request POST \ --url https://api.enkryptai.com/guardrails/detect-image \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "text_input": "<string>", "image_data": "<string>", "need_explanation": false } '
200
unsafe_no_explanation
{ "response": "The content is UNSAFE", "is_unsafe": true }
Analyze an image with text for safety threats using multimodal guardrails
The text prompt to accompany the image for analysis.
Base64-encoded image file content.
Whether to include a detailed explanation of the safety assessment in the response.
Multimodal image detection results.
The safety assessment result. When need_explanation is true, includes a detailed explanation.
Whether the analyzed content was determined to be unsafe.