All Categories Features & Settings How to Create a Google Cloud Translate API Key

How to Create a Google Cloud Translate API Key

Section 1: Must-Do Steps

Step 1: Set Up a Google Cloud Account

  1. Go to the Google Cloud Console (https://console.cloud.google.com/)

  2. Sign in with your Google account (or create one if needed)

  3. If you're new to Google Cloud, you'll need to set up a billing account and provide payment information (Google offers a free trial with $300 in credits for 90 days)

CleanShot-2025-04-09-at-10.04.38@2x.png

Step 2: Create a New Project

  1. In the Google Cloud Console, click on the project dropdown at the top of the page

  2. Click "New Project"

  3. Enter a name for your project (e.g., "Translation Project")

  4. Click "Create"

  5. Wait for the project to be created, then select it from the dropdown

CleanShot-2025-04-09-at-10.06.32@2x.png

Step 3: Enable the Cloud Translation API

  1. From the navigation menu (hamburger icon ☰), select "APIs & Services" > "Library"

  2. In the search bar, type "Cloud Translation API"

  3. Click on "Cloud Translation API" in the results

  4. Click "Enable" and wait for the API to be enabled

CleanShot-2025-04-09-at-10.08.17@2x.png

Step 4: Create API Credentials

  1. From the navigation menu, select "APIs & Services" > "Credentials"

  2. Click the "Create Credentials" button at the top of the page

  3. Select "API key" from the dropdown menu

  4. Your new API key will be created and displayed. Copy this key and save it securely

  5. When prompted for "What data will you be accessing?", select "Public data"

CleanShot-2025-04-09-at-10.10.00@2x.png

image.png

Step 5: Use Your API Key

  1. Copy your API key

  2. Visit this link chrome-extension://dilfjmllhdefpbpaelgmafcdamingldi/views/settings.html

    and paste your API key in the designated field and click save.

  3. Test the translation feature with a sample product

CleanShot-2025-04-09-at-10.13.22@2x.png

CleanShot-2025-04-09-at-10.15.50@2x.png

Section 2: Optional (But Recommended) Steps

Step 1: Restrict Your API Key

  1. In the credentials page, find your newly created API key

  2. Click the edit (pencil) icon next to the key

  3. Give your key a descriptive name (e.g., "Translation API Key")

  4. Under "API restrictions", select "Restrict key"

  5. From the dropdown, select "Cloud Translation API"

  6. Click "Save"

Step 2: Set Up Billing Alert

  1. From the navigation menu, go to "Billing"

  2. Select your billing account

  3. Click on "Budgets & alerts"

  4. Click "Create Budget"

  5. Set up a budget amount and alert thresholds to avoid unexpected charges

Step 3: Configure Website Restrictions

  1. Go back to the credentials page

  2. Edit your API key again

  3. Under "Application restrictions", select "HTTP referrers (websites)"

  4. Add the domains where the API key will be used (e.g., your Shopify store domain)

  5. Click "Save"

Step 4: Monitor Usage

  1. Regularly check your Google Cloud Console dashboard

  2. Review billing information to track translation costs

  3. The Cloud Translation API typically costs:

    • Basic tier: $20 per million characters of text

    • Advanced tier: $80 per million characters of text

  4. Google offers a free tier with a limited number of characters per month

Was this article helpful?

Thanks for your feedback!