# The translate API isn't free

**URL:** https://meta.discourse.org/t/the-translate-api-isnt-free/121490
**Category:** Feature
**Tags:** pr-welcome, translator
**Created:** [June 27, 2019, 12:46pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490 "2019-06-27T12:46:33Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![adrianpunkt](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adrianpunkt](https://meta.discourse.org/u/adrianpunkt)
#### Post date: [June 27, 2019, 12:46pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/1 "2019-06-27T12:46:33Z")

</div>

WARNING! This plugin can generate huge unexpected charges. In seems to check every post to detect its language and that can add up to $$$. We were surprised by a $1000 charge by Google, maybe something the developers might want to keep in mind.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 27, 2019, 12:55pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/2 "2019-06-27T12:55:33Z")

</div>

That’s a huge surprise! How many posts do you have?

> **[Pricing  |  Cloud Translation  |  Google Cloud](https://cloud.google.com/translate/pricing)**
>
> Review pricing for Cloud Translation

---

<div class="post-metadata">

### Author: ![adrianpunkt](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adrianpunkt](https://meta.discourse.org/u/adrianpunkt)
#### Post date: [June 27, 2019, 1:06pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/3 "2019-06-27T13:06:59Z")

</div>

We have a rather big community, however the charges were not for actual translations, but for checking the language of each post. It seems the plugin will automatically check every post when a user views it. It sent about 50k such requests in less than a month ☹

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [June 27, 2019, 1:36pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/4 "2019-06-27T13:36:19Z")

</div>

They charge $20 per million characters, which suggests you sent 50 million characters across the API, does that sound about right?

Whoever set this up would have been notified about charges and AFAIK translate is included in the services which qualify for $300 in free usage? Did they just “set it and forget it”?

---

<div class="post-metadata">

### Author: ![adrianpunkt](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adrianpunkt](https://meta.discourse.org/u/adrianpunkt)
#### Post date: [June 27, 2019, 1:52pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/5 "2019-06-27T13:52:24Z")

</div>

I haven’t looked into the character counts, sounds quite a lot. We do have topics with thousands of fairly long posts, so that might be accurate.

We haven’t received any notifications until the charge actually occurred and we’re over the free trial usage, we already have other services from Google Cloud.

Hopefully we’ll get a refund, just a caution notice for anyone using cloud services for this and in general, it feels a bit like the kid calling porn numbers 🙃

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [June 27, 2019, 2:06pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/6 "2019-06-27T14:06:27Z")

</div>

> [@adrianpunkt](#):
>
> Hopefully we’ll get a refund

Fingers crossed, but they do make their API rates clear at the point of activation, so from their perspective they would have no reason to do this. The costs are right below the Enable button.

I would review who has access to the console and /admin if you have people turning on chargeable features without first estimating costs and seeking approval.

---

<div class="post-metadata">

### Author: ![adrianpunkt](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adrianpunkt](https://meta.discourse.org/u/adrianpunkt)
#### Post date: [June 27, 2019, 2:41pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/7 "2019-06-27T14:41:52Z")

</div>

Apparently they do one off refunds, subject to investigation and bla bla bla…

The problem is just the plugin will run these language detections and it actually sends the whole content to check the language and see if a translation is actually needed. Most of our users are English speakers so very few (if any) actually translated the posts.

I think this language detection should be disabled (or disableable) or at least it should only send a small chunk of data.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 27, 2019, 3:28pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/8 "2019-06-27T15:28:21Z")

</div>

I think if this was a built in problem resulting in huge charges on every post load we would have others reporting it?

---

<div class="post-metadata">

### Author: ![dschaper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dschaper/32/209535_2.png) [@dschaper](https://meta.discourse.org/u/dschaper)
#### Post date: [July 14, 2019, 6:25pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/9 "2019-07-14T18:25:49Z")

</div>

API v2 from Google is a paid tier, but they have API v3 that is free. Can the plug-in be migrated to v3 for Google as it was migrated to v3 from Azure?

> **[Pricing  |  Cloud Translation  |  Google Cloud](https://cloud.google.com/translate/pricing#prices_per_month)**
>
> Review pricing for Cloud Translation

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [July 15, 2019, 12:26am UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/10 "2019-07-15T00:26:36Z")

</div>

The pricing page states that language detection in v3 uses the same prices as v2. However,

> Google does not charge extra for language detection when you do not specify the source language for the [`translate` method](https://cloud.google.com/translate/docs/reference/translate); the Language Detection price applies to [`detect` method](https://cloud.google.com/translate/docs/reference/detect) calls.

Migrating the plugin to have category- or forum-level expectations of language and leaning on this might be better?

---

<div class="post-metadata">

### Author: ![dschaper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dschaper/32/209535_2.png) [@dschaper](https://meta.discourse.org/u/dschaper)
#### Post date: [July 15, 2019, 10:08am UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/11 "2019-07-15T10:08:00Z")

</div>

Thanks for the clarification. It does seem that v2 has two charges, language detection and then text translation. v3 is charged for language detection, but text translation is free. So all things being equal, v3 is, at most, half the cost of v2. For that alone I think v3 would be the better choice.

As for going completely free, I do agree that having the ability to set a category-level language would be a great feature.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 15, 2019, 2:52pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/12 "2019-07-15T14:52:36Z")

</div>

We can accept a PR with support for API v3. #pr-welcome

---

<div class="post-metadata">

### Author: ![dschaper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dschaper/32/209535_2.png) [@dschaper](https://meta.discourse.org/u/dschaper)
#### Post date: [November 4, 2019, 4:35pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/13 "2019-11-04T16:35:23Z")

</div>

Update from Google on the tier pricing.

> Hello Google Translation API customer,
> 
> We’re writing to let you know that to simplify pricing and allow more customers to benefit from free usage, we’re updating the [pricing structure](https://www.google.com/appserve/mkt/p/AFnwnKUaNhzC-HbhJlVGbzk-7o93pmqy6S__uNr8fx0iRL7uRKDQRb7BxJq2wM7QDjZXHk4_S0Uf6E2R9Y9Kfc4oSV7Fsk1dztS-oa4G-YXRHTo) for the Cloud Translation API v2 and Cloud Translation API v3 effective November 1, 2019.
> 
> ### What do I need to know?
> 
> Current pricing for the Translation API v3 includes a free tier (no charges) for the first 500k characters of Text Translations (SKU E205-31DB-F1F4) each month. **Effective November 1, 2019, we’re replacing the free tier with a $10 usage credit** (equivalent to 500k characters of Text Translations), which will be applied to your billing account each month.
> 
> The usage credit:
> 
> - Will be applied once per billing account per month.
> - Will be applied to both existing and new customers of the Translation API v2 and Translation API v3.
> - Can be used across both the Translation API v2 and Translation API v3.
> - Applies to the covered SKUs listed below, so any combination of usage will be charged against this credit up to a maximum of $10, after which any usage above this limit will be charged per normal pricing.
> - Will not roll over if unused, but will be reset each month.
> - Will not appear in the SKU description for Translate.

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [December 20, 2019, 4:55pm UTC](https://meta.discourse.org/t/the-translate-api-isnt-free/121490/14 "2019-12-20T16:55:06Z")

</div>

Wait, I’m already lost.

Reausing the discourse now this:

- no crowding ability with the usual **free google.translate**..
- only the possibility to be translated via a paid API ? So if I have some kind of attack on the side of e.g. the competition, what then?
- **Is it possible to use AWS translation services ?**
