Serverless AI Image Moderation

AI powered image moderation service that analyzes image content for potentially harmful or inappropriate material. Detect nudity, violence, hate speech, and other objectionable content in visual media.

Endpoint

Analyze images for potentially inappropriate content

POSThttps://api.xtartapp.com/image/moderation

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
imagestringYes-Filename of the optimized .ximage file previously uploaded to the platform.

Response

NameTypeDescription
dataobjectAn object containing confidence scores for each moderation category
data.<category>numberConfidence score between 0 and 1 for the associated category, where higher values indicate higher likelihood of that content type being present
metadataobjectMetadata about the image moderation process
metadata.costnumberThe cost of the image moderation request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTThe request is invalid.
400IMAGE_MODERATION_ERRORCould not perform moderation analysis on the image | parsing error.
400INVALID_IMAGEThe image was not found or is invalid.
400HARM_CONTENTThe content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance.
401UNAUTHORIZEDThe token is invalid.
429TOO_MANY_REQUESTSThe request limit has been reached.