# Migrate from DeepL

Move a DeepL API integration to VibeQL by changing the server URL and the key in your DeepL client library.

VibeQL serves the DeepL API format. Keep your code and your DeepL client library. Change two things:

1. The server URL: `https://vibeql.com`.
2. The key: a VibeQL key from [API keys](/app/api-keys).

## Change the server URL

**Python**

```python
client = deepl.DeepLClient(os.environ["VIBEQL_API_KEY"], server_url="https://vibeql.com")
```

**Node**

```js
const client = new deepl.DeepLClient(process.env.VIBEQL_API_KEY, { serverUrl: "https://vibeql.com" });
```

**.NET**

```csharp
var client = new DeepLClient(apiKey, new DeepLClientOptions { ServerUrl = "https://vibeql.com" });
```

**Java**

```java
DeepLClient client = new DeepLClient(apiKey, new DeepLClientOptions().setServerUrl("https://vibeql.com"));
```

**PHP**

```php
$client = new \DeepL\DeepLClient($apiKey, ['server_url' => 'https://vibeql.com']);
```

**Go**

```go
// 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"))
```

**Ruby**

```ruby
client = DeepL::Client.new(ENV.fetch('VIBEQL_API_KEY'), server_url: 'https://vibeql.com')
```

The older `Translator` class takes the same option. With the older module-level Ruby API, set `config.host = 'https://vibeql.com'` in `DeepL.configure`.

> **Note:** DeepL Free keys end in `:fx`, and the libraries use that suffix to choose between `api-free.deepl.com` and `api.deepl.com`. They do this only when you do not set a server URL. Once the server URL is `https://vibeql.com`, the suffix plays no part. VibeQL keys start with `vql_` and have no suffix.

If you call the API over plain HTTP, replace `https://api.deepl.com` or `https://api-free.deepl.com` with `https://vibeql.com`. Paths and parameters stay the same.

## What stays the same

- Endpoints: `POST /v2/translate`, `POST /v2/document`, `POST /v2/document/{id}`, `POST /v2/document/{id}/result`, `GET|POST /v2/usage`, `GET|POST /v2/languages` and `GET /v3/languages`.
- The `Authorization: DeepL-Auth-Key` header and the legacy `auth_key` field.
- JSON field names, such as `translations`, `detected_source_language`, `document_id`, `document_key`, `seconds_remaining` and `billed_characters`.
- Document statuses: `queued`, `translating`, `done`, `error`.
- Status codes: `400`, `403`, `404`, `413`, `456`, `503`.
- Language codes, including `EN-US`, `PT-BR`, `ES-419` and `ZH-HANT`. See [Languages](/docs/languages).

## What is different

| | DeepL | VibeQL |
|---|---|---|
| Minimum per document | 50,000 characters | None. A document uses the characters it has. |
| Glossaries | Yes | No. `glossary_id` is ignored and the glossary endpoints do not exist. |
| Formality | Yes, for some languages | No. `formality` is ignored and `supports_formality` is `false`. |
| `detected_source_language` on `/v2/translate` | Detected language | Your `source_lang`, or `EN` if you leave it out |
| Other DeepL APIs, such as DeepL Write | Yes | Not available |
| Document formats | Many | DOCX, PPTX, PDF, TXT |
| Price | See DeepL | See [Pricing](/pricing) |

Translations come from AI translation models, so the wording can differ from DeepL output for the same text. Test a sample of your own content before you switch all traffic.

## Check the switch

```bash
curl https://vibeql.com/v2/usage \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY"
```

A `200` response with `character_count` and `character_limit` confirms that the URL and the key work.
