--- title: "Image Moderation" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/image-moderation/ description: "This page describes the method to use the Image Moderation feature to detect vulnerability in images within your Python application with sample code snippets" last_updated: 2026-06-09T07:46:16Z service: Zia Services type: general related_links: - name: "Image Moderation - API" url: /en/api/code-reference/zia-services/image-moderation/#ImageModeration - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # Image Moderation [Image Moderation](https://docs.catalyst.zoho.com/en/zia-services/help/image-moderation/introduction/) detects and recognizes inappropriate and unsafe content in images. The criteria include suggestive or explicit racy content, nudity, violence, gore, bloodshed, and the presence of weapons and drugs. 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. You can 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`. To know more about the component instance `zia` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/get-component-instance/). **Parameters Used**
| Parameter Name | Data Type | Definition |
|---|---|---|
| `img` | Image | A **Mandatory** parameter. Will store the image to be analyzed. |
| `options` | Array | A **Optional** parameter. Will store the analysis mode values - "basic", "moderate" or "advanced" |