Skip to main content
POST
/
v1
/
moderations
Create image moderation result
curl --request POST \
  --url https://apiany.ai/v1/moderations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "nsfw-image-detection",
  "image_url": "https://example.com/image.png"
}
'
{
  "object": "moderation",
  "model": "nsfw-image-detection",
  "results": [
    {
      "flagged": true,
      "label": "normal",
      "score": 0.5
    }
  ],
  "id": "<string>",
  "created": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"nsfw-image-detection"

image_url
string<uri>
required

Image URL to classify.

input
object

Response

Moderation result.

object
string
required
Example:

"moderation"

model
string
required
Example:

"nsfw-image-detection"

results
object[]
required
id
string
created