相容於 DeepL 的翻譯 API
將 DeepL、Google Translate v2 或 Azure Translator 請求傳送至 vibeql.com。文字與文件每百萬字元 $13.75,為 DeepL 費率的一半,且每份文件沒有最低收費。
即將開放註冊。免費方案每月包含 500,000 個 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讓 AI 代理讀得懂的文件
每個文件頁面都有 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 字元。