Cloud Functions pricing policy
To calculate the cost of using the service, see the prices in this section.
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.
When billing computing resources (GB × hour), the memory allocated for the function and function execution time are taken into account:
- The amount of memory 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.
Pricing formula
Monthly cost = ₽5.47 × Memory (GB) × Call processing time (Hours) + ₽16.00 × Millions of calls
The following initial amounts are offered free of charge each month:
- 1000000 function invocations.
- 10 GB×hour of function execution.
After you've used up your free service amounts, you will be charged at the applicable rate. The unused balance of free services is reset at the end of the month.
Monthly cost = ₸27.35 × Memory (GB) × Call processing time (Hours) + ₸80.00 × Millions of calls
The following initial amounts are offered free of charge each month:
- 1000000 function invocations.
- 10 GB×hour of function execution.
After you've used up your free service amounts, 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
₽5.47 × ((512 / 1,024) × (800 / 3,600,000) × 10,000,000 – 10) + ₽16.00 × ((10,000,000 – 1,000,000) / 1,000,000)
Total: ₽6,167.08
Where:
- ₽5.47: Price per 1 GB×hour.
- 512 / 1,024 converts MB to GB, as execution time is calculated in GB×hour.
- 800 / 3,600,000 converts milliseconds to hours, as execution time is calculated in GB×hour.
- 10,000,000: Number of function calls.
- 10: Subtracted because the first 10 GB×hour are free of charge.
- ₽16.00: Price per 1 million function calls.
- 10,000,000: Number of function calls.
- 1,000,000: Subtracted because the first million calls are free of charge.
- 1,000,000: Divisor to calculate the number of millions of function calls.
₸27.35 × ((512 / 1,024) × (800 / 3,600 / 1,000) × 10,000,000 – 10) + ₸80.00 × ((10,000,000 – 1,000,000) / 1,000,000)
Total: ₸30,835.39
Where:
- ₸27.35: Price per 1 GB×hour.
- 512 / 1,024 converts MB to GB, as execution time is calculated in GB×hour.
- 800 / 3,600 / 1,000 converts milliseconds to hours, as execution time is calculated in GB×hour.
- 10,000,000: Number of function calls.
- 10: Subtracted because the first 10 GB×hour are free of charge.
- ₸80.00: Price per 1 million function calls.
- 10,000,000: Number of function calls.
- 1,000,000: Subtracted because the first million 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, if:
- The function is invoked by the Yandex Dialogs platform
. - The Alice's skill was created by the instructions
.
However, if the function uses other Yandex Cloud resources, they are billed. For example, if the function makes requests to the Message Queue queue, the requests are billed according to the pricing.
Prices for the Russia region
Warning
Prices for Yandex Cloud resources vary from region to region. For more information about the available regions, see Regions.
The currency that can be used to pay for resources depends on which legal entity the user has entered into agreement with. For more information about account registration, see Registering an account in Yandex Cloud.
Invoking a function
Service | Cost of 1 million calls, including VAT |
---|---|
Function calls, 1 million or less per month | Free |
Function calls, over 1 million per month | ₽16.00 |
You pay for the actual number of calls. For example, given that 1,000,000 calls cost ₽16.00, 1,000 calls in excess of the free amount will cost ₽0.016.
Service | Cost of 1 million calls, including VAT |
---|---|
Function calls, 1 million or less per month | Free |
Function calls, over 1 million per month | ₸80.00 |
You pay for the actual number of calls. For example, given that 1,000,000 calls cost ₸80.00, 1,000 calls in excess of the free amount will cost ₸0.08.
Function execution time
Service | Price per 1 GB×hour, including VAT |
---|---|
Function execution, 10 GB×hour or less per month | Free |
Function execution, over 10 GB×hour per month | ₽5.47 |
Service | Price per GB×hour, including VAT |
---|---|
Function execution, 10 GB×hour or less per month | Free |
Function execution, over 10 GB×hour per month | ₸27.35 |
Provisioned instances
Service | Price per 1 GB×hour, including VAT |
---|---|
Downtime of a provisioned instance | ₽1.20 |
Execution time of a function in a provisioned instance | ₽2.30 |
Service | Price per GB×hour, including VAT |
---|---|
Downtime of a provisioned instance | ₸6.00 |
Execution time of a function in a provisioned instance | ₸11.50 |
Outgoing 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 are provided free of charge every month.
The minimum billing unit is 1 MB.
Resource category | Cost of 1 GB |
---|---|
Outgoing traffic, 100 GB or less per month | Free |
Outgoing traffic, over 100 GB per month | ₽1.53 |
Resource category | Cost of 1 GB |
---|---|
Outgoing traffic, 100 GB or less per month | Free |
Outgoing traffic, over 100 GB per month | ₸7.65 |