Pricing for Cloud Functions

Note

Currency of Service rates (prices) depends on the company you made a contract with:

  • prices in US dollars are applicable to customers of Yandex Services AG,
  • prices in Russian roubles are applicable to customers of Yandex.Cloud LLC.

What goes into the cost of using Cloud Functions

In Cloud Functions, you're billed for the number of function invokes, computing resources allocated for the function, 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 invoke in hours, rounded up to the nearest multiple of 100 ms.

Important

You're charged for all function invokes that were used to launch your code.

Example of cost calculation

Example of calculating the cost of a function:

  • Memory specified when creating the version: 512 MB.
  • Number of function invokes: 10 000 000.
  • Execution time on each invoke: 800 ms.

Function cost calculation:

3.42 × (512 / 1024) × (800 / 3 600 / 1 000) × 10 000 000 + 10 × (10 000 000 / 1 000 000)

Total: 3900 ₽

Where:

  • 3.42 is the GB×hour function execution cost.
  • 512 / 1024 converts MB to GB, since execution time is calculated in GB×hour.
  • 800 / 3600 / 1000 converts milliseconds to hours, since execution time is calculated in GB×hour.
  • 10 is the cost per 1 million function invokes.
  • 10 000 000 / 1 000 000 is the number of millions of invokes.

Using triggers

Triggers can be used free of charge. You can create and use triggers within the available quotas and limits.

Pricing

Invoking a function

Service Cost of 1 million invokes,
without VAT
Invoking a function $0.128205
Service Cost of 1 million invokes,
with VAT
Invoking a function ₽10

You are charged for an actual number of invokes. E.g., the cost of 1000 invokes will be $0.000128.

Function execution time

Service Price per 1 GB×hour,
without VAT
Function execution $0.043846
Service Price per 1 GB×hour,
with VAT
Function execution ₽3.42

Outgoing traffic

When using the service, you pay for the traffic from the Cloud to the internet. The traffic between Cloud services and the incoming traffic from the internet are free of charge.

The minimum charging unit is 1 MB.

Resource category Cost of 1 GB, without VAT
Outgoing traffic, <10 GB $0
Outgoing traffic, >10 GB $0.012307
Resource category Cost of 1 GB, with VAT
Outgoing traffic, <10 GB ₽0
Outgoing traffic, >10 GB ₽0.9600