> [!WARNING]
> **Preview:** Online Prediction is a Preview feature that is available as-is and is not recommended for production environments. Google provides no service-level agreements (SLA) or technical support commitments for Preview features. For more information, see GDC's [feature stages](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/resources/feature-stages).

Vertex AI offers online predictions on
Google Distributed Cloud (GDC) air-gapped through the Online Prediction API. A
prediction is the output of a trained machine-learning model. Specifically,
online predictions are synchronous requests made to your model endpoint.

Online Prediction lets you upload, deploy, serve, and make requests
using your own prediction models on
[a set of supported containers](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/vertex-ai-online-predictions#available-container-images).
Use Online Prediction when making requests in response to application
input or in situations requiring timely inference.

You can use the Online Prediction API by applying Kubernetes custom
resources to the dedicated [prediction cluster](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/prediction-user-cluster)
that your Infrastructure Operator (IO) creates for you.

Before getting online predictions, you must
[export model artifacts](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/vertex-ai-export-model-artifacts)
and [deploy the model to an endpoint](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/vertex-ai-deploy-model).
This action associates compute resources with the model to serve online
predictions with low latency.

Then, you can get online predictions from a custom-trained model by
[formatting](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/vertex-ai-format-online-prediction)
and [sending](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/quickstart-op)
a request.

## Available container images

The following table contains the list of supported containers for
Online Prediction in Distributed Cloud:

| ML framework | Version | Supported accelerators | Supported images |
|---|---|---|---|
| TensorFlow | 2.18 | CPU | tf2-cpu.2-18 |
| TensorFlow | 2.18 | GPU | tf2-gpu.2-18 |
| PyTorch | 2.4 | CPU | pytorch-cpu.2-4 |
| PyTorch | 2.4 | GPU | pytorch-gpu.2-4 |
| PyTorch | 2.1 (DEPRECATED) | CPU | pytorch-cpu.2-1 |
| PyTorch | 2.1 (DEPRECATED) | GPU | pytorch-gpu.2-1 |