All Products
Search
Document Center

AI Guardrails:Endpoint

Last Updated:Mar 31, 2026

The AI Guardrails API uses the following endpoint format:

http(s)://green.{region}.aliyuncs.com/ServiceAPI
  • {region}: the region identifier (see the table below)

  • ServiceAPI: the URI of the specific API operation (see the description of each operation)

Example — call the pornography detection API in China (Shanghai):

http(s)://green.cn-shanghai.aliyuncs.com/green/image/scan
HTTPS is supported for SDK versions 3.0.0 and later.

Choose an endpoint type

Two endpoint types are available:

  • Public endpoint — use when your server is outside Alibaba Cloud, or when it is in a different region. Choose the region closest to your server to reduce call latency.

  • Internal endpoint — use when your server is on Alibaba Cloud in the same region. API calls over the internal network have significantly lower end-to-end latency than calls over the public network.

Supported regions and endpoints

RegionPublic endpointInternal endpoint
China (Shanghai)green.cn-shanghai.aliyuncs.comgreen-vpc.cn-shanghai.aliyuncs.com
China (Beijing)green.cn-beijing.aliyuncs.comgreen-vpc.cn-beijing.aliyuncs.com
China (Shenzhen)green.cn-shenzhen.aliyuncs.comgreen-vpc.cn-shenzhen.aliyuncs.com
Singaporegreen.ap-southeast-1.aliyuncs.comgreen-vpc.ap-southeast-1.aliyuncs.com
Germany (Frankfurt)green.eu-central-1.aliyuncs.comgreen-vpc.eu-central-1.aliyuncs.com
US (Virginia)green.us-east-1.aliyuncs.comgreen-vpc.us-east-1.aliyuncs.com

Service availability by region

Not all moderation services are available in every region. The following table shows which services are deployed in each region.

ServiceChina (Shanghai)China (Beijing)China (Shenzhen)SingaporeGermany (Frankfurt)US (Virginia)
Pornography detection — images and videosImages onlyImages only
Terrorism and political content detection — images and videosTerrorism, images onlyTerrorism, images only
Ad detection — images and videosImages onlyImages only
Sensitive face detection — images and videos
General image OCR (excluding cards and certificates)
Text moderation
Voice moderation

China (Shanghai) and China (Beijing) support all services. For the full list of available API operations, see API overview.