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).

Note: Cloud TPU is currently offering promotional pricing to all
customers using a single Cloud TPU v2 device, resulting in significant
price reductions. The single Cloud TPU v2 device information on this page
shows the reduced pricing.

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 device pricing

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

US

Cloud TPU v3

$8.00 USD per TPU per hour.

Preemptible TPU v3

$2.40 USD per TPU per hour.

Europe

Cloud TPU v3

$8.80 USD per TPU per hour.

Preemptible TPU v3

$2.64 USD per TPU per hour.

Cloud TPU v2 Pod (alpha) pricing

Alpha

This is
an alpha
release of Cloud TPU v2 Pod.
This feature
might be changed in backward-incompatible ways
and is
not recommended for production use.
It
is not
subject to any SLA or deprecation policy.

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.

TensorFlow Research Cloud (TFRC) program

If you're enrolled in the
TFRC program
you are granted access to Cloud TPU v2 and v3 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.

Note: Charges for VM and Cloud TPU usage are separate.
Charges start for Cloud TPU only when the TPU is started
and charges stop when the TPU is stopped or deleted. Stop the TPU by
running ctpu pause or gcloud compute tpus stop.
Similarly, you are only charged for the VM when the VM is active.
If the VM is stopped and the Cloud TPU is not, you continue to be
charged for the Cloud TPU. If the Cloud TPU is stopped
or deleted and the VM is not, then you continue to be charged for the VM.

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-2machine 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 Enginen1-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 .