--- title: FaaS Billing --- ## Billing Document for FAAS Function Usage ### 1. Billing of Functions runs on CPU Hardware: We do billing of functions runs on CPU hardware in the basis of slabs. ### - Slab 0 - Minimum Billing for CPU functions In slab 0, A activation charge of ₹405 (exclusive of GST) per calendar month will be applied when the function is activated or initiated. This activation fee is a fixed cost, irrespective of usage, and is billed upfront.The first 4,50,000 GB-seconds of usage are included at no additional cost. This means that the function can run for up to 4,50,000 GB-seconds on the CPU hardware without incurring any extra charges. ### - Slab 1 - Usage-Based Billing In Slab 1, additional usage beyond the 4,50,000 GB-seconds will be billed based on the actual usage. Charges will be calculated accordingly. If the function exceeds 4,50,000 GB-seconds, the next billing tier (Slab 1) will apply, where usage beyond the included amount will be billed according to the actual usage. ### Pricing Overview for CPU Functions For each 1 GB-second of memory consumed by your CPU functions, a charge of ₹0.0009 will apply. ### 2. Billing of functions runs on GPU Hardware: Usage-Based Billing: Charges for functions running on GPU hardware are based exclusively on the total number of GB-seconds consumed. ### Pricing Overview for GPU Functions For each 1 GB-second of memory consumed by your GPU functions, a charge of ₹0.009 will apply. ### Example- The customer has created two functions: one for CPU compute and another for GPU compute, both running from January 1st to January 20th, 2024. Each function is allocated 1024 MB of memory and receives approximately 46,000 invocations, with each invocation taking about 10 seconds to execute. The billing for these functions will be based on these parameters. ### - CPU Function Usage: ```python Invocation Usage = Number of Invocation * Memory (mb) * Invocation time (seconds) / 1024 = 460000 * 1024 * 10 /1024 = 4600000 GB-second usage As 460000 GB-second is in Slab 1 which consist of fixed charge that is ₹405. Remaining Usage = 460000 - 450000 = 10000 GB-second After that per GB-second on CPU compute uses 0.0009 / GB-second. Remaining Charges = Remaining Usage * Unit price = 10000 * 0.0009 = ₹9 Final cost for CPU compute = ₹414 ``` ### 2. GPU function Usage ```python Invocation Usage = Number of Invocation * memory * time / 1024 = 460000 * 1024 * 10 / 1024 = 460000 GB-second GPU function cost = 460000 * 0.009 = ₹4140 Now final price will be = CPU compute + GPU Compute = ₹414 + ₹4140 = ₹4554 ``` ---