Image Moderation
Moderate Image
POST
/
image
Copy
curl --request POST \
--url https://api.contentmod.io/image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"image": "This is a very cool api",
"options": {
"meta": {},
"callbackUrl": "<string>",
"defer": true,
"actorId": "<string>"
}
}'
Copy
{
"summary": {
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"isSafe": true,
"confidence": 90,
"description": "This is a description",
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"suggestedActions": {
"reject": true,
"review": true
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
image
The body is of type object
.
Response
200
application/json
Response of the moderated image
The response is of type object
.
Copy
curl --request POST \
--url https://api.contentmod.io/image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"image": "This is a very cool api",
"options": {
"meta": {},
"callbackUrl": "<string>",
"defer": true,
"actorId": "<string>"
}
}'
Copy
{
"summary": {
"totalFlags": 1,
"contentRating": "G",
"language": "en"
},
"isSafe": true,
"confidence": 90,
"description": "This is a description",
"riskScores": {
"overall": 90,
"spam": 90,
"toxicity": 90
},
"topics": [
"politics",
"sports"
],
"nsfwCategories": [
{
"category": "sexual",
"severity": 90
}
],
"suggestedActions": {
"reject": true,
"review": true
},
"meta": "<any>",
"hash": "93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
}
Assistant
Responses are generated using AI and may contain mistakes.