Learn which regions and services are available for PAI, and how to configure region-specific SDK endpoints.
AI computing resources
|
Resource type |
Area |
Region |
|
Lingjun resources |
Asia Pacific |
|
|
General computing resources |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Elastic Algorithm Service (EAS) computing resources |
Asia Pacific |
|
|
Europe and Americas |
|
Region-endpoint mapping
Use region-specific endpoints when configuring PAI SDK or API calls. Each region has dedicated endpoints for PAI and EAS services.
|
Region |
Region ID |
PAI Endpoint |
EAS Endpoint |
Available Services |
|
China (Hangzhou) |
cn-hangzhou |
pai.cn-hangzhou.aliyuncs.com |
pai-eas.cn-hangzhou.aliyuncs.com |
All |
|
China (Shanghai) |
cn-shanghai |
pai.cn-shanghai.aliyuncs.com |
pai-eas.cn-shanghai.aliyuncs.com |
All |
|
China (Beijing) |
cn-beijing |
pai.cn-beijing.aliyuncs.com |
pai-eas.cn-beijing.aliyuncs.com |
All |
|
China (Shenzhen) |
cn-shenzhen |
pai.cn-shenzhen.aliyuncs.com |
pai-eas.cn-shenzhen.aliyuncs.com |
All |
|
US (Silicon Valley) |
us-west-1 |
pai.us-west-1.aliyuncs.com |
pai-eas.us-west-1.aliyuncs.com |
EAS, DSW, DLC |
|
US (Virginia) |
us-east-1 |
pai.us-east-1.aliyuncs.com |
pai-eas.us-east-1.aliyuncs.com |
EAS, DSW |
|
Germany (Frankfurt) |
eu-central-1 |
pai.eu-central-1.aliyuncs.com |
pai-eas.eu-central-1.aliyuncs.com |
EAS |
|
Japan (Tokyo) |
ap-northeast-1 |
pai.ap-northeast-1.aliyuncs.com |
pai-eas.ap-northeast-1.aliyuncs.com |
EAS, DSW |
|
Singapore |
ap-southeast-1 |
pai.ap-southeast-1.aliyuncs.com |
pai-eas.ap-southeast-1.aliyuncs.com |
All |
SDK configuration examples
Configure region and endpoint when initializing PAI SDK client.
Python SDK - US West region
from pai.client import Client
# Configure for US West (Silicon Valley) region
client = Client(
access_key_id='<your-access-key-id>',
access_key_secret='<your-access-key-secret>',
region_id='us-west-1', # Specify region
endpoint='https://pai.us-west-1.aliyuncs.com' # US endpoint
)
# For EAS service in US region
eas_endpoint = 'https://pai-eas.us-west-1.aliyuncs.com'
service_name = 'your-model-service'
Python SDK - EU region
from pai.client import Client
# Configure for EU (Germany Frankfurt) region
client = Client(
access_key_id='<your-access-key-id>',
access_key_secret='<your-access-key-secret>',
region_id='eu-central-1', # Germany Frankfurt
endpoint='https://pai.eu-central-1.aliyuncs.com'
)
How to choose a region
Consider these factors when selecting a PAI region:
-
Data residency: Choose region matching data storage location to minimize data transfer costs and latency.
-
Latency: Select region closest to end users for better performance.
-
Service availability: Verify required services available in target region (see table above).
-
Pricing: Costs may vary by region. Check pricing documentation for details.
-
Compliance: Some industries require specific regions (for example, GDPR requires EU regions).
Recommendation: For international users, US-West-1 (Silicon Valley) offers best balance of services and performance.
AI workspace
|
Area |
Region |
|
Asia Pacific |
|
|
Europe and Americas |
|
|
Middle East |
|
QuickStart
|
Feature classification |
Area |
Region |
|
Model Gallery |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Notebook Gallery |
Asia Pacific |
|
|
Europe and Americas |
|
iTAG
|
Area |
Region |
|
Asia Pacific |
|
Visualization modeling (Designer)
|
Area |
Region |
|
Asia Pacific |
|
|
Europe and Americas |
|
Data Science Workshop (DSW)
|
Area |
Region |
Billing method |
|
Asia Pacific |
|
Pay-as-you-go |
|
Europe and Americas |
|
|
|
Asia Pacific |
|
Subscription |
|
Europe and Americas |
|
Distributed Training (DLC)
|
Area |
Region |
Billing method |
|
Asia Pacific |
|
Pay-as-you-go |
|
Europe and Americas |
|
|
|
Asia Pacific |
|
Subscription |
|
Europe and Americas |
|
Elastic Algorithm Service (EAS)
|
Area |
Region |
|
Asia Pacific |
|
|
Europe and Americas |
|
AI asset management
|
Asset Type |
Area |
Region |
|
Dataset |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Model |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Image |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Job |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Connection |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Code configuration |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Custom components |
Asia Pacific |
|
|
Europe and Americas |
|
AutoML
|
Area |
Region |
|
Asia Pacific |
|
FeatureStore
|
Area |
Region |
|
Asia Pacific |
|
|
Europe and Americas |
|
Scenario-based solutions
|
Feature module |
Area |
Region |
|
User growth |
All regions |
|
|
Personalized recommendation (PAI-Rec) |
Asia Pacific |
|
|
Europe and Americas |
|
|
|
Intelligent retail |
All regions |
|
|
Multimedia analysis |
All regions |
|
|
AI portrait |
All regions |
|
AI acceleration
|
Area |
Region |
|
Asia Pacific |
|
Troubleshooting
Common issues when configuring regions and their solutions.
Error: Cannot select US/EU region in SDK configuration
Symptoms: SDK connection fails or times out when using US or EU region ID.
Root cause: Documentation doesn't show region-endpoint mapping clearly. Users may use wrong endpoint or omit endpoint parameter.
Solution:
-
Check region-endpoint mapping table above for correct endpoint.
-
Specify both
region_idandendpointparameters in SDK initialization. -
Verify access key has permissions for target region.
Example for US West region:
client = Client(
access_key_id='your-key',
access_key_secret='your-secret',
region_id='us-west-1',
endpoint='https://pai.us-west-1.aliyuncs.com' # Required
)
Prevention: Check region availability table before starting development. Verify service support for target region.
Error: Region mismatch between compute and storage
Symptoms: Job fails with "Cannot access OSS bucket" or "Permission denied" despite correct credentials.
Root cause: PAI compute resources and OSS bucket in different regions. Cross-region access requires internet transfer, which may be blocked.
Solution:
-
Create OSS bucket in same region as PAI workspace.
-
If cross-region access required, enable OSS bucket public read (not recommended for sensitive data).
-
Or migrate data to OSS bucket in correct region before running jobs.
Prevention: Plan resource topology before setup. Keep compute and storage resources in same region.