Compute flexible committed use discounts (flexible CUDs) provide discounted
rates in exchange for a commitment to continuous spend on Cloud Run,
Google Kubernetes Engine, or Compute Engine. These discounts apply across any region and
project in a Cloud Billing account. To view Cloud Run rates,
see [Pricing](https://docs.cloud.google.com/run/cud.md.txt#flexible-cuds), or explore [Compute flexible CUD
discounts](https://docs.cloud.google.com/compute/docs/instances/committed-use-discounts-overview#applicable_discounts)
for other products.

## Purchase commitments

You can purchase flexible commitments only at a Cloud Billing-account level.
For more information about how to purchase a commitment, see [Purchasing spend-based commitments](https://docs.cloud.google.com/docs/cuds-spend-based.md.txt#purchasing).

<br />

Before you purchase a commitment, read the [Service Specific Terms](https://cloud.google.com/terms/service-terms).


You can purchase flexible commitments from any Cloud Billing
account and the discount applies to any of the eligible usage in projects paid
for by that Cloud Billing account as follows:

- Any usage overage after you exhaust all your commitments is charged at the on-demand rate.
- When you purchase flexible CUDs, you pay the same commitment fee for the entirety of the commitment term, even if the price of applicable usage changes.
- You still receive the same discount percentage on applicable usage in the event of a price change.
- The commitment fee is billed monthly.

For more information about your bill, see [Analyze the effectiveness of your spend-based committed use discounts](https://docs.cloud.google.com/billing/docs/how-to/cud-analysis-spend-based).

<br />

After you purchase a commitment, you can't cancel it. For more
information, see [Cancelling commitments](https://docs.cloud.google.com/docs/cuds-spend-based.md.txt#canceling_commitments).


## Pricing

Flexible CUDs add flexibility to your spending capabilities by eliminating the
need to restrict your commitments to a single project or region. Flexible CUDs
are applicable to all Cloud Run resources.

### Discount details

When you purchase a flexible commitment for your Cloud Billing account, you
commit to a minimum amount of hourly spend for a one-year or three-year term in
return for a discount. You do this by committing to spend on resources that are
worth a specified minimum amount of the discount price, every hour, throughout
the commitment term.
For all of the flexible CUD discounts, the following [consumption models](https://docs.cloud.google.com/docs/cuds-multiprice.md.txt#consumption-model-intro) apply:

<br />

- For a one-year commitment, the consumption model ID is `D97B-0795-975B`.
- For a three-year commitment, the consumption model ID is `70D7-D1AB-12A4`.

The following discounts apply for Cloud Run services with
instance-based billing, jobs, worker pools, and instances:

- **28% discount**: one-year term. For the duration of the
  term, you get eligible resources at their flexible CUD one-year prices,
  determined by your consumption model at your committed hourly spend.

- **46% discount**: three-year term. For the duration of
  the term, you get eligible resources at their flexible CUD three-year
  prices, determined by your consumption model at your committed hourly spend.

The following discounts apply for Cloud Run services with
request-based billing. This includes CPU and memory during active time, idle time
for [minimum instances](https://docs.cloud.google.com/run/docs/configuring/min-instances.md.txt), and requests:

- **17% discount**: one-year term.
  For the duration of the term, you get eligible resources at their flexible
  CUD one-year prices, determined by your consumption model at your committed
  hourly spend. Choose this option to ensure that your discount remains for
  one year.

- **17% discount**: three-year term. For the duration of
  the term, you get eligible resources at their flexible CUD three-year
  prices, determined by your consumption model at your committed hourly spend.
  Choose this option to ensure that your discount remains for three years.

The following discounts apply for Cloud Run functions:

- **17% discount**: one-year term. For the duration of the term, you get eligible resources at their flexible CUD one-year prices, determined by your consumption model at your committed hourly spend. Choose this option to ensure that your discount remains for one year.
- **17% discount**: three-year term. For the duration of the term, you get eligible resources at their flexible CUD three-year prices, determined by your consumption model at your committed hourly spend. Choose this option to ensure that your discount remains for three years.

For more information, see [Compute flexible CUD discounts](https://docs.cloud.google.com/compute/docs/instances/committed-use-discounts-overview.md.txt#applicable_discounts).

The commitment that you purchase becomes active within the first hour of its
purchase. The discounted hourly spend amount becomes your commitment fee and
you are billed this fee monthly. Your commitment fee remains your minimum
hourly expenditure throughout the commitment term and you must pay it even if
you don't use resources whose discount prices total up to your committed
hourly spend.

If you use any additional resources that take your hourly spend amount beyond
your committed hourly spend amount, then the overage usage is not covered by
flexible CUDs.

Your commitment fee remains the same even if the on-demand prices for your
resources change during your commitment term. You can purchase Cloud Run
flexible commitments only at a Cloud Billing-account level.
**Important:** A single compute flexible commitment can cover your eligible spend across Compute Engine, GKE, and Cloud Run. For any given Cloud Billing account, Google Cloud uses a set of criteria to determine how your compute flexible commitments cover your eligible hourly usage. If you have multiple commitments and multiple types of usage, then these rules determine which commitment Google Cloud utilizes first and which usage it covers first. To learn more about these criteria, see [Commitment utilization criteria](https://docs.cloud.google.com/compute/docs/instances/committed-use-discounts-overview.md.txt#commitment-utilization-criteria). Depending on whether your Google Cloud usage is limited to Cloud Run or also spans across these other services, you might see differences in the flexible CUDs that you receive for your commitment.

### Calculate hourly commitment

Calculate the baseline per hour cost in the region you
want to benefit from a flexible committed use discount. Any usage beyond that
limit will be charged at the regular on-demand price.

Once you make the commitment, you're charged that amount even if you decide to
stop or scale down your Cloud Run usage during the rest of the
commitment period.
**Example**

<br />

Use the [pricing page](https://cloud.google.com/run/pricing) to determine the discounted rate for
Cloud Run services with instance-based billing, using one vCPU and
one GiB in `us-central1` (Tier 1 region) on a three-year commitment, for
example:

- $0.00000972 per vCPU-second ($0.035 per hour)
- $0.00000108 per GiB-second for memory ($0.0039 per hour)

While the on-demand (non-commitment) rate for the same is higher:

- $0.000018 per vCPU-second ($0.0648 per hour)
- $0.000002 per GiB-second for memory ($0.0072 per hour)

In this example, you buy the three-year flexible CUD and the following terms apply:

- You are charged a minimum of $0.0389 per hour for three years (46% discount from the on-demand rate), independently from actual usage.
- Any amount you use over that commitment rate is charged at the on-demand (non-discounted) rate.

### Limitation

The following limitation applies to flexible CUDs:

- Flexible CUDs don't apply to networking charges.
- Flexible CUDs don't apply to GPUs.