Understand App Hosting costs

App Hosting requires a project with the Firebase Blaze pricing plan enabled. This plan has the following no-cost limits for Google Cloud products invoked by App Hosting:

 

Cloud Run CPU 180k vCPU-seconds
Memory 360k GiB-seconds
Requests 2M requests
Cloud Build Build-minutes 2500 build-minutes
Artifact Registry Storage 0.5 GB / month
Egress No Cost
Cloud Logging Logging Storage 50 GiB / project / month
Logging Retention No cost for 30 days
Cloud Secret Manager Active Secret Versions 6 versions / month
Access Operations 10,000 operations / month
Rotation Notifications 3 rotations / month

No-cost usage is aggregated across projects by billing account and resets every month; you are billed only for usage past the limits.

Calculate costs

You can use the Blaze plan pricing calculator to get an approximate idea of your costs. If you exceed the no-cost Blaze plan allowances, you will be billed for usage of the following Google Cloud services:

  • Cloud Run
  • Cloud Build
  • Artifact Registry
  • Cloud Secret Manager
  • Cloud Logging

View more details about pricing for Cloud Run, Cloud Build, Artifact Registry, Cloud Secret Manager, and Cloud Logging.

App Hosting won't bill for CDN usage during preview. When the preview is completed and App Hosting is generally available, the following CDN usage will be billed:

  • Uncached Outgoing Bandwidth
  • Cached Outgoing Bandwidth
  • Storage

The exact price points for these line items can be viewed on our pricing page. Note that these price points will be in flux up until App Hosting becomes generally available.

Billing examples

The cost of running a dynamic Web app on App Hosting can vary widely depending on factors like traffic, storage, and specific services used. The examples in this section are provided as a general guide, but your actual costs may differ.

Costs in our example are based on these assumptions about the configuration and usage of the Web app:

Assumptions
Effective Concurrency

10

Builds per month

10

Minutes per build

5

Traffic

80% NorthAm

Log Retention

< 30 days

Example cost calculations assume that each visit to the Web app has these characteristics:

Single Visit
~Billed Requests

109

~Billed Transfer (MiB)

1.792467117

~CPU/mem time (s)

7.367

With these assumptions, we can extrapolate the following costs for this example scenario. At a level of 10k visits there are virtually no costs, with costs of any significance beginning to accrue at the 1M visit level.

SKU Price Unit No-cost Tier 10K usage 10K visits 1M Usage 1M visits
Cloud Run - CPU

$0.00

vCPU second

180,000.00

7,367.69

$0.00

736,769.00

$13.36

Cloud Run - memory

$0.00

GiB second

360,000.00

3,683.84

$0.00

368,384.00

$0.02

Cloud Run - requests

$0.40

M SSR requests

2.00

0.17

$0.00

17.00

$6.00

Cloud Build - build minutes

$0.01

build-minute

2,500.00

40.00

$0.00

250.00

$0.00

Artifact Registry - storage

$0.10

GiB (stored)

0.50

2.00

$0.15

0.50

$0.15

Secrets Manager - Active Secret Versions

$0.06

versions

6.00

3.00

$0.00

6.00

$0.00

Secrets Manager - Access Operations

$0.03

10K operations

10,000.00

0.10

$0.00

5.00

$0.00

Secrets Manager - Rotation Notifications

$0.05

rotations

3.00

0.00

$0.00

0.00

$0.00

Cloud Logging - Logging Storage

$0.50

GiB

50.00

0.50

$0.00

50.00

$0.00

Cloud Logging - Logging Retention

$0.01

GiB / month 30 days

$0.00

$0.00

Total

$0.15

$19.53