Set Up HoverTranslator API Keys: DeepL, Microsoft Translator, Groq, and Gemini
Choose a translation or AI provider, create a key, and add it to HoverTranslator. Includes setup steps, free-tier notes, safe placeholders, and troubleshooting.
Contents
The first time I set up HoverTranslator, “API key” sounded much more complicated than the task really was. In practice, you create a key with a provider, copy it once, and paste it into the matching field in the extension.
This guide explains which provider to choose and where its key goes. The example below is deliberately a placeholder, not a usable credential: YOUR_API_KEY_HERE.
What is an API key?
An API key is a private credential that lets an app request a service on your behalf. HoverTranslator uses the key you entered to ask that provider for a translation or an AI explanation. The key is stored in your browser; the text you choose is sent to the provider you selected.
Which provider should I choose?
If you are unsure, start with DeepL for translation. Add an AI provider only if you want explanations or example sentences. You do not need to set up every service.
| Provider | Use | Free usage note | Safe placeholder |
|---|---|---|---|
| DeepL | Translation for words and sentences | Up to 500,000 characters per month on the Free plan (source estimate, Nov 2026) | YOUR_API_KEY_HERE |
| Microsoft Translator (Azure) | Translation for heavier use | Up to 2 million characters per month on the F0 tier (source estimate, Nov 2026) | YOUR_API_KEY_HERE |
| Groq | AI explanations and example sentences | A free tier is available, with usage limits | YOUR_API_KEY_HERE |
| Google Gemini | AI explanations and example sentences | A free tier is available, with usage limits | YOUR_API_KEY_HERE |
The quota notes above are estimates from November 2026. Providers can change their plans and limits; check the provider's current terms before signing up.
Create a DeepL key
- Open DeepL's official API page and choose the free API plan.
- Complete the account setup. Identity verification may ask for a credit card; staying on the free plan should not incur a charge.
- Open the API key section in your account and copy the key. Do not paste the real value into notes or a public page.
- Open HoverTranslator's settings and paste the key into the DeepL API key field, then save.
Create a Microsoft Translator (Azure) key
Azure can suit people who translate a larger amount of text. Setup has a few more steps, so check the pricing tier carefully.
- Create or sign in to an Azure account. Identity verification may ask for a credit card.
- Create a Translator resource and select the F0 free tier. A paid tier can create charges.
- In the resource's keys and endpoint section, copy a key and note the region assigned to that resource.
- In HoverTranslator settings, enter the key in the Microsoft Translator field and the matching region in the region field. Save the settings.
If both DeepL and Azure are configured, the extension lets you choose which one to try first. Pick based on your own needs and the providers' current terms.
For AI explanations: Groq or Gemini
These providers are for asking for a word's nuance or an example sentence, rather than basic translation. Either one is enough to get started.
- Groq: Sign in to its console, open API Keys, and create a key. In HoverTranslator, paste it into the Groq API key field.
- Gemini: Open Google AI Studio and create an API key. Paste it into the Gemini API key field in the extension.
The visible value in any tutorial should be a dummy such as YOUR_API_KEY_HERE. Never reuse a real credential as an example.
If a translation does not appear
- Nothing appears: Check for spaces before or after the key, then paste it again.
- DeepL stopped working: You may have reached the provider's monthly allowance. Check the account usage or choose another configured provider.
- Azure does not respond: Confirm that the region in the extension matches the Translator resource.
- Only AI explanations fail: You may have reached a usage limit. Wait and try later, or configure the other AI provider.
🛠 How this works (HTML / CSS / JavaScript)
The “Which provider should I choose?” table is not four hand-written rows. Each row is built from a list (an array) of providers.
① HTML (building rows from the list)
<tbody>
{services.map(s => (
<tr>
<td><strong>{s.name}</strong></td><td>{s.use}</td><td>{s.free}</td>
<td><code>YOUR_API_KEY_HERE</code></td>
</tr>
))}
</tbody>② CSS (the table and the note)
.article .table-wrap { overflow-x: auto; } /* scroll sideways when 4 columns do not fit on a phone */
.note { font-size: .8rem; color: var(--muted); } /* the “as of Nov 2026” note is smaller */③ JavaScript (the data)
// One object per provider. To add a row, add one object here
const services = [
{ name: 'DeepL', use: 'Translation for words and sentences', free: 'Up to 500,000 characters per month …' },
{ name: 'Groq', use: 'AI explanations and example sentences', free: 'A free tier is available …' },
// …
];Key point: services.map turns each item (s) into one table row. When a free tier changes, you fix one place in the data and the table follows. The key column only shows a placeholder, never a real key.
📘 The basics:HTML basics · CSS basics · JavaScript basics
In short
One translation provider is enough to begin. Add another only when you need it, keep each key private, and revoke and replace a key if it is exposed.
For the full extension walkthrough, see How to use HoverTranslator.
Add HoverTranslator to Chrome →If you have a question or a feature idea, send it through the contact form.
⚠️ These notes were written for my own study. They do not guarantee accuracy or that you will pass an exam. Please don’t rely on them alone — check official sources and other materials yourself.