# The usage problem after using AI translation

**URL:** https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274
**Category:** Support
**Tags:** ai, dynaloc
**Created:** [July 15, 2025, 10:22am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274 "2025-07-15T10:22:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![co\_choa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/co_choa/32/456777_2.png) [@co\_choa](https://meta.discourse.org/u/co_choa)
#### Post date: [July 15, 2025, 10:22am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/1 "2025-07-15T10:22:14Z")

</div>

I followed the official tutorial to configure Discourse AI for translation and set it to translate all past posts over a span of days. Indeed, this resulted in a substantial amount of input and output tokens. However, after two days, I encountered a situation where only input tokens were being processed without any output. I am unsure of the cause—could it be that all the previous posts have already been translated? If so, what measures can I take to reduce token input and thereby conserve costs?

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/e/c/ceceb1bbf1eab66bd391bdefc6513f5fa322f799.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/2/b/12b8636c69a0131402bb23e311e8ee58c083404e.png)

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 15, 2025, 10:33am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/2 "2025-07-15T10:33:11Z")

</div>

Hey there, have you followed these recommendations?

> [@Content Localization - Manual and Automatic with Discourse AI](https://meta.discourse.org/t/content-localization-manual-and-automatic-with-discourse-ai/370969/1):
>
> To cover some important settings and recommendations:
> 
> - `AI translation model` - ⚠ **We highly recommend [setting a quota](https://meta.discourse.org/t/configuring-llm-usage-quotas-in-discourse-ai/348125) to the LLM you choose for the translation model.**
> - `AI translation backfill hourly rate` - this setting is hidden in the UI and defaults to 0. **⚠ Automatic translation will not begin if this value is 0.** Assuming the rate is 50, your site will translate 50 posts, 50 topics, and 50 categories per hour, to the locales you have set in `Content localization supported locales`. Keep this to a low number when starting out.
> - `AI translation backfill max age days` - defaults to 5. This means topics and posts older than 5 days will not be translated. You may increase this to a large number to translate all topics and posts.

The usage graph definitely looks concerning. Can you try out this [data explorer](https://meta.discourse.org/t/32566?silent=true) query:

```plaintext
SELECT 
  a.id,
  a.language_model,
  LENGTH(p.raw) as raw_length,
  a.response_tokens,
  a.raw_request_payload,
  a.raw_response_payload,
  a.topic_id,
  a.post_id
FROM ai_api_audit_logs a
LEFT JOIN posts p ON p.id = a.post_id AND p.deleted_at IS NULL
LEFT JOIN topics t ON t.id = a.topic_id AND t.deleted_at IS NULL
WHERE a.created_at > CURRENT_DATE - INTERVAL '1 days'
AND p.deleted_at IS NULL
AND t.deleted_at IS NULL
AND p.user_deleted = false
AND a.feature_name = 'translation'
AND LENGTH(p.raw) < 1000
AND a.response_tokens > 10000
ORDER BY a.created_at DESC
LIMIT 100

```

The query should show you the number of response tokens used based on the post’s raw length. Ideally you should see a similar number, not more than 1.5x tokens. The AiApiAuditLog will help with determining what is going on.

Additionally please share,

- What model are you using?
- What’s your backfill hourly rate? I suggest to keep it to a low value, like 50 for starters.
- How many languages are you supporting? Does your selected model support them?

---

<div class="post-metadata">

### Author: ![co\_choa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/co_choa/32/456777_2.png) [@co\_choa](https://meta.discourse.org/u/co_choa)
#### Post date: [July 15, 2025, 10:51am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/4 "2025-07-15T10:51:35Z")

</div>

I have configured GPT-4.1 Nano as the translation model. The hourly backfill rate was previously set at 1,000, but today I adjusted it to 100. I have enabled support for both Japanese and English, and this model indeed supports these languages.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 15, 2025, 10:54am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/5 "2025-07-15T10:54:38Z")

</div>

Yeah, 1000 is probably not a good idea and I should add a site setting limit here.

I am not sure how the OpenAI API deals with getting hit about 3000x per hour. Basically for your setup, per post we are doing 1️⃣ locale detection, 2️⃣ translate to Japanese, 3️⃣ translate to English. If you check /logs I suspect you’ll see your site hitting rate limits.

I suggest lowering it still to 50 and see how it goes.

We’ll be implementing a way to view translation progress of the entire site as well in the near future.

---

<div class="post-metadata">

### Author: ![co\_choa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/co_choa/32/456777_2.png) [@co\_choa](https://meta.discourse.org/u/co_choa)
#### Post date: [July 15, 2025, 10:55am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/6 "2025-07-15T10:55:13Z")

</div>

Furthermore, when I execute the query command you provided, the database returns no results. Is there perhaps a need for some customization or modification?

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/5/f/b5f07530b5c4b997be1d75ed43da6beee1dc22ba.png)

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 15, 2025, 10:56am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/7 "2025-07-15T10:56:34Z")

</div>

Hmm this query should work. Do you have the discourse-data-explorer plugin?

---

<div class="post-metadata">

### Author: ![co\_choa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/co_choa/32/456777_2.png) [@co\_choa](https://meta.discourse.org/u/co_choa)
#### Post date: [July 15, 2025, 10:56am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/8 "2025-07-15T10:56:41Z")

</div>

Very well, I shall give it a try first. Thank you.

---

<div class="post-metadata">

### Author: ![co\_choa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/co_choa/32/456777_2.png) [@co\_choa](https://meta.discourse.org/u/co_choa)
#### Post date: [July 15, 2025, 10:57am UTC](https://meta.discourse.org/t/the-usage-problem-after-using-ai-translation/374274/9 "2025-07-15T10:57:23Z")

</div>

I will install it afterward and then give it another try. Currently, rebuilding the forum is not feasible because the users are still actively using it.
