Here’s a step-by-step walkthrough on how to create a Google Cloud Vision AI service account on a Google account:

Prerequisites:

  1. You need a Google account to create a Google Cloud Vision AI service account.
  2. You need to have a basic understanding of Google Cloud Platform and its services.

Step 1: Create a Google Cloud Platform Project

  1. Go to the Google Cloud Console website (https://console.cloud.google.com/) and sign in with your Google account.
  2. Click on the “Select a project” dropdown menu and click on “New Project”.
  3. Enter a project name, select an organization (if you have one), and click on “Create”.

Step 2: Enable the Google Cloud Vision API

  1. In the sidebar, click on “APIs & Services” and then click on “Dashboard”.
  2. Click on the “Enable APIs and Services” button.
  3. Search for “Cloud Vision API” and click on the result.
  4. Click on the “Enable” button.

Step 3: Create a Service Account

  1. In the sidebar, click on “IAM & Admin” and then click on “Service accounts”.
  2. Click on the “Create Service Account” button.
  3. Enter a service account name, select a role (e.g. “Vision API Service Agent”), and click on “Create”.
  4. You will be prompted to create a key file. Click on “Create” to create a JSON key file.

Step 4: Create a Service Account Key

  1. In the sidebar, click on “IAM & Admin” and then click on “Service accounts”.
  2. Click on the three vertical dots next to the service account you created and select “Create key”.
  3. Select “JSON” as the key type and click on “Create”.
  4. You will be prompted to download the JSON key file. Save it to a secure location.

Step 5: Set Up the Service Account in the Google Cloud Vision API

  1. In the sidebar, click on “APIs & Services” and then click on “Dashboard”.
  2. Click on the “Enable APIs and Services” button.
  3. Search for “Cloud Vision API” and click on the result.
  4. Click on the “Navigation menu” (three horizontal lines) and select “APIs & Services” > “Cloud Vision API”.
  5. Click on the “Settings” icon (gear icon) and select “Service accounts”.
  6. Click on the “Add service account” button.
  7. Enter the email address of the service account you created and click on “Add”.

Step 6: Verify the Service Account

  1. Go back to the Google Cloud Console homepage.
  2. Click on the “Navigation menu” (three horizontal lines) and select “IAM & Admin” > “Service accounts”.
  3. Click on the three vertical dots next to the service account you created and select “Edit”.
  4. Verify that the service account is enabled and has the correct role.

Step 7: Use the Service Account to Authenticate with the Google Cloud Vision API

  1. You can now use the service account to authenticate with the Google Cloud Vision API using the JSON key file.
  2. You can use the gcloud command-line tool to authenticate with the service account and use the API. For example:
gcloud auth activate-service-account --key-file path/to/service_account_key.json
gcloud vision products list --project <PROJECT_ID>

That’s it! You have now created a Google Cloud Vision AI service account on a Google account. You can use this service account to authenticate with the Google Cloud Vision API and use its features to analyze images and detect objects, text, and more.

  • Please remember you need to setup billing on your google account if you have not done so before, otherwise the system will not function.