The Image Moderation API developed by WorqHat, powered by the advanced ImageCon V2 model, offers a robust solution for detecting and filtering inappropriate, unwanted, or offensive content in images. This API is highly versatile and can be effectively utilized in various applications, including social media platforms, broadcast media, advertising, and e-commerce. Its primary goal is to ensure a safer user experience, provide brand safety assurances to advertisers, and ensure compliance with local and global regulations.

Image Moderation AI Models. A powerful AI Model that can be used to detect and filter out inappropriate content from your website or app. Read more at https://docs.worqhat.com/ai-models/content-moderation/image-moderation

Parameters

ParameterTypeDescription
imageFile or stringThe image to be moderated. Can be a local file path, a URL, or a base64 encoded image.

You can pass in the image data in three ways:

  • Local File Path: Pass in the path to the image file on your local machine. The file must be in JPEG or PNG format.
  • URL: Pass in the URL of the image file. The file must be in JPEG or PNG format.
  • Base64 Encoded Image: Pass in the base64 encoded image data. The image must be in JPEG or PNG format.

Initialize AI Modules

const worqhat = require('worqhat');

var config = new worqhat.Configuration({
    apiKey: "your-api-key",
    debug: true,
    max_retries: 3,
});


worqhat.initializeApp(config);

let ai = worqhat.ai();

Implementation

ai.moderation.image({
    image: "./download.jpeg"
}).then(function(response) {
    console.log(response.data.analysed_data);
}).catch(function(error) {
    console.log(error);
});