# Quickstart

Get a VibeQL API key, translate your first text and your first document in a few minutes.

This page takes you from an API key to a translated text and a translated file.

## 1. Get an API key

1. Log in and open [API keys](/app/api-keys).
2. Select **Create key** and give the key a name.
3. Copy the key. It starts with `vql_`. The dashboard shows the full key only once.

Store the key in an environment variable:

```bash
export VIBEQL_API_KEY="vql_..."
```

> **Note:** Sign-up is closed during the beta. [Join the waitlist](/signup) and we email you when your account is ready.

## 2. Translate text

Send one or more `text` values and a `target_lang`. The request uses the DeepL format, so the official DeepL client libraries work when you set the server URL to `https://vibeql.com`.

**cURL**

```bash
curl https://vibeql.com/v2/translate \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
  -d "text=Hello, world" \
  -d "target_lang=DE"
```

**Python**

```python
# pip install deepl
import os
import deepl

client = deepl.DeepLClient(os.environ["VIBEQL_API_KEY"], server_url="https://vibeql.com")
result = client.translate_text("Hello, world", target_lang="DE")
print(result.text)
```

**Node**

```js
// npm install deepl-node
import * as deepl from "deepl-node";

const client = new deepl.DeepLClient(process.env.VIBEQL_API_KEY, { serverUrl: "https://vibeql.com" });
const result = await client.translateText("Hello, world", null, "de");
console.log(result.text);
```

**.NET**

```csharp
// dotnet add package DeepL.net
using DeepL;

var client = new DeepLClient(
    Environment.GetEnvironmentVariable("VIBEQL_API_KEY"),
    new DeepLClientOptions { ServerUrl = "https://vibeql.com" });
var result = await client.TranslateTextAsync("Hello, world", null, "DE");
Console.WriteLine(result.Text);
```

**Java**

```java
// Maven/Gradle: com.deepl.api:deepl-java
import com.deepl.api.*;

public class Example {
    public static void main(String[] args) throws Exception {
        DeepLClient client = new DeepLClient(System.getenv("VIBEQL_API_KEY"),
                new DeepLClientOptions().setServerUrl("https://vibeql.com"));
        TextResult result = client.translateText("Hello, world", null, "de");
        System.out.println(result.getText());
    }
}
```

**PHP**

```php
// composer require deeplcom/deepl-php
require_once 'vendor/autoload.php';

$client = new \DeepL\DeepLClient(getenv('VIBEQL_API_KEY'), ['server_url' => 'https://vibeql.com']);
$result = $client->translateText('Hello, world', null, 'de');
echo $result->text;
```

**Go**

```go
package main

import (
	"encoding/json"
	"fmt"
	"net/http"
	"net/url"
	"os"
	"strings"
)

func main() {
	form := url.Values{}
	form.Add("text", "Hello, world")
	form.Set("target_lang", "DE")

	req, _ := http.NewRequest("POST", "https://vibeql.com/v2/translate", strings.NewReader(form.Encode()))
	req.Header.Set("Authorization", "DeepL-Auth-Key "+os.Getenv("VIBEQL_API_KEY"))
	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	var out struct {
		Translations []struct {
			Text string `json:"text"`
		} `json:"translations"`
	}
	if err := json.NewDecoder(resp.Body).Decode(&out); err != nil {
		panic(err)
	}
	fmt.Println(out.Translations[0].Text)
}
```

**Ruby**

```ruby
# gem install deepl-rb
require 'deepl'

client = DeepL::Client.new(ENV.fetch('VIBEQL_API_KEY'), server_url: 'https://vibeql.com')
result = client.translate_text('Hello, world', nil, 'DE')
puts result.text
```

The response:

```json
{ "translations": [{ "detected_source_language": "EN", "text": "Hallo, Welt" }] }
```

## 3. Translate a document

Document translation runs in three steps: upload the file, check the status, download the result. The client libraries do all three in one call.

**cURL**

```bash
# Upload. The response has a document_id and a document_key.
curl https://vibeql.com/v2/document \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
  -F "file=@report.docx" \
  -F "target_lang=DE"

# Check the status until it is "done".
curl https://vibeql.com/v2/document/DOCUMENT_ID \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
  -d "document_key=DOCUMENT_KEY"

# Download the translated file.
curl https://vibeql.com/v2/document/DOCUMENT_ID/result \
  -H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
  -d "document_key=DOCUMENT_KEY" \
  -o report.de.docx
```

**Python**

```python
client.translate_document_from_filepath("report.docx", "report.de.docx", target_lang="DE")
```

**Node**

```js
await client.translateDocument("report.docx", "report.de.docx", null, "de");
```

**.NET**

```csharp
await client.TranslateDocumentAsync(
    new FileInfo("report.docx"), new FileInfo("report.de.docx"), null, "DE");
```

**Java**

```java
client.translateDocument(new File("report.docx"), new File("report.de.docx"), null, "de");
```

**PHP**

```php
$client->translateDocument('report.docx', 'report.de.docx', null, 'de');
```

**Ruby**

```ruby
client.translate_document('report.docx', 'report.de.docx', nil, 'DE')
```

VibeQL accepts DOCX, PPTX, PDF and TXT files. Translated files stay available for 24 hours. See [Translate documents](/docs/translate-documents) for the full flow.

## Next steps

- [Authentication](/docs/authentication): all the ways to send your key.
- [Translate text](/docs/translate-text) and [Translate documents](/docs/translate-documents): parameters and responses.
- [Migrate from DeepL](/docs/migrate-from-deepl), [Google](/docs/migrate-from-google) or [Azure](/docs/migrate-from-azure).
- [MCP setup](/docs/mcp-setup): translate files from Claude, Cursor or VS Code.
