This topic describes the endpoints of the Content Moderation API.

The endpoints of the Content Moderation API are in the following format:
http(s)://green.{region}.aliyuncs.com/API operation

where:

  • {region} indicates a supported region. The following table describes the supported regions.

    If you use a public endpoint, you can replace {region} with a region that is close to the server and supports the operation to be called. This reduces the time consumed by calling API operations. If you use the Content Moderation API in the Alibaba Cloud Management Console, you can use an internal endpoint and replace {region} with the region where the server resides. Compared with API calls over the Internet, API calls over the internal network consumes less time.

    Region Region ID Public endpoint SDK version that supports HTTPS Internal endpoint Features supported in the region
    China (Shanghai) cn-shanghai green.cn-shanghai.aliyuncs.com SDK V3.0.0 or later green-vpc.cn-shanghai.aliyuncs.com All
    China (Beijing) cn-beijing green.cn-beijing.aliyuncs.com SDK V3.0.0 or later green-vpc.cn-beijing.aliyuncs.com All
    China (Shenzhen) cn-shenzhen green.cn-shenzhen.aliyuncs.com SDK V3.0.0 or later green-vpc.cn-shenzhen.aliyuncs.com
    • Pornographic detection for images and videos
    • Terrorist content detection for images and videos
    • Ad detection for images and videos
    • Celebrity recognition for images and videos
    • Optical character recognition (OCR) for regular images instead of cards and certificates
    • Text moderation
    • Audio moderation
    Singapore ap-southeast-1 green.ap-southeast-1.aliyuncs.com SDK V3.0.0 or later green-vpc.ap-southeast-1.aliyuncs.com
    • Pornographic detection for images and videos
    • Terrorist content detection for images and videos
    • Ad detection for images and videos
    • Celebrity recognition for images and videos
    • OCR for regular images instead of cards and certificates
    • Text moderation
  • API operation indicates the URI of the specific API operation. For more information, see the description of each API operation.
For example, the following endpoint can be used to call the pornography detection service in the China (Shanghai) region:
http(s)://green.cn-shanghai.aliyuncs.com/green/image/scan