This topic describes the billable items and billing methods of Elastic Algorithm Service (EAS) of Platform for AI (PAI).
Note
The pricing information in this topic is only for reference. The actual prices in the billing statement shall prevail.
Billable resources
The following figure shows the billable resources of EAS.
Billing methods
The following table describes the billing methods of EAS.
Billing method | Billable resource | Billable item | Billing rule | Stop billing |
Pay-as-you-go | Public resource group | The amount of time for which a model service runs by using public resources. | If you use public resources to deploy a model service, you are charged based on the usage duration. Billing starts immediately after model services are deployed. | Stop model services. |
Pay-as-you-go | EAS resources (dedicated resource group) | The number of nodes and the usage duration. | If you use dedicated resources to deploy a model service, you are charged only for nodes in the dedicated resource group. Billing starts immediately after pay-as-you-go nodes are created in dedicated resource groups. | Delete pay-as-you-go nodes from dedicated resource groups. |
Subscription | The number of nodes and the subscription duration. | N/A | ||
Pay-as-you-go | System disk | The system disk capacity and the usage duration. | Billing starts immediately after the system disk is created. |
|
Subscription | The system disk capacity and the subscription duration. | Billing starts immediately after the system disk is created. | N/A | |
Subscription | AI computing resources (Lingjun resources) | For more information, see Billing of AI computing resources. | For more information, see Billing of AI computing resources. | N/A |
Pay-by-inference-duration | Service calls | The inference duration of the Serverless Edition service. | You are billed based on the inference duration of the Serverless Edition service. | If you do not use the service to perform inference, you are not charged. |
Pay-as-you-go | Dedicated gateway | The number and usage duration of gateway nodes. | You are billed based on the number of gateway nodes you purchase and the usage duration of the nodes. | Delete dedicated gateways. |
Subscription | The number and purchase duration of gateway nodes | You are billed based on the number of gateway nodes you purchase and the usage duration of the nodes. | N/A |
Public resource group
Pay-as-you-go
The public resource group supports only the pay-as-you-go billing method. When you deploy a model service in the public resource group, you can select an instance type that has predefined resources or specify resources based on your business requirements.Dedicated resource group (pay-as-you-go)
Resource type | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
Specified resources |
| For the unit prices per hour of vCPUs and memory, see Table 1. Pricing for specified resources in this topic. Fees are billed per minute. You can calculate the unit prices per minute by dividing the prices listed in Table 1 by 60. |
| If you scale out a model service, you are charged for new resources after the scale-out activity is complete. If you scale in a model service, the released resources are no longer billed. You are charged only for the remaining resources. |
|
Specified instance type |
| Unit prices may vary based on the instance type and the region. To view the unit prices of nodes, go to the EAS page in the PAI console, click Deploy Service, and then click Custom Deployment. In the Resource Deployment Information section, set the Resource Group Type parameter to Public Resource Group and select the instance type that you want to use. The unit price of the instance is displayed. For more information, see Model service deployment by using the PAI console. For information about the instance types supported by the public resource group, see Appendix: Public resource group instance types. |
| N/A |
|
Table 1. Resource-based configuration
The unit prices listed in the following table are only for reference. You can view the actual prices in the console or on the buy page of the service resource that you want to purchase.
Resource | Unit price |
vCPU | USD 0.03 per vCPU-hour |
Memory | USD 0.004 per GB-hour |
EAS resources
Dedicated resource group (pay-as-you-go)
EAS resources support the pay-as-you-go billing method.
Resource | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
Dedicated resource group |
| For information about the unit prices of pay-as-you-go nodes, go to the EAS post-payment for dedicated machine buy page. |
| If you scale out a model service, you are charged for new resources after the scale-out activity is complete. If you scale in a model service, the released resources are no longer billed. You are charged only for the remaining resources. |
|
Dedicated resource group (subscription)
EAS resources also support the subscription billing method.
Resource | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
Dedicated resource group |
| For information about the unit prices of subscription nodes, go to the EAS pre-payment for dedicated machine buy page. |
| N/A | Specific instance types may become unavailable for short periods of time in specific regions. In this case, you can purchase instances in different regions. |
System disk
Pay-as-you-go
Resource | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
System disk |
| To view the unit prices of system disks, go to the product overview page of Elastic Compute Service (ECS), click the Pricing tab, and then click Storage. The pricing information of Enhanced SSD PL1 is displayed in the System Cloud Disk Fee section. |
| N/A | N/A |
Subscription
Resource | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
System disk |
| To view the unit prices of system disks, go to the product overview page of ECS, click the Pricing tab, and then click Storage. The pricing information of Enhanced SSD PL1 is displayed in the System Cloud Disk Fee section. |
| N/A | None |
AI computing resources (Lingjun resources)
Subscription
Lingjun resources support the subscription billing method. You can deploy model services in EAS by using Lingjun resource quotas. For more information, see Billing of AI computing resources.
Service call (Serverless Edition)
The deployment of Serverless Edition services is free of charge. You are charged only if you call the services based on the inference duration. For example, if you click Generate on the web UI page to generate an image and the process requires 10 seconds, the billing duration is 10 seconds.
To view the pricing details, go to the Deploy Service page in the PAI console, click AI Painting - SD Web UI Deployment in the Scenario-based Deployment section, and then select Serverless Edition. The pricing information is displayed in the Total Configuration Fee section. For more information, see Use SD web UI to deploy an AI painting service.
Dedicated gateway
Pay-as-you-go
Resource type | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
Dedicated gateway |
| To view the unit prices of dedicated gateways, go to the EAS Dedicated Gateway Postpay buy page. |
| N/A | N/A |
Subscription
Resource type | Fee calculation | Unit price | Billing duration | Scaling description | Usage notes |
Dedicated gateway |
| To view the unit prices of dedicated gateways, go to the EAS Dedicated Gateway Prepay buy page. |
| N/A | N/A |
Billing examples
The following examples are for reference only. The actual prices listed on the EAS buy page of the PAI console shall prevail.
Public resource group
Pay-as-you-go
Scenario
You used the public resource group to deploy a model service in the China (Hangzhou) region. You specified the public resources used for model deployment based on your business requirements.
The model service occupied 2 vCPUs and 8 GB of memory and started to run at 09:00:00 (UTC+8) on June 3, 2019.
You scaled in the model service and reduced the occupied resources to 1 vCPU and 4 GB of memory at 10:00:00 (UTC+8) on June 3, 2019.
You scaled out the model service and increased the occupied resources to 4 vCPUs and 16 GB of memory at 11:00:00 (UTC+8) on June 3, 2019.
The model service stopped running at 12:00:00 (UTC+8) on June 3, 2019.
Fee calculation
Bill amount = 2 × 0.03 + 8 × 0.004 + 1 × 0.03 + 4 × 0.004 + 4 × 0.03 + 16 × 0.004 = USD 0.322
Dedicated resource group
Subscription
Scenario
You subscribed to two NVIDIA T4 GPUs in the China (Hangzhou) region for three months. Each GPU provides 4 vCPUs and 15 GB of memory. The unit price of the GPU is USD 570 per month.
Fee calculation
Bill amount = 2 × 570 × 3 = USD 3,420
Pay-as-you-go
Scenario
You purchased two pay-as-you-go ecs.g6.6xlarge instances in the China (Hangzhou) region and used the instances for 45 minutes. Each instance provides 24 vCPUs and 96 GB of memory. The unit price of the instance is USD 1.02 per hour.
Fee calculation
System disk
Subscription
Scenario
You purchased two subscription instances in the China (Hangzhou) region for a dedicated resource group. Each instance provides a system disk capacity of 300 GiB (free storage: 200 GiB). The subscription duration is three months.
Fee calculation
Bill amount = 2 × (300 - 200) × 0.153 × 3 = USD 91.8
Pay-as-you-go
Dedicated resource group
Scenario
You purchased two pay-as-you-go instances in the China (Hangzhou) region for a dedicated resource group and used them for 5 hours. Each instance provides a system disk capacity of 300 GiB (free storage: 200 GiB).
Fee calculation
Bill amount = 2 × (300 - 200) × 0.000319 × 5 = USD 0.319
Public resource group
Scenario
You purchased two pay-as-you-go instances in the public resource group and deployed them in the China (Hangzhou) region. You used the instances for 5 hours. Each instance provides a system disk capacity of 300 GiB (free storage: 30 GiB).
Fee calculation
Bill amount = 2 × (300 - 30) × 0.000319 × 5 = USD 0.8613