# Custom Translation Engine

### &#x20;Supported translation engines

* Google
* DeepL
* OpenAI（currently only supports sentence and full text translation)

### Add custom API

1\. Click "Translation Engine" -> "Custom API".&#x20;

2\. Select the desired engine category, enter the custom name and API KEY.&#x20;

3\. Click the "Add" button, verify and save successfully.&#x20;

4\. Return to the "Translation Engine" settings page and switch to the added custom engine.

### FAQ

<details>

<summary><mark style="color:red;">Why does OpenAI only support full-text and sentence translation, and not subtitle translation?</mark></summary>

Open AI has been spending a lot of time on subtitle translation with unsatisfying results, and we are still trying to find a better solution. The main reason for inaccurate subtitle translation is due to sentence breaking. If the sentence breaking is optimized, the effect of using a custom translation engine will be better. We are still in the process of optimization, and we appreciate your understanding and support.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.trancy.org/en/get-started/use-extension/custom-translation-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
