
Detect violence levels in images using AI vision analysis
Vision Language Model for image/video understanding with reasoning
media_typestringType of media being sent: 'image' or 'video'. Auto-detected if not specified.
imageimage_urlstringURL of image to analyze
https://example.com/image.jpgbase64_imagestringBase64-encoded image data
video_urlstringURL of video to analyze
https://example.com/video.mp4base64_videostringBase64-encoded video data
Structured Violence Detection response
responseobjectStructured response from the model
violencestringsevere_violencelight_violenceno_violencethinkingstringChain-of-thought reasoning from the model (may be empty)
{
"model": "vlm-violence-detection",
"image_url": "https://example.com/image.jpg"
}{
"inference_id": "inf_abc123def456",
"model_id": "vlm_violence_detection",
"model_name": "Violence Detection",
"moderation_type": "image",
"status": "completed",
"result": {
"response": {
"violence": "severe_violence"
},
"thinking": ""
}
}429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.Integrate Violence Detection into your application today with our easy-to-use API.