Image AI 5

Enabling Google Cloud Vision

Image AI uses Google Cloud Vision to generate image variants. You need to provide a credentials JSON file to a service account for your Google Cloud Platform project. This guide shows how to create a service account and a key.

Requirements

You first need to create a project in Google Cloud Platform. Your administrator may have already created a project for your website.

Enabling Google Cloud Vision

In the Google Cloud Platform Console, navigate to your project. Search for Cloud Vision API, and select it from the results:

Searching for Cloud Vision API in Google Cloud Platform
Searching for Cloud Vision API in Google Cloud Platform (Image: subshell GmbH/CC BY)

If the Cloud Vision API is not activated for your project, click Enable to activate it.

Enabling the Cloud Vision API for a Google Cloud Platform project
Enabling the Cloud Vision API for a Google Cloud Platform project (Image: subshell GmbH/CC BY)

If the Cloud Vision API is activated for your project, it should look like this:

The Cloud Vision API is enabled for a Google Cloud Platform project
The Cloud Vision API is enabled for a Google Cloud Platform project (Image: subshell GmbH/CC BY)

Creating a Service Account and a JSON Key

From the main menu, select IAM & Admin, then Service Accounts:

Opening the Service Accounts page of a Google Cloud Platform project
Opening the Service Accounts page of a Google Cloud Platform project (Image: subshell GmbH/CC BY)

To create a new service account, click Create Service Account. Enter the required information.

Creating a service account for a Google Cloud Platform project
Creating a service account for a Google Cloud Platform project (Image: subshell GmbH/CC BY)

Open the newly-created service account, then select the Keys page:

Opening the keys page of a service account in Google Cloud Platform
Opening the keys page of a service account in Google Cloud Platform (Image: subshell GmbH/CC BY)

To create a new JSON key, click Add Key, then select Create new key:

Creating a new key for a service account in Google Cloud Platform
Creating a new key for a service account in Google Cloud Platform (Image: subshell GmbH/CC BY)

Select the JSON key type, then click Create to create the key:

Creating a new key for a service account in Google Cloud Platform
Creating a new key for a service account in Google Cloud Platform (Image: subshell GmbH/CC BY)

When you click Create, a JSON file containing the private key information will be downloaded to your device.

Last modified on 3/16/22

The content of this page is licensed under the CC BY 4.0 License. Code samples are licensed under the MIT License.

Icon