With AWS Lambda, you pay only for what you use. You are charged based on the number of requests for your functions and the time your code executes.

Requests

You are charged for the total number of requests across all your functions. Lambda counts a request each time it starts executing in response to an event notification or invoke call, including test invokes from the console.

¥ 1.36 per 1 million requests (¥ 0.00000136 per request)

Duration

Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You are charged ¥ 0.000113477 for every GB-second used.

The table below shows the approximate price per 100ms associated for different memory sizes.

Memory (MB) Price per 100ms (¥) (Beijing) Price per 100ms (¥) (Ningxia)
128 0.0000014185 0.0000014185
192 0.0000021277 0.0000021277
256 0.0000028369 0.0000028369
320 0.0000035462 0.0000035462
384 0.0000042554 0.0000042554
448 0.0000049646 0.0000049646
512 0.0000056739 0.0000056739
576 0.0000063831 0.0000063831
640 0.0000070923 0.0000070923
704 0.0000078015 0.0000078015
768 0.0000085108 0.0000085108
832 0.0000092200 0.0000092200
896 0.0000099292 0.0000099292
960 0.0000106385 0.0000106385
1024 0.0000113477 0.0000113477
1088 0.0000120569 0.0000120569
1152 0.0000127662 0.0000127662
1216 0.0000134754 0.0000134754
1280 0.0000141846 0.0000141846
1344 0.0000148939 0.0000148939
1408 0.0000156031 0.0000156031
1472 0.0000163123 0.0000163123
1536 0.0000170216 0.0000170216
1600 0.0000177308 0.0000177308
1664 0.0000184401 0.0000184401
1728 0.0000191493 0.0000191493
1792 0.0000198585 0.0000198585
1856 0.0000205678 0.0000205678
1920 0.0000212770 0.0000212770
1984 0.0000219862 0.0000219862
2048 0.0000226955 0.0000226955
2112 0.0000234047 0.0000234047
2176 0.0000241139 0.0000241139
2240 0.0000248232 0.0000248232
2304 0.0000255324 0.0000255324
2368 0.0000262416 0.0000262416
2432 0.0000269509 0.0000269509
2496 0.0000276601 0.0000276601
2560 0.0000283693 0.0000283693
2624 0.0000290786 0.0000290786
2688 0.0000297878 0.0000297878
2752 0.0000304970 0.0000304970
2816 0.0000312063 0.0000312063
2880 0.0000319155 0.0000319155
2944 0.0000326247 0.0000326247
3008 0.0000333340 0.0000333340
3072 0.0000340432 0.0000340432

Provisioned Concurrency Pricing

You can enable Provisioned Concurrency for your Lambda functions for greater control over the performance of your serverless applications. When enabled, Provisioned Concurrency is designed to keep functions initialized and hyper-ready to respond in double-digit milliseconds. You only pay for the amount of concurrency that you configure and for the period of time that you configure it. When Provisioned Concurrency is enabled for your function and you execute it, you pay for Requests and Duration based on the prices below. If the concurrency for your function exceeds the configured concurrency, you will be billed for executing the excess functions at the rate outlined in the AWS Lambda Pricing section above. To learn more about Provisioned Concurrency, visit the documentation.

Provisioned Concurrency is calculated from the time you enable it on your function until it is disabled, rounded up to the nearest 5 minutes. The price depends on the amount of memory you allocate to your function and the amount of concurrency that you configure on it.

Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function.

The Lambda free tier, if available, does not apply to functions that have Provisioned Concurrency enabled. If you enable Provisioned Concurrency for your function and execute it, you will be charged for Requests and Duration based on the price below.

  Price in AWS China (Beijing) region, operated by Sinnet Price in AWS China (Ningxia) region, operated by NWCD
Provisioned Concurrency ¥ 0.0000407741 for every GB-second ¥ 0.000030536 for every GB-second
Requests ¥ 1.36 per million requests ¥ 1.36 per million requests
Duration ¥ 0.0000951387 for every GB-second ¥ 0.0000712498 for every GB-second

The prices for Duration and Provisioned Concurrency depend on the amount of memory you allocate to your function. You can allocate any amount of memory to your function between 128MB and 3008MB, in 64MB increments. The table below contains a few examples of the price per 100ms associated with different memory sizes.

Provisioned Concurrency

Memory (MB) Price per 100ms (¥) AWS China (Beijing) region, operated by Sinnet Price per 100ms (¥) AWS China (Ningxia) region, operated by NWCD
128 0.000000509676250 0.00000038170
512 0.000002038705000 0.00000152680
1024 0.000004077410000 0.00000305360
3008 0.000011977391875 0.00000896995

Duration

Memory (MB) Price per 100ms (¥) AWS China (Beijing) region, operated by Sinnet Price per 100ms (¥) AWS China (Ningxia) region, operated by NWCD
128 0.000001189233750 0.00000089062250
512 0.000004756935000 0.00000356249000
1024 0.000009513870000 0.00000712498000 
3008 0.000027946993125 0.00002092962875

Additional Charges

You may incur additional charges if your Lambda function utilizes other AWS services or transfers data. For example, if your Lambda function reads and writes data to or from Amazon S3, you will be billed for the read/write requests and the data stored in Amazon S3.

For details on AWS service pricing, see the pricing section of the relevant AWS service. Links to pricing for some of the commonly used services are listed below.

Data transfer (If your Lambda function initiates external data transfers, they will be charged at the EC2 data transfer rate)

Amazon S3 pricing (includes pricing for storage, requests, and data transfer)

Amazon DynamoDB (includes pricing for data storage, throughput capacity, and data transfer)