---
title: DeepLX - 一个第三方 DeepL 翻译的免费、不限量 API
date: 2023-11-13T10:28:34Z
modified: 2023-11-13T10:28:37Z
permalink: "https://www.appinn.com/deeplx/"
type: post
status: publish
excerpt: ""
categories:
  - 电脑技巧
tags:
  - 电脑技巧
  - API
  - DeepL
  - 翻译
featured_image: "https://www.appinn.com/wp-content/uploads/2023/11/Appinn-feature-images-2023-11-13T171607.257.jpg"
author: 青小蛙
timestamp: 2023-11-13T10:28:37Z
---

**DeepLX** 是一个开源项目，它基于 DeepL 免费服务，将其转换为本地 API，提供给第三次程序使用，如沉浸式翻译、BOb。@[Appinn](https://www.appinn.com/deeplx.md)

![DeepLX - 一个第三方 DeepL 翻译的免费、不限量 API](https://www.appinn.com/wp-content/uploads/2023/11/Appinn-feature-images-2023-11-13T171607.257.jpg)

DeepL 本身提供了免费的有额度限制的 API，但注册很困难，如果你能注册到，那么直接使用官方 API 即可。

感谢 @Tru、@zieglar 同学的推荐。

## DeepLX

DeepLX 在 [GitHub](https://github.com/OwO-Network/DeepLX/) 开源，不限制请求次数（但 DeepL 可能会限制 IP）默认情况下监听本地 1188 端口。提供多种安装方式：

- Windows
- macOS
- Linux
- Docker

运行后即可获得 API 地址：http://127.0.0.1:1188/translate

## 在 Python 中使用：


import httpx, json

deeplx_api = "http://127.0.0.1:1188/translate"

data = {
	"text": "Hello World",
	"source_lang": "EN",
	"target_lang": "ZH"
}

post_data = json.dumps(data)
r = httpx.post(url = deeplx_api, data = post_data).text
print(r)


## 在 Bob 中使用：

需要为 [Bob App](https://bobtranslate.com/) 安装 [bob-plugin-deeplx](https://github.com/missuo/bob-plugin-deeplx) 插件：

![](https://static2.appinn.com/images/202311/68747470733a2f2f6d697373756f2e72752f66696c652f6335633139646438396466366661653161323536642e706e67.jpg)

## 沉浸式翻译

需要打开[沉浸式翻译](https://www.appinn.com/immersive-translate.md)的开发者设置 > 开启 Beta 测试特性：

![](https://static2.appinn.com/images/202311/68747470733a2f2f6d697373756f2e72752f66696c652f3661343862613238363231663234363530323866302e706e67.jpg)

Enjoy it. / 好好享受吧。

---

原文：https://www.appinn.com/deeplx/

## Topics

**分类目录:** [电脑技巧](https://www.appinn.com/category/pcskill/?output_format=md)

**标签:** [API](https://www.appinn.com/tag/api/?output_format=md), [DeepL](https://www.appinn.com/tag/deepl/?output_format=md), [翻译](https://www.appinn.com/tag/%e7%bf%bb%e8%af%91/?output_format=md)