Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Cloud Functions
  • Getting started
    • Overview
    • Creating and executing functions
    • Creating a timer
    • Creating a trigger for Message Queue
    • Creating a trigger for Object Storage
    • Creating a trigger for Container Registry
    • Creating a trigger for Cloud Logs
    • Creating a trigger for IoT Core
  • Step-by-step instructions
    • All instructions
    • Using functions to get an IAM token for a service account
    • Managing rights to access functions
    • Managing functions
      • Creating a function
      • Managing function versions
      • Working in the code editor
      • Invoking a function
      • Updating a function
      • Viewing monitoring charts
      • Viewing the execution log
      • Deleting a function
    • Managing triggers
      • Getting information about a trigger
      • Creating a timer
      • Creating a trigger for Message Queue
      • Creating a trigger for Object Storage
      • Creating a trigger for Container Registry
      • Creating a trigger for Cloud Logs
      • Creating a trigger for Yandex IoT Core
      • Updating a trigger
      • Deleting a trigger
  • Concepts
    • Overview
    • Function
    • Invoking a function
    • Runtime
      • Overview
      • Environment
      • Execution context
    • Builder
    • Trigger
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Cloud Logs
      • Trigger for Yandex IoT Core
    • Dead Letter Queue
    • Log groups
    • Monitoring
    • Backups
    • Quotas and limits
  • Developing in Node.js
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Python
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Go
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in PHP
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Developing in Bash
    • Overview
    • Request handler
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Java
    • Overview
    • Programming model
      • Overview
      • Function interface
      • YcFunction interface
      • HttpServlet class
      • Spring Boot
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in R
    • Overview
    • Programming model
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Developing in C#
    • Overview
    • Programming model
      • Overview
      • Function interface
      • YcFunction interface
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Use cases
    • Creating skills for Alice
  • Pricing policy
  • Access management
  • API Functions reference
    • Authentication in the API
    • gRPC
      • Overview
      • FunctionService
      • OperationService
    • REST
      • Overview
      • Function
        • Overview
        • create
        • createVersion
        • delete
        • get
        • getVersion
        • getVersionByTag
        • list
        • listAccessBindings
        • listOperations
        • listRuntimes
        • listTagHistory
        • listVersions
        • removeTag
        • setAccessBindings
        • setTag
        • update
        • updateAccessBindings
  • API Triggers reference
    • Authentication in the API
    • gRPC
      • Overview
      • TriggerService
      • OperationService
    • REST
      • Overview
      • Trigger
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • pause
        • resume
        • update
  • Questions and answers
  1. Pricing policy

Pricing for Cloud Functions

  • What goes into the cost of using Cloud Functions
    • Example of cost calculation
  • Using triggers
  • Pricing
    • Invoking a function
    • Function execution time
    • Outgoing traffic

What goes into the cost of using Cloud Functions

In Cloud Functions, you're billed for the number of functions invoked, 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 invocation in hours, rounded up to the nearest multiple of 100 ms.

Warning

You're charged for all the functions invoked that trigger your code to run.

Example of cost calculation

Example of calculating the cost of a function:

  • Memory specified when creating the version: 512 MB.
  • Number of functions invoked: 10,000,000.
  • Execution time of each call: 800 ms.

Function cost calculation:

0.043846 × (512 / 1024) × (800 / 3600 / 1000) × 10,000,000 + 0.128205 × (10,000,000 / 1,000,000)

Total: $49.99982

Where:

  • 0.043846 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.
  • 0.128205 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

Prices in USD
Prices in roubles
Service Cost of 1 million invokes,
without VAT
Invoking a function, <1 000 000 invocations per month Not charged
Invoking a function, >1 000 000 invocations per month $0.128205
Service Cost of 1 million invocations,
with VAT
Invoking a function, <1 000 000 invocations per month Not charged
Invoking a function, >1 000 000 invocations per month ₽10

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

Function execution time

Prices in USD
Prices in roubles
Service Price per 1 GB×hour,
without VAT
Functions execution, <1 GB×hour per month Not charged
Functions execution, >1 GB×hour per month $0.043846
Service Price per 1 GB×hour,
with VAT
Functions execution, <1 GB×hour per month Not charged
Functions execution, >1 GB×hour per month ₽3.42

Outgoing traffic

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

The minimum charging unit is 1 MB.

Prices in USD
Prices in roubles
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
In this article:
  • What goes into the cost of using Cloud Functions
  • Example of cost calculation
  • Using triggers
  • Pricing
  • Invoking a function
  • Function execution time
  • Outgoing traffic
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC