Here’s a step-by-step walkthrough on how to create a Google Cloud Vision AI service account on a Google account:
Prerequisites:
- You need a Google account to create a Google Cloud Vision AI service account.
- You need to have a basic understanding of Google Cloud Platform and its services.
Step 1: Create a Google Cloud Platform Project
- Go to the Google Cloud Console website (https://console.cloud.google.com/) and sign in with your Google account.
- Click on the “Select a project” dropdown menu and click on “New Project”.
- Enter a project name, select an organization (if you have one), and click on “Create”.
Step 2: Enable the Google Cloud Vision API
- In the sidebar, click on “APIs & Services” and then click on “Dashboard”.
- Click on the “Enable APIs and Services” button.
- Search for “Cloud Vision API” and click on the result.
- Click on the “Enable” button.
Step 3: Create a Service Account
- In the sidebar, click on “IAM & Admin” and then click on “Service accounts”.
- Click on the “Create Service Account” button.
- Enter a service account name, select a role (e.g. “Vision API Service Agent”), and click on “Create”.
- 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
- In the sidebar, click on “IAM & Admin” and then click on “Service accounts”.
- Click on the three vertical dots next to the service account you created and select “Create key”.
- Select “JSON” as the key type and click on “Create”.
- 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
- In the sidebar, click on “APIs & Services” and then click on “Dashboard”.
- Click on the “Enable APIs and Services” button.
- Search for “Cloud Vision API” and click on the result.
- Click on the “Navigation menu” (three horizontal lines) and select “APIs & Services” > “Cloud Vision API”.
- Click on the “Settings” icon (gear icon) and select “Service accounts”.
- Click on the “Add service account” button.
- Enter the email address of the service account you created and click on “Add”.
Step 6: Verify the Service Account
- Go back to the Google Cloud Console homepage.
- Click on the “Navigation menu” (three horizontal lines) and select “IAM & Admin” > “Service accounts”.
- Click on the three vertical dots next to the service account you created and select “Edit”.
- 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
- You can now use the service account to authenticate with the Google Cloud Vision API using the JSON key file.
- 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.