Overview:

MaxCompute is billed according to the projects you create and the items you use within each project.

Billable items include the storage, computing resources and data downloads of a project.

MaxCompute fees are calculated daily.
Storage pricing
The data that is stored in MaxCompute, including tables and resources, is billed according to the storage used. The billing cycle is one day.
MaxCompute records the storage used for each project on an hourly basis. The average storage over the day is then calculated for each project space at the end of each day.
The daily MaxCompute fee is calculated by applying the tiered unit prices in the table below to the average storage used. Up to 1 GB of storage is free each day, while storage used between 1 GB and 100 GB costs 0.0028 USD for each gigabyte and so on. If you require more than 1 PB of storage per day, you can contact us through a job order to get a quote for the price..
Less than 1 GB USD/GB/Day  1 GB to 100 GB USD/GB/Day  100 GB to 1 TB USD/GB/Day  1 TB to 10 TB USD/GB/Day  10 TB to 100 TB USD/GB/Day  100 TB to 1 PB USD/GB/Day  More than 1 PB USD/GB/Day 

Free  0.0028  0.0014  0.0013  0.0011  0.0009  Please contact us 
For example, if you store 50 TB data in MaxCompute, the bill is calculated as follows.
(100GB1) x 0.0028 USD/GB/day
+(1024100)GB x 0.0014 USD/GB/day
+(102401024)GB x 0.0013 USD/GB/day
+(50 x102410240)GB x 0.0011 USD/GB/day
=58.61 USD/day
Note  

Computation pricing
MaxCompute supports two kinds of billing methods.

PayAsYouGo: Each task is measured according to the input size by job cost.

Subscription (CU cost): Users can subscribe the usage of a part of the resource in advance. This method is only supported on Alibaba Cloud DTPlus Platform.
Currently, MaxCompute supports the following computing task types: SQL, UDF, MapReduce, Graph, and machine learning. Charges apply for SQL (excluding UDF) computing tasks and for MapReduce tasks (charges introduced 20171219). There are no plans to charge for other types in future.
PayAsYouGo
PayAsYouGo is for SQL tasks and MapReduce tasks.
SQL tasks are paid after volume, that is,SQL is charged after I/O:
Every SQL task is billed according to Data Input size and SQL Complexity. Once the SQL task is completed, MaxCompute sends its metering information to the billing system, which calculates the fee and adds it to the next payment.
The MaxCompute SQL task is charged according to I/O for each job. All daily measurement information is paid next day.
The bill for SQL tasks is calculated as follows.
Computing Cost of One SQL Task = DataInputSize x SQLComplexity x SQL Price
The price is as follows.
Item  Price 

SQL task  0.0438 USD/GB. 

Data Input Size: The actual size of the data that an SQL statement scans. Most SQL statements have partition filtering and column pruning, so this value is generally less than the source table data size.

Column pruning: For example, the submitted SQL is
select f1,f2,f3 from t1;
. Only the data size of three columns (f1, f2, and f3) in t1 are charged. 
Partition filtering: For example, a SQL statement includes ds>”20130101”. The “ds” is a partition column. The data size is calculated only according to the read partition, rather than the data of other partitions, and then billed.


SQL Complexity: First, MaxCompute counts keywords in SQL statements, and then converts to SQL complexity.

SQL keyword number = join Number + group by number + order by number + distinct number + window function number + max (insert into Number 1, 1)

SQL complexity calculation:

If SQL keyword number is less than or equal to 3, the complexity is 1.

If SQL keyword number is less than or equal to 6, the complexity is 1.5.

If SQL keyword number is less than or equal to 19, the complexity is 2.

If SQL keyword number is greater than or equal to 20, the complexity is 4.


The input SQL statement for calculating SQL Complexity is as follows.
cost sql <SQL Sentence>;
An example of a SQL statement is as follows.
odps@ $odps_project >cost sql SELECT DISTINCT total1 FROM
(SELECT id1, COUNT(f1) AS total1 FROM in1 GROUP BY id1) tmp1
ORDER BY total1 DESC LIMIT 100;
Complexity:1.5
The preceding SQL includes 4 keywords (one DISTINCT, one COUNT, one GROUP BY, and one ORDER), so the SQL complexity is 1.5. If the data volume of table “in1” is 1.7 GB, then the actual consumption is as follows.
1.7 x 1.5 x 0.0438 = 0.11 USD
Note  

PayAsYouGo for MapReduce
In December 19, 2017, MaxCompute began charging for MapReduce (MR) tasks. The billing of a MR task is calculated as follows.
Computing Cost of One MR task = TotalTime x MR Price(USD)
The price is as follows:
Item  Price 

MR task  0.0690 USD/Hour/Task. 
The calculating time for each successful MR task is: Execution time (hours) × Number of cores that task calls.
If one MR task calls 100 cores, and the task takes 30 minutes to complete, the calculating time for the MR task is: 0.5 hours × 100 cores = 50 hours.
After the MR task is finished, MaxCompute sends its metering information to the billing system, which calculates the fee and adds it to the next payment.
Note  

Subscription (CU cost)
Payment by subscription is only available on the Alibaba Cloud DTPlus Platform. Subscription allows you to pay an initial fee (monthly or annually) for your entire reserved resources. The basic unit of such resources is defined as CU (Compute Unit). One CU includes 1 core CPU and 4 GB of memory.
Resource definitions  Memory  CPU  Price 

1 CU  4GB  1 CPU  22.0 USD/month 
We recommend that new users use the PayAsYouGo billing method, since this allows you to gauge your resource usage without unnecessary costs. Payment by subscription is only available on the Alibaba Cloud DTPlus platform.
Download pricing
You can download data from the extranet through the MaxCompute Tunnel. The billing method for data downloads is PayAsYouGo. The calculation is as follows.
Download Cost from Extranet/time = Downloaded Data Volume x Download Price
The price is as follows:
Item  Price 

Data download  0.1166 USD/GB. 
Note  
