Cloud Functions pricing policy
To estimate your service costs, see the pricing in this section.
The prices for service products are also available in the price list.
Note
Currency of Service rates (prices) depends on the company you made a contract with:
- Prices in US dollars are applicable to customers of Iron Hive doo Beograd (Serbia) or Direct Cursus Technology L.L.C. (Dubai).
- Prices in Russian roubles are applicable to customers of Yandex.Cloud LLC.
All prices below do not include VAT.
What goes into the cost of using Cloud Functions
In Cloud Functions, you pay for the number of function calls, computing resources allocated for the function, downtime of provisioned instances, and outgoing traffic.
Billing computing resources (GB/hr) occurs based on the memory allocated for the function and function execution time:
- The amount of RAM specified when creating a version, in GB.
- The execution time for each function call in hours, rounded up to the nearest multiple of 100 ms.
Warning
You are only charged for the function calls that triggered your code to run.
Cost calculation formula
Cost per month = $0.049230 × Memory (GB) × Call processing time (hours) + $0.144000 × Call count (in millions)
The following initial amounts are offered free of charge each month:
- 1000000 function invocations.
- 10 GB×hour of function execution.
After you spend the free amount of services, you will be charged at the applicable rate. The unused balance of free services is reset at the end of the month.
Cost calculation example
Example of calculating the cost of a function that has:
- Memory specified when creating the version: 512 MB
- Number of function calls: 10,000,000
- Execution time of each call: 800 ms
$0.049230 × ((512 / 1,024) × (800 / 3,600 / 1,000) × 10,000,000 – 10) + $0.144000 × ((10,000,000 – 1,000,000) / 1,000,000)
Total: $55.503700
Where:
- $0.049230: Price per GB/hr.
- 512 / 1,024: Converting MB to GB, since the execution time is calculated in GB/hr.
- 800 / 3,600 / 1,000: Converting milliseconds to hours, since the execution time is calculated in GB/hr.
- 10,000,000: Number of function calls.
- 10: Subtracted since the first 10 GB/hr are free of charge.
- $0.144000: Price per 1,000,000 function calls.
- 10,000,000: Number of function calls.
- 1,000,000: Subtracted since the first 1,000,000 calls are free of charge.
- 1,000,000: Divisor to calculate the number of millions of function calls.
Using triggers
Triggers can be used free of charge. You can create and use triggers within the available quotas and limits.
Alice skills
Cloud Functions functions used for Alice skills are not billable and do not consume your free amount of services, in case:
- The function is invoked by Yandex Dialogs
. - The skill was created as per this guide
.
However, if the function uses other Yandex Cloud resources, those are billed. For example, if the function makes requests to Message Queue, the requests are billed according to the relevant pricing.
Prices for the Russia region
Note
Yandex Cloud resources are priced differently in different regions. For more information about the available regions, see Regions.
Your payment currency is determined by your contracting legal entity. For more information on creating an account, see Registering an account in Yandex Cloud.
Invoking a function
| Service | Price of 1,000,000 invocations, without VAT |
|---|---|
| Invoking a function, less than 1,000,000 invocations per month | Free |
| Invoking a function, over 1,000,000 invocations per month | $0.144000 |
You pay for the actual number of invocations. For instance, 1,000 calls over the included number cost $0.000144 if 1,000,000 calls are $0.144000.
Function execution time
| Service | Price per GB/hr, without VAT |
|---|---|
| Functions execution, less than 10 GB/hr per month | Free |
| Functions execution, over 10 GB/hr per month | $0.049230 |
Provisioned instances
| Service | Price per GB/hr, without VAT |
|---|---|
| Downtime of a provisioned instance | $0.010800 |
| Execution time of a function in a provisioned instance | $0.020700 |
Outbound traffic
When using the service, you pay for traffic from Yandex Cloud to the internet. Traffic between internal IP addresses of Yandex Cloud services and incoming internet traffic is free.
The first 100 GB of outgoing traffic per month are free of charge.
The minimum billing unit is 1 MB.
| Resource category | Price of 1 GB, without VAT |
|---|---|
| Outgoing traffic, 100 GB or less per month | Free |
| Outgoing traffic, over 100 GB per month | $0.013770 |