# AI Translation Overview

Supervertaler integrates with leading AI language models for high-quality translation.

### Supported Providers

| Provider       | Models                                                                           |
| -------------- | -------------------------------------------------------------------------------- |
| **OpenAI**     | GPT-5.5, GPT-5.4 Mini                                                            |
| **Anthropic**  | Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.7                             |
| **Google**     | Gemini 3.1 Flash-Lite, Gemini 2.5 Pro, Gemini 3.1 Pro (Preview), Gemma 4 26B MoE |
| **Mistral**    | Mistral Large, Mistral Small                                                     |
| **DeepSeek**   | DeepSeek V4 Pro, DeepSeek V4 Flash                                               |
| **OpenRouter** | 200+ models via a single API key                                                 |
| **Ollama**     | TranslateGemma, Qwen 3, Aya Expanse (local, free)                                |
| **Custom**     | Any OpenAI-compatible endpoint                                                   |

See [Supported LLM Providers](/help/ai-translation/providers.md) for setup instructions for each provider.

### Quick Start

1. [Set up API keys](/help/get-started-1/api-keys.md)
2. Open a project with segments to translate
3. Select a segment
4. Press `Ctrl+T` to translate

### Translation Methods

#### Single Segment

Translate one segment at a time:

* Select a segment
* Press `Ctrl+T` or click **Translate** button
* AI translation appears in the target cell
* Review, edit, and confirm

#### Batch Translation

Translate multiple segments at once:

* Select segments (Shift+click for range)
* Press `Ctrl+Shift+T` or use **Edit → Batch Translate**
* Configure options in the dialog
* All selected segments are translated

:::note Supervertaler has multiple batch scopes (selected / not-started / etc.). Start with **Edit → Batch Translate → Translate all not-started & pre-translated**. :::

#### TM + AI Hybrid

Combine Translation Memory with AI:

1. TM matches are checked first
2. High matches (e.g., >90%) are used directly
3. Lower matches are AI-translated with TM context
4. No matches use pure AI translation

### Prompts

Prompts control how the AI translates. A good prompt includes:

* Translation direction (source → target language)
* Domain/subject matter
* Style guidelines
* Terminology rules
* Special instructions

#### Example Prompt

```
You are a professional Dutch-to-English translator specializing 
in technical documentation. 

Maintain formal register. Use American English spelling. 
Keep all formatting tags like {1}, <b>, </b> in place.

Translate naturally while preserving the original meaning.
```

See [Creating Prompts](/help/ai-translation/prompts.md) and [Prompt Manager](/help/ai-translation/prompt-library.md) for more.

### Provider Selection

#### In Settings

1. Go to **Settings** tab
2. Find **LLM Settings**
3. Choose your preferred **Provider** and **Model**
4. Save settings

#### Per-Translation

When batch translating, you can choose the provider in the dialog.

### Quality Tips

#### Get Better Results

1. **Use specific prompts** - Include domain, style, and rules
2. **Provide context** - Enable "include context" for surrounding segments
3. **Add termbase terms** - Attach terminology for consistent translations
4. **Post-edit** - AI is great but not perfect; always review

#### Common Issues

| Issue              | Solution                                 |
| ------------------ | ---------------------------------------- |
| Wrong terminology  | Add terms to termbase, include in prompt |
| Inconsistent style | Be more specific in your prompt          |
| Tags removed/moved | Explicitly tell AI to preserve tags      |
| Too literal        | Ask for "natural, fluent" translation    |

### Cost Management

#### API costs

Cloud providers typically charge by usage (tokens). Pricing and free tiers change over time, so treat each provider dashboard as the source of truth.

#### Reducing Costs

1. **Use Ollama** (local) when appropriate
2. **Translate only what you need** (for example not-started segments)
3. **Pre-translate with TM** when you have good matches
4. **Use smaller/faster models** for drafts, larger models for final passes

***

### Learn More

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Single Segment</strong></td><td><a href="/pages/jFY5tqstmLhdBmEXb2dH">Translate one at a time →</a></td></tr><tr><td><strong>Batch Translation</strong></td><td><a href="/pages/2KShGGKKmezpid4pr6w2">Translate in bulk →</a></td></tr><tr><td><strong>Creating Prompts</strong></td><td><a href="/pages/nJCUd90m8MJCwbXLXkYe">Write effective prompts →</a></td></tr><tr><td><strong>Local AI (Ollama)</strong></td><td><a href="/pages/3C0olQZ1piWZluKRtEZf">Free, private AI →</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://supervertaler.gitbook.io/help/ai-translation/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
