兼容 DeepL 的翻译 API
将 DeepL、Google Translate v2 或 Azure Translator 请求发送到 vibeql.com。文本和文档每百万字符 $13.75,是 DeepL 价格的一半,每个文档不设最低收费。
注册即将开放。免费方案每月包含 50 万 API 字符。
import deepl
client = deepl.DeepLClient(
"YOUR_KEY", server_url="https://vibeql.com"
)
client.translate_document_from_filepath(
"report.docx", "report-de.docx", target_lang="DE"
)import * as deepl from "deepl-node";
const client = new deepl.DeepLClient("YOUR_KEY", {
serverUrl: "https://vibeql.com",
});
await client.translateDocument(
"report.docx", "report-de.docx", null, "de"
);curl https://vibeql.com/v2/translate \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-d "text=Where is the train station?" \
-d "target_lang=DE"同一基础 URL 支持三种 API 格式
所有格式共用同一个密钥和字符额度。
| 格式 | 端点 | 功能 |
|---|---|---|
| DeepL | POST/v2/translate | 翻译文本 |
| DeepL | POST/v2/document | 上传文档 |
| DeepL | POST/v2/document/{id} | 查询文档状态 |
| DeepL | POST/v2/document/{id}/result | 下载译文 |
| DeepL | GET/v2/usage | 本月已用字符数 |
| DeepL | GET/v2/languages, /v3/languages | 支持的语言 |
| Google v2 | POST/language/translate/v2 | 翻译文本 |
| Google v2 | POST/language/translate/v2/detect | 检测语言 |
| Azure v3 | POST/translate?api-version=3.0 | 翻译文本 |
| Azure v3 | POST/translator/document:translate | 翻译文档并等待完成 |
通过 API 翻译文档
上传 DOCX、PPTX、PDF 或 TXT 文件,查看处理状态,下载结果。流程和字段与 DeepL 文档 API 相同。
目前没有其他厂商提供 DeepL 格式的文档 API,因此使用 DeepL 的团队无需改动代码就能迁移文档任务。只想发起一次调用?Azure 风格的端点最多等待 90 秒,然后返回翻译后的文件。
# 1. Upload
curl https://vibeql.com/v2/document \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-F file=@contract.docx -F target_lang=ES
# {"document_id": "…", "document_key": "…"}
# 2. Check the status until it is "done"
curl https://vibeql.com/v2/document/$ID \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-d document_key=$KEY
# 3. Download
curl https://vibeql.com/v2/document/$ID/result \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-d document_key=$KEY -o contract-es.docx编码智能体可读取的文档
每个文档页面都有 Markdown 版本。让 Claude Code、Cursor 或 Copilot 在编写集成代码时读取这些文件。
API 常见问题
从 DeepL 迁移需要改代码吗?
只需更改服务器 URL 和密钥。DeepL 官方的 Python、Node、.NET、Java、PHP 和 Ruby SDK 都支持服务器 URL 选项。请求和响应字段保持不变。
有哪些 DeepL 功能尚未支持?
术语表和正式语气选项暂不可用。VibeQL 支持 34 种目标语言。
字符数如何计算?
我们按您发送的源文本字符数计费。文档按其包含的文本计费,每个文件没有最低收费。
哪些密钥可用?
VibeQL 密钥以 vql_ 开头。可以通过 DeepL-Auth-Key 或 Bearer 请求头、auth_key 表单字段、Google 的 key 参数或 Azure 的 Ocp-Apim-Subscription-Key 请求头传入。
字符数用完了会怎样?
API 会返回状态码 456,与 DeepL API 使用的代码相同。
获取 API 密钥
每月 500,000 个免费 API 字符。