# 沉浸式翻译

本节将介绍如何使用热门翻译工具——沉浸式翻译，配合使用OpenKey的接口进行翻译。

## 沉浸式翻译介绍

沉浸式翻译：最受欢迎的双语对照网页翻译插件

你可以完全免费地使用它来实时翻译外语网页，[PDF文档](https://immersivetranslate.com/docs/usage/#pdf-%E6%96%87%E4%BB%B6%E7%BF%BB%E8%AF%91)，[ePub 电子书](https://immersivetranslate.com/docs/usage/#epub-%E7%94%B5%E5%AD%90%E4%B9%A6%E9%98%85%E8%AF%BB%E5%92%8C%E5%8F%8C%E8%AF%AD%E5%AF%BC%E5%87%BA)，字幕文件等。

网站：<https://immersivetranslate.com/>

## 如何接入OK

OpenKey是一个无限调用 ChatGPT API 的账号池，提供企业级专业稳定的 ChatGPT 接口集成分发服务。完全兼容OpenAI接口协议，支持无缝对接多种支持自定义OpenAI接口的应用。

网站：<https://openkey.cloud/>

本节中的沉浸式翻译工具是支持自定义接口的，所以下面将介绍如何接入OK的接口。

### 第一步：下载Chrome插件

沉浸式翻译应用支持多种平台，这里以Chrome浏览器插件为例，其他的操作方法类比即可。

<figure><img src="/files/VH9asjr4NQzytiychhn5" alt=""><figcaption><p>沉浸式翻译支持的平台</p></figcaption></figure>

### 第二步：创建OpenKey令牌

参考教程：

{% content-ref url="/pages/ppdmDVQZYBCoqmYx1WJX" %}
[如何创建令牌](/help/how-create-token.md)
{% endcontent-ref %}

这里我们获取到的OK接口信息如下：

> 接口地址：[https://openkey.cloud](https://openkey.cloud/chat)
>
> APIKEY/令牌：sk-iuzuDxad94QAQzm5D42280EdE45947858a0dA1355c11Fed

### 第三步：配置选项

<figure><img src="/files/02svfbjGVrEcfDcoKpiF" alt=""><figcaption><p>打开设置</p></figcaption></figure>

<figure><img src="/files/bsiH55nJOpja2ZWKYst8" alt=""><figcaption><p>选择自定义API Key</p></figcaption></figure>

<figure><img src="/files/BLjSB9lyKtowXTZSmFSs" alt=""><figcaption><p>自定义接口</p></figcaption></figure>

按照以上箭头指引的操作，并填入对应的OK接口地址以及APIKEY。

### 效果展示

{% embed url="<https://terobox.oss-cn-hongkong.aliyuncs.com/openkey/translator_show.mp4>" %}

OpenKey接口购买地址：<https://openkey.cloud/topup>


---

# 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://docs.openkey.cloud/usage/immersivetranslate.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.
