- Free, 无需注册帐号
- 暂时仅提供二进制,不开源
- 请求过于频繁仍会触发DeepL封IP
standalone
可独立运行,使用Rocket提供http服务,可通过修改rocket配置文件覆盖某些配置
lambda
供aws lambda使用
docker run -itd -p 8080:80 zu1k/deepl
这个版本与直接使用zu1k/deepl镜像类似
docker load < deepl-standalone.tar
这个版本供aws lambda使用,使用时先导入本地docker中
docker load < deepl-lambda.tar
然后根据aws给出的提示推到Amazon ECR中,最后创建lambda函数和api网关
- Method:
POST
- Path:
/translate
- Content-Type:
application/json
{
"text": "text to be translated",
"source_lang": "auto",
"target_lang": "ZH"
}
language supported:
DE
: 德语EN
: 英语ES
: 西班牙语FR
: 法语IT
: 意大利语JA
: 日语NL
: 荷兰语PL
: 波兰语PT
: 葡萄牙语RU
: 俄语ZH
: 中文BG
: 保加利亚语CS
: 捷克语DA
: 丹麦语EL
: 希腊语ET
: 爱沙尼亚语FI
: 芬兰语HU
: 匈牙利语LT
: 立陶宛语LV
: 拉脱维亚语RO
: 罗马尼亚语SK
: 斯洛伐克语SL
: 斯洛文尼亚语SV
: 瑞典语
Content-Type: application/json
{
"code": 200,
"msg": "only if there is an error",
"data": "translate result"
}
code:
200
: ok500
: internal error404
: what are you doing?
msg: if the code is not 200
data: if the code is 200