Tools日本語で読む

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
  1. What is an API key?
  2. Which provider should I choose?
  3. Create a DeepL key
  4. Create a Microsoft Translator (Azure) key
  5. For AI explanations: Groq or Gemini
  6. If a translation does not appear
  7. In short

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.

Treat a key like a password. Do not post it in public notes, screenshots, social media, or chat. If someone else sees it, revoke it in the provider's account and create a replacement.

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.

ProviderUseFree usage noteSafe placeholder
DeepLTranslation for words and sentencesUp to 500,000 characters per month on the Free plan (source estimate, Nov 2026)YOUR_API_KEY_HERE
Microsoft Translator (Azure)Translation for heavier useUp to 2 million characters per month on the F0 tier (source estimate, Nov 2026)YOUR_API_KEY_HERE
GroqAI explanations and example sentencesA free tier is available, with usage limitsYOUR_API_KEY_HERE
Google GeminiAI explanations and example sentencesA free tier is available, with usage limitsYOUR_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

  1. Open DeepL's official API page and choose the free API plan.
  2. Complete the account setup. Identity verification may ask for a credit card; staying on the free plan should not incur a charge.
  3. Open the API key section in your account and copy the key. Do not paste the real value into notes or a public page.
  4. 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.

  1. Create or sign in to an Azure account. Identity verification may ask for a credit card.
  2. Create a Translator resource and select the F0 free tier. A paid tier can create charges.
  3. In the resource's keys and endpoint section, copy a key and note the region assigned to that resource.
  4. 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.

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

🛠 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)

HTML
<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)

CSS
.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)

TypeScript
// 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.

XLINE

← Back to home