Vertex AI in Google Distributed Cloud (GDC) air-gapped appliance requires computing and GPU
resources to run artificial intelligence (AI) and machine learning (ML)
workloads. Provision GPUs and enable the Vertex AI pre-trained
APIs to implement AI capabilities in your environment. For information about
resource requirements, see
[Capacity planning and computing requirements](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-overview#capacity).

In the GDC console, you can enable, deactivate, and view endpoints
for
[Optical Character Recognition (OCR)](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-ocr),
[Speech-to-Text](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-stt), and
[Vertex AI Translation](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-translation).
Configuring GPU resources and managing Vertex AI pre-trained
APIs require administrator access. If you lack the required permissions, ask
your administrator to enable GPUs and pre-trained APIs on your behalf.

## Before you begin

To get the permissions that you need to enable pre-trained APIs, ask your
Organization IAM Admin or Project IAM Admin to grant you the AI Platform Admin
(`ai-platform-admin`) role in the project namespace.

For information about this role, see [Prepare IAM permissions](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-ao-permissions).
To learn how to grant permissions to a subject, see [Grant and revoke access](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/iam/set-up-role-bindings).

Follow these steps to provision GPUs before enabling the pre-trained APIs:

1. [Set up a project to use Vertex AI](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-set-up-project).
2. Ensure that your project has the adequate ingress communication configured.
3. [Manage GPU workloads](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/containers/deploy-gpu-container-workloads).
4. [Sign in to the GDC console](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/iam/sign-in). If you can't sign in, see [Recover device if identity provider is unavailable](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/admin/recover-idp).

## Enable pre-trained APIs

You can enable the OCR, Speech-to-Text, and
Vertex AI Translation pre-trained APIs using the GDC console.

> [!CAUTION]
> **Caution:** GDC air-gapped appliance includes a single NVIDIA A100 80GB GPU. This limits the device to running only *one* GPU-dependent Vertex AI pre-trained API at a time. If you attempt to enable both Vertex AI Translation and OCR, the second API will fail to enable with an error message indicating insufficient GPU resources. You can, however, run Speech-to-Text alongside either Vertex AI Translation or OCR, as Speech-to-Text only requires CPU resources.

After [meeting the prerequisites](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-enable-pre-trained-apis#before-you-enable-apis), follow these steps
to enable the pre-trained APIs:

1. [Sign in to the GDC console](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/iam/sign-in).
2. In the navigation menu, click **Vertex AI** \> **Pre-trained APIs**.
3. On the **Pre-trained APIs** page, click **Enable** on a specific service to
   enable that API.

   > [!NOTE]
   > **Note:** The GDC console doesn't display the buttons to enable the pre-trained APIs if you don't have the correct permissions.

4. In the confirmation dialog, click **Enable**. A progress message displays.

The enablement duration varies. It might take between 15 and 45 minutes to
finish.

If you want to view the status of the pre-trained APIs,
[view the service status and endpoints](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-api-status).

> [!NOTE]
> **Note:** You can't enable an API while you wait for another API to finish deactivating.

## Deactivate pre-trained APIs

You can deactivate the OCR, Speech-to-Text, and
Vertex AI Translation pre-trained APIs using the GDC console.

After [meeting the prerequisites](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-enable-pre-trained-apis#before-you-enable-apis), follow these steps
to deactivate the pre-trained APIs:

1. [Sign in to the GDC console](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/platform/pa-user/iam/sign-in).
2. In the navigation menu, click **Vertex AI** \> **Pre-trained APIs**.
3. On the **Pre-trained APIs** page, click **Disable** on a specific service to
   deactivate that API.

   > [!NOTE]
   > **Note:** The GDC console doesn't display the buttons to deactivate the pre-trained APIs if you don't have the correct permissions.

4. In the confirmation dialog, enter `disable` in the text field to confirm
   that you want to take that action. Then, click **Disable**. A progress
   message displays.

If you want to view the status of the pre-trained APIs,
[view the service status and endpoints](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-api-status).

> [!NOTE]
> **Note:** You can't deactivate an API while you wait for another API to finish enabling.