--- title: "Implementation" url: https://docs.catalyst.zoho.com/en/zia-services/help/image-moderation/implementation/ description: "Image Moderation is a Zia AI-driven, readily-available image monitoring service that recognizes NSFW content in images, that you can implement in your Catalyst applicatoin." last_updated: 2026-08-17T12:16:04Z service: Zia Services type: general --- # Implementation This section only covers working with Image Moderation in the Catalyst console. Refer to the [SDK](https://docs.catalyst.zoho.com/en/sdk/java/v1/zia-services/image-moderation) and [API](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/image-moderation) documentation sections for implementing Image Moderation in your application's code. As mentioned earlier, you can access the code templates that will enable you to integrate Image Moderation in your Catalyst application from the console, and also test the feature by uploading images and obtaining the results. ### Access Image Moderation To access Image Moderation in your Catalyst console: 1. Navigate to **Zia Services** in the left pane of the Catalyst console and click **Image Moderation.** ![image-moderation-updated](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/image-moderation-updated.webp) 2. Click **Try a Demo** in the Image Moderation feature page. ![catalyst_imgmod_index_page](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_index_page.webp) This will open the Image Moderation feature. ![catalyst_imgmod_test_page](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_test_page.webp) ### Test Image Moderation in the Catalyst Console You can test Image Moderation by either selecting a sample image from Catalyst or by uploading your own image. To scan a sample image and view the result: 1. Click **Select a Sample Image** in the box. ![catalyst_imgmod_sample](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_sample.webp) 2. Select an image from the samples provided. ![catalyst_imgmod_select_sample](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_select_sample.webp) Image Moderation will scan the image for inappropriate content of all criteria in the [advanced mode](https://docs.catalyst.zoho.com/en/zia-services/help/image-moderation/key-concepts/#moderation-modes), and display the probability of each detected criteria as percentage values. ![catalyst_imgmod_sample_scanned](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_sample_scanned.webp) The colors in the response bars indicate the safety of the image in the following way: red indicates that the image is unsafe to use, orange indicates that the image is partially safe to use, and green indicates that the image is safe to use. You can also view the complete JSON response, which includes the probability of each detected criteria, the prediction, and its confidence score. Click **View Response** to view the [JSON response](https://docs.catalyst.zoho.com/en/zia-services/help/image-moderation/key-concepts/#response-format). ![catalyst_imgmod_sample_json](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_sample_json.webp) You can refer to the [API documentation](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/image-moderation/#ImageModeration) to view a complete sample JSON response structure for each moderation mode. To upload your own image and test Image Moderation: 1. Click **Upload** under the _Result_ section. ![catalyst_imgmod_upload](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_upload.webp) If you're opening Image Moderation after you have closed it, click **Browse Files** in this box. ![catalyst_imgmod_browse](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_browse.webp) 2. Upload a file from your local system. > **Note:** The file must be in ._jpg_/._jpeg_ or ._png_ format. The file size must not exceed 10 MB. The console will scan the image for inappropriate content and display the results. ![catalyst_imgmod_image_scanned](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_image_scanned.webp) You can click **View Photo** to uncover the image. ![catalyst_imgmod_image_uncovered](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_image_uncovered.webp) You can view the JSON response as well in the same way. ![catalyst_imgmod_image_json](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_image_json.webp) ### Access Code Templates for Image Moderation You can implement Image Moderation in your Catalyst application using the code templates provided by Catalyst for [Java](https://docs.catalyst.zoho.com/en/sdk/java/v1/zia-services/image-moderation/), [Node.js](https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/image-moderation/) and [Python](https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/image-moderation/) platforms. You can access them from the section below the test window. Click either the **Java SDK** or **NodeJS SDK** tab, and copy the code using the copy icon. You can paste this code in your web or Android application's code wherever you require. ![catalyst_imgmod_java](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_java_updated.webp) You can process the input file as a new `File` in Java. The `ZCImageModerationOptions` module enables you to set the [moderation mode](https://docs.catalyst.zoho.com/en/zia-services/help/image-moderation/key-concepts/#moderation-modes) as `BASIC`, `MODERATE`, or `ADVANCED` using `setAnalyseMode`. ![catalyst_imgmod_node](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_node_updated.webp) In Node.js, the `imPromise` object is used to hold the input image file and the moderation mode set for it. You can specify the `mode` as `basic`, `moderate`, or `advanced` to process the image in required mode. ![catalyst_imgmod_python](https://catalyst-docs-development.zohostratus.in/images/help/image-moderation/catalyst_imgmod_python.webp) In Python, you can provide a .webp/.jpeg or .png file as the input to the open() method. This method returns the image file object as a response. In the `zia.moderate_image` method, you can pass the image file object,and set the moderation mode as `BASIC`, `MODERATE`, or `ADVANCED` optionally. The image is processed in the `ADVANCED` mode by default. The response returns the probability of each criteria with their confidence scores, and the prediction of the image being `safe_to_use` or `unsafe_to_use`.