跳到正文

兼容 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 格式

所有格式共用同一个密钥和字符额度。

格式端点功能
DeepLPOST/v2/translate翻译文本
DeepLPOST/v2/document上传文档
DeepLPOST/v2/document/{id}查询文档状态
DeepLPOST/v2/document/{id}/result下载译文
DeepLGET/v2/usage本月已用字符数
DeepLGET/v2/languages, /v3/languages支持的语言
Google v2POST/language/translate/v2翻译文本
Google v2POST/language/translate/v2/detect检测语言
Azure v3POST/translate?api-version=3.0翻译文本
Azure v3POST/translator/document:translate翻译文档并等待完成

完整参考:翻译文本、翻译文档、限制与错误。

API 价格

DeepL API Growth 方案在超过首个百万字符后,每百万字符收费 $27.50。VibeQL 收费 $13.75。

按量付费

$13.75每 100 万字符

  • 文本和文档同价
  • DeepL API 价格的一半

Growth

$129每月

  • 包含 1000 万字符
  • 之后每 100 万字符 $12.50

Scale

$1,299每月

  • 包含 1 亿字符
  • 之后每 100 万字符 $11

通过 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 字符。

账户就绪后会发送一封邮件,之后大约每月发送一封产品邮件。