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 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 spent in 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 consume less time.

    RegionSDK version that supports HTTPSPublic endpointInternal endpointFeature supported in the region
    China (Shanghai)Version 3.0.0 and later green.cn-shanghai.aliyuncs.comgreen-vpc.cn-shanghai.aliyuncs.comAll services are deployed. For more information, see List of operations by function.
    China (Beijing)Version 3.0.0 and latergreen.cn-beijing.aliyuncs.comgreen-vpc.cn-beijing.aliyuncs.comAll services are deployed. For more information, see List of operations by function.
    China (Shenzhen)Version 3.0.0 and latergreen.cn-shenzhen.aliyuncs.comgreen-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 excluding cards and certificates
    • Text moderation
    • Audio moderation
    Singapore (Singapore)Version 3.0.0 and latergreen.ap-southeast-1.aliyuncs.comgreen-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 excluding cards and certificates
    • Text moderation
    Germany (Frankfurt)Version 3.0.0 and latergreen.eu-central-1.aliyuncs.comgreen-vpc.eu-central-1.aliyuncs.com
    • Pornographic detection for images
    • Terrorist content detection for images
    • Ad detection for images
    • OCR for regular images excluding cards and certificates
    • Text moderation
    US (Silicon Valley)Version 3.0.0 and latergreen.us-east-1.aliyuncs.comgreen-vpc.us-east-1.aliyuncs.com
    • Pornographic detection for images
    • Terrorist content detection for images
    • Ad detection for images
    • 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