Pricing

Charges for Cloud TPU usage are based on the pricing model below for preemptible and non-preemptible (on-demand) TPU use. A bill is sent out at the end of each billing cycle, listing usage and charges for that billing cycle.

Prices on this page are listed in US dollars (USD).

Single Cloud TPU v2 device pricing

The following table shows the pricing per region for using a single Cloud TPU v2 device.

US

Cloud TPU v2 $4.50 USD per TPU per hour.
Preemptible TPU v2 $1.35 USD per TPU per hour.

Europe

Cloud TPU v2 $4.95 USD per TPU per hour.
Preemptible TPU v2 $1.485 USD per TPU per hour.

Asia Pacific

Cloud TPU v2 $5.22 USD per TPU per hour.
Preemptible TPU v2 $1.566 USD per TPU per hour.

Single Cloud TPU v3 (beta) device pricing

The following table shows the pricing per region for using a single Cloud TPU v3 (beta) device.

US

Cloud TPU v3 (beta) $8.00 USD per TPU per hour.
Preemptible TPU v3 (beta) $2.40 USD per TPU per hour.

Europe

Cloud TPU v3 (beta) $8.80 USD per TPU per hour.
Preemptible TPU v3 (beta) $2.64 USD per TPU per hour.

Cloud TPU v2 Pod (alpha) pricing

The following table shows the non-preemptible (on-demand) pricing per region for Cloud TPU v2 Pod (alpha) usage. Pod pricing is based on the number of cores used in the Pod slice. For example, a v2-128 Pod is an 8x8 slice with 128 cores.

US

v2-32 Cloud TPU v2 Pod (alpha) $24.00 USD per Pod slice per hour.
v2-128 Cloud TPU v2 Pod (alpha) $96.00 USD per Pod slice per hour.
v2-256 Cloud TPU v2 Pod (alpha) $192.00 USD per Pod slice per hour.
v2-512 Cloud TPU v2 Pod (alpha) $384.00 USD per Pod slice per hour.

Europe

v2-32 Cloud TPU v2 Pod (alpha) $26.40 USD per Pod slice per hour.
v2-128 Cloud TPU v2 Pod (alpha) $105.60 USD per Pod slice per hour.
v2-256 Cloud TPU v2 Pod (alpha) $211.20 USD per Pod slice per hour.
v2-512 Cloud TPU v2 Pod (alpha) $422.40 USD per Pod slice per hour.

Notes:

  • A preemptible TPU is one that Cloud TPU may terminate (preempt) at any time if Cloud TPU requires access to the resources for another task. The charges for a preemptible TPU are much lower than those for a normal TPU.
  • TPUs are charged in one-second increments.
  • You are not charged for TPUs if they are preempted in the first minute after you create them.
  • If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
  • All use is subject to the Cloud TPU quota policy.

TensorFlow Research Cloud (TFRC) program

If you're enrolled in the TFRC program you are granted access to Cloud TPU v2 and v3 (beta) for a limited period of time free of charge. You are not charged for Cloud TPU as long as your TPUs are running in zone us-central1-f.

Virtual machine pricing

In order to connect to a TPU, you must provision a virtual machine (VM), which is billed separately. For details on pricing for VM instances, see Compute Engine pricing.

Pricing calculator

To estimate the cost of using Cloud TPU with Compute Engine VM instances, see the Compute Engine pricing calculator.

Pricing example

The following example explains how to calculate the total cost of a training job that uses TPU resources and Compute Engine instances in the US region.

A machine learning researcher provisions a virtual machine by creating a Compute Engine instance, and they select the n1-standard-2 machine type. They also create a TPU resource, and they accrue 10 hours of usage on both the Compute Engine instance and the TPU resource. In order to calculate the total cost of a training job, the machine learning researcher must add together:

  • the total cost of all Compute Engine instances
  • the total cost of all Cloud TPU resources
Resource Price per machine per hour in USD Number of machines Number of hours billed Total cost of each resource Total cost of training job
Compute Engine
n1-standard-2 instance
$0.095 1 10 $0.95
Cloud TPU resource $4.50 1 10 $45.00
$45.95

Pricing example using a preemptible TPU

The following example uses the same resources and time period as above, except that the researcher decides to use a preemptible TPU to save costs. The US charge for the preemptible TPU v2 is $1.35 USD per hour, as opposed to $4.50 for a normal TPU v2 .

Resource Price per machine per hour in USD Number of machines Number of hours billed Total cost of each resource Total cost of training job
Compute Engine
n1-standard-2 instance
$0.095 1 10 $0.95
Preemptible TPU $1.35 1 10 $13.50
$14.45

What's next

Was this page helpful? Let us know how we did:

Send feedback about...