Analysis
Analyze - AI Vision Moderation
The Moderation mode accepts multiple questions about an image, to which the response provides concise answers of "yes," "no," or "unknown." This functionality allows for a nuanced evaluation of whether the image adheres to specific content policies, creative specs, or aesthetic criteria.
post/analyze/ai_vision_moderation
Request body
Example request
{
"source": {
"asset_id": "e12345b5c456c8901bbb0efc00c0fcf",
"uri": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
},
"notification_url": "https://path.to/webhook",
"rejection_questions": [
"Does the image contain any violent activity?"
]
}Response
Analysis succeeded
Example response
{
"data": {
"analysis": {
"responses": [
{
"prompt": "Does the image contain any violent activity?",
"value": "no"
},
{
"prompt": "Is there any nudity in the image?",
"value": "yes"
}
],
"model_version": 1
}
},
"limits": {
"items": [
{
"type": "ai_vision",
"used_by_request": 123,
"remaining": 500,
"limit": 10000,
"reset_time": "2024-01-20T12:34:56Z"
}
]
},
"request_id": "17c3b70c5096df0e77e838323abb7029"
}