curl -X POST 'https://api.deepl.com/v2/translate' \--header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \--header 'Content-Type: application/json' \--data '{ "text": [ "Hello, world!" ], "target_lang": "DE"}'输出:你将得到一个JSON格式的响应,其中包含了翻译结果的详细...
下面的示例使用我们的 API Pro 端点https://api.deepl.com。如果您是 API Free 用户,请记住更新您的请求以使用https://api-free.deepl.com。 以下是使用curl进行测试的一个案例: 输入: curl -X POST 'https://api.deepl.com/v2/translate' \ --header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \...
打开Zotero软件,点击【工具】→【附加组件】,把插件文件(zotero-pdf-translate .xpi)拖到进来,然后你就会看到多了一个插件。插件文件可以在github上面找到。 注册获取Deepl API 打开 Deepl API,扫码进行注册就可以获取20w字符量,填写我的邀请码可以多获取20w字符量。邀请码:HXGgQU0ix4 使用划词翻译...
键入翻译。 使用我们的文档翻译器拖放翻译PDF、Word(.docx)和PowerPoint(.pptx)文件。 请点击麦克风来翻译语音。 翻译结果 词典 点击单词以查询。 立即改变翻译的风格和基调 通过DeepL Write 预设的写作风格和基调,使你的文章更适合受众。 改写文本 使用DeepL应用程序,翻译更快捷 ...
六、Python 集成 DeepL 翻译 API 以下是一个简单的 Python 代码示例,展示如何使用 DeepL 翻译 API:import requestsimport hashlibdef translate_text(text): # 假设您有一个 API 密钥,例如 api_key = "your_api_key" api_key = "your_api_key" # 计算消息摘要 message = text + api_key ...
"https://api.deepl.com/v2/translate", params={ "auth_key": auth_key, "target_lang": target_language, "text": text, "tag_handling": "xml", # 这个参数确保 DeepL 正确处理 html tags }, ) return result.json()["translations"][0]["text"] ...
auth_key="<yourDeepLAPIProauthenticationkey>"#注意,要订阅的是DeepLAPIProtarget_language="ZH"##当然,你可以将目标语言设置成任何DeepL支持的语言path="JohnLaw/"#文件夹名称末尾得有/source_filename="index2.html"#上一步生成的文件,成为这一步的“源文件”target_filename="index3.html"deftranslate(text...
充值注册 登录 API文档 公告信息 翻译文本 翻译文件(支持pdf,docx,pptx,html,txt) 来源语言: 目标语言: 降重翻译 复制 提示语: 忽略tag标签: 赣ICP备2023009884号
The DeepL API offers officially-supported client libraries in Python, .NET, Node.js, PHP, Ruby, and Java. Need to generate your own client? There's an OpenAPI spec for that. Read the docs Get in touch Built something cool with our API? Need help? Just want to say hi? Reach out ...
url='https://deepl-translator.p.rapidapi.com/translate';apiHost='deepl-translator.p.rapidapi.com';options=weboptions('RequestMethod','post',...'ContentType','json',...'HeaderFields',{'content-type','application/json';...'X-RapidAPI-Host',apiHost;...'X-RapidAPI-Key',apiKey});try...