dqxclarity

Google Translate API Setup

Set up Google Cloud Translation API to use with dqxclarity. Takes about 10 minutes.

⚠ Note

Google has revamped their sign-up process - these instructions may vary slightly. Google is now requiring some users to pre-pay anywhere between $10–$50 USD before their billing account is considered registered.

Requirements

  • A valid credit card
ℹ Pricing

This service is free for the first 500,000 characters per month. Going over that limit will incur charges. 500,000 characters is a lot - unless you’re doing 10+ hours of story content per day, you’re more than fine. See Cloud Translation pricing for details. dqxclarity uses the “Cloud Translation - Basic” tier.

Create Your Google Project

  1. Navigate to the Google Cloud Console. Log in if prompted.
  2. In the top menu, click Select a project.
Select a project in Google Cloud Console
  1. Click NEW PROJECT.
New Project button
  1. Give the project a recognizable name - something like “DQX Translation” - then click Create. You’ll be taken back to the main dashboard.
Name your project

Set Up Your Billing Account

  1. Type translate in the search bar at the top and select Cloud Translation API.
Search for Cloud Translation API
  1. Click Enable to enable the Cloud Translation API for your project.
Enable Cloud Translation API
  1. You’ll be prompted to link a billing account. Click ENABLE BILLING.
Billing required prompt
  1. Click MANAGE BILLING ACCOUNTS.
Manage billing accounts
  1. Click CREATE ACCOUNT.
Create billing account button
  1. Name your billing account something meaningful (like “my credit card”), select your country, then click CONTINUE.
Create new billing account form
  1. Add or select a payment method, then click SUBMIT AND ENABLE BILLING.
Payment methods

Set Up Billing Alerts

This ensures you get notified before you’re actually charged anything.

  1. From the billing screen, click Budgets & alerts.
Budgets and alerts menu
  1. Click CREATE BUDGET.
Create budget button
  1. Give it a name like “DQX Translation Costs”.
  2. Leave all services selected and discounts/promotions checked, then click NEXT.
Alert scope settings
  1. Set the budget amount to $10.00 USD (or local equivalent).
ℹ Why $10?

Google provides a $10 monthly credit against the Translation API, applied at the end of the billing cycle. You’ll see a bill for usage, then the credit offsets it - up to $10. Set your alert at $10 so you know when you’re about to exceed the free tier.

Alert amount - $10
  1. Set your thresholds (e.g. 50%, 90%, 100%) so you get warned before you’re charged.
Alert threshold actions
  1. Keep Email alerts to billing admins and users checked, then click FINISH.
Alert notifications

Enable the Translation API

  1. Type translate in the search bar again and click Cloud Translation API.
Search for Cloud Translation API
  1. Click ENABLE.
Enable Cloud Translation API
  1. Click ENABLE BILLING and select the billing account you just created.
Enable billing Select your billing account
  1. Click SET ACCOUNT.

Create Your API Credential

  1. Click the hamburger menu (top left) → APIs and ServicesCredentials.
Navigate to Credentials
  1. Click CREATE CREDENTIALS at the top, then click API Key.
Create API Key
  1. Copy this API key and save it somewhere safe. It’s essentially your password. Then click Restrict Key in the bottom right.
API key created dialog
  1. Give the key a meaningful name. Under API restrictions, click Restrict key, type translation in the filter, and select Cloud Translation API. Click SAVE.
API key restrictions
✓ You’re all set

Enter the API key you copied into dqxclarity under the Google API section and you’re good to go.