How to get a Google Translate API key: step by step (2026)

🔒 Security-reviewed 🧾 GPL open source 📤 No lock-in — export anytime ⚡ 20× lighter engine

Home › API keys › Google Cloud Translation

✓ Checked against Google Cloud's official pages on 23 September 2026. Screens and prices change: if something looks different, trust what Google shows you.

⏱ Time
15 min
💳 Card needed?
Yes — billing must be on
🎁 Free allowance
500,000 characters every month
🧮 Our 20-page example, 1 language
$0 within the free allowance

A Google Cloud Translation API key is a secret code that lets TranslateRocket send your site’s text to Google Translate’s professional service and get the translation back; the first 500,000 characters each month are free, but Google asks for a card before you can start.

📖 Words you will meet

  • API key: a long secret code. Whoever has it can use the service at your expense, so treat it like a password.
  • Google Cloud console: Google’s website for its paid cloud services, at console.cloud.google.com. It is more technical than the other services in these guides; the steps below keep it simple.
  • Project: a container Google uses to group a service, its keys and its bill.
  • Billing account: where your card is registered. Google Cloud needs one even if you stay within the free allowance.
  • Characters: Google charges by the number of characters you send, spaces included.

What you need before you start

  • A Google account (a Gmail address works).
  • A payment card. Google says you must enable billing to use Cloud Translation. When you create a billing account, Google may place a small temporary hold on the card (between $0 and $1) to check it; it is not a charge. In some countries Google also asks to verify your bank account.
  • About 15 minutes.

Step by step

A. Create a project

1
Go to the project selector, https://console.cloud.google.com/projectselector2/home/dashboard, and sign in.
2
Create a new project. Give it a name you will recognise, for example TranslateRocket.

B. Turn on billing

3
Google will ask you to link a billing account to the project (or open Billing from the menu ☰). Follow the steps and add your card. – If you have never paid for Google Cloud before, you may be offered the Free Trial: $300 of credit to use within 90 days. It still requires a card.

C. Turn on the translation service

4
Open Google’s “enable the API” link, check that your project is selected, and confirm: https://console.cloud.google.com/apis/enableflow?apiid=translate.googleapis.com (the service is called Cloud Translation API).

D. Create the key

5
Go to the Credentials page: https://console.cloud.google.com/apis/credentials (TranslateRocket’s Get your Google Translate API key ↗ button opens this page too).
6
Click Create credentials, then choose API key from the menu.
7
Add a restriction so the key can only be used for translation: under API restrictions, choose Restrict key and select Cloud Translation API. (Google asks you to add at least one restriction.)
8
Leave the box Authenticate API calls through a service account unticked.
9
Click Create. A dialog called API key created shows your key. Copy it.

Keep the key somewhere safe until you paste it into WordPress (a password manager is ideal). Do not send it by email or chat.

How much it costs

Official price (Cloud Translation pricing page, “Basic” edition, which is the one TranslateRocket uses; checked 23 Sep 2026):

Monthly use Price
First 500,000 characters per month Free (Google applies it as a $10 credit every month; it does not roll over)
From 500,000 to 1 billion characters per month $20 per 1,000,000 characters

Google counts every character you send, including spaces and HTML tags.

What that means for a small site. Our example: a site of 20 pages with about 600 words each (12,000 words), which is about 75,000 characters. We round up to 100,000 characters for HTML tags and menus.

  • One language: about 100,000 characters. That fits in the free 500,000 per month, so it costs $0.
  • Five languages in the same month: about 500,000 characters, still around the free allowance.
  • Above the free allowance, each extra language would cost about 100,000 × $20 / 1,000,000 = $2.

Every language is counted separately. Text that TranslateRocket has already translated is reused and not sent again.

Safety (please read)

Google Cloud does not stop spending automatically unless you tell it to. Please do both of these.

1. Put a hard daily cap on characters (this is the one that actually stops spending). Google says the number of characters you can send per day is unlimited by default, and that you can lower this quota to control costs.

  1. Open the Quotas page of the Cloud console, already filtered on translation: https://console.cloud.google.com/iam-admin/quotas?service=translate.googleapis.com (make sure your project is selected).
  2. Find the Cloud Translation quota for characters sent to the general model per project per day (v2).
  3. Edit it and enter a number of characters per day.

How to pick the number: the cap is per day, so in a month you could reach about 30 times it. For example, 100000 per day lets you translate our example site in one language per day; in the worst case it allows about 3,000,000 characters a month, which is about $50 after the free 500,000. A cap of 15000 per day keeps even the worst month inside the free allowance, but translation will take several days. You can raise it while you translate and lower it afterwards.

When the cap is reached, Google answers with a “Daily Limit Exceeded” error until midnight Pacific time. New quota values can take up to 24 hours to apply.

2. Add a budget alert (this only sends emails).

  1. Open the menu ☰ → Billing → Budgets & alerts.
  2. Create a budget for your project, set an amount (for example $5) and the alert thresholds, then click Finish.

Google is clear: a budget of this type does not cap spending; it only emails you. That is why step 1 matters.

3. Set a limit inside TranslateRocket too. In TranslateRocket → AI Translation, section Usage & limits, fill in Daily character limit (for example 200000). When the limit is reached, automatic translation stops until the next day. 0 means no limit.

4. Never share the key. Do not put it in emails, chats, screenshots or support tickets.

5. If you think the key has leaked, replace it.

  1. Go to https://console.cloud.google.com/apis/credentials and click the key’s name.
  2. Click Rotate key, give the new key a name and click Create. Copy the new key and paste it into TranslateRocket.
  3. Back on the new key’s page, in the Previous key section, click Delete the previous key.

If you delete a key by mistake, Google lets you restore it within 30 days (Restore deleted credentials on the Credentials page).

Where to paste it in TranslateRocket

  1. In your WordPress dashboard, open TranslateRocket → AI Translation.
  2. In the Provider & keys box, find the card called Google Translate (this is Google Cloud Translation).
  3. Paste your key into the API key field.
  4. At the top of the box, set Active provider to Google Translate.
  5. Click Save AI settings at the bottom of the page.

Google Translate has no “model” to choose. The House style instructions on the same page only work with the AI models (OpenAI, Claude, Gemini); Google Translate ignores them.

If something does not work

What you see What it usually means What to do
An error saying the key is not valid (exact wording varies) The key was copied wrongly, or it was deleted. Paste it again carefully, or create a new key (section D).
An error saying the API is not enabled, or that billing is required (exact wording varies) Step B or C was skipped, or done on a different project. Check that the project selected at the top of the console is the one with the key, then enable billing and the Cloud Translation API for it.
“Daily Limit Exceeded” (403) Your own daily cap from the Safety section did its job. Wait until the next day (midnight Pacific time), or raise the quota.

Also check the key’s restriction: if under API restrictions you selected a different service, Cloud Translation will refuse the key.

Questions people ask

Is the Google Translate API free?

The first 500,000 characters every month are free, but Google asks you to turn on billing with a card even if you stay within the free allowance. Beyond it, the price is $20 per million characters.

How do I stop Google Cloud Translation from charging me?

Set a daily quota on characters in the Google Cloud console: that is the limit that actually stops spending. A budget only sends alert e-mails; it does not stop anything.

Is the Google Translate API the same as Gemini?

No. Google Cloud Translation is the professional version of Google Translate, with keys from the Google Cloud console. Gemini is Google's AI model, with keys from Google AI Studio.

Why does Google say my API key is not valid or needs billing?

Usually one of three things: the wrong project is selected, billing is not linked to the project, or the Cloud Translation API is not turned on for it.

Which one should I choose?

See our comparison page for a simple comparison of all five services, and for the free option that needs no key at all.

Other guides: OpenAI · Anthropic (Claude) · Google Gemini · DeepL · Which one should I choose?

💬 Need help?
Powered by TranslateRocket™