DeepL에서 이전하기
DeepL 클라이언트 라이브러리에서 서버 URL과 키만 바꾸면 DeepL API 연동을 VibeQL로 옮길 수 있어요.
VibeQL은 DeepL API 형식을 제공해요. 코드와 DeepL 클라이언트 라이브러리는 그대로 두고 두 가지만 바꾸세요:
- 서버 URL:
https://vibeql.com. - 키: API 페이지에서 발급한 VibeQL 키예요.
서버 URL 변경
client = deepl.DeepLClient(os.environ["VIBEQL_API_KEY"], server_url="https://vibeql.com")const client = new deepl.DeepLClient(process.env.VIBEQL_API_KEY, { serverUrl: "https://vibeql.com" });var client = new DeepLClient(apiKey, new DeepLClientOptions { ServerUrl = "https://vibeql.com" });DeepLClient client = new DeepLClient(apiKey, new DeepLClientOptions().setServerUrl("https://vibeql.com"));$client = new \DeepL\DeepLClient($apiKey, ['server_url' => 'https://vibeql.com']);// DeepL has no official Go library. Change the base URL in your HTTP code.
const baseURL = "https://vibeql.com" // was https://api.deepl.com or https://api-free.deepl.com
req, _ := http.NewRequest("POST", baseURL+"/v2/translate", body)
req.Header.Set("Authorization", "DeepL-Auth-Key "+os.Getenv("VIBEQL_API_KEY"))client = DeepL::Client.new(ENV.fetch('VIBEQL_API_KEY'), server_url: 'https://vibeql.com')이전 Translator 클래스도 같은 옵션을 받아요. 이전 모듈 수준 Ruby API에서는 DeepL.configure에 config.host = 'https://vibeql.com'를 설정하세요.
API를 일반 HTTP로 호출한다면 https://api.deepl.com 또는 https://api-free.deepl.com를 https://vibeql.com로 바꾸세요. 경로와 매개변수는 그대로입니다.
그대로 유지되는 것
- 엔드포인트:
POST /v2/translate,POST /v2/document,POST /v2/document/{id},POST /v2/document/{id}/result,GET|POST /v2/usage,GET|POST /v2/languages,GET /v3/languages. Authorization: DeepL-Auth-Key헤더와 레거시auth_key필드.translations,detected_source_language,document_id,document_key,seconds_remaining,billed_characters같은 JSON 필드 이름.- 문서 상태:
queued,translating,done,error. - 상태 코드:
400,403,404,413,456,503. EN-US,PT-BR,ES-419,ZH-HANT같은 언어 코드. Languages를 참고하세요.
달라지는 점
| DeepL | VibeQL | |
|---|---|---|
| 문서당 최소 요금 | 50,000자 | 없어요. 문서는 가진 문자를 그대로 사용해요. |
| 용어집 | 지원 | 아니요. glossary_id는 무시되고 용어집 엔드포인트는 없어요. |
| 격식 | 네, 일부 언어에서 지원해요 | 아니요. formality는 무시되고 supports_formality는 false예요. |
detected_source_language 켜짐 /v2/translate |
감지된 언어 | 설정한 source_lang, 생략하면 EN |
| DeepL Write 같은 다른 DeepL API | 지원 | 지원하지 않아요 |
| 문서 형식 | 많아요 | DOCX, PPTX, PDF, TXT |
| 가격 | DeepL 문서 참고 | 가격 참고 |
번역은 AI 번역 모델에서 나오므로 같은 텍스트라도 DeepL 결과와 표현이 다를 수 있어요. 모든 트래픽을 전환하기 전에 직접 만든 콘텐츠 일부로 테스트해 보세요.
전환 확인
curl https://vibeql.com/v2/usage \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY"
character_count와 character_limit가 담긴 200 응답이면 URL과 키가 작동한다는 뜻이에요.