# Setting Up API Keys

To use AI translation you need an API key from at least one provider. Enter your key in **Settings → AI Settings**.

### Supported providers

| Provider                              | Where to get a key                                                   |
| ------------------------------------- | -------------------------------------------------------------------- |
| **OpenAI**                            | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) |
| **Anthropic (Claude)**                | [console.anthropic.com](https://console.anthropic.com)               |
| **Google (Gemini)**                   | [aistudio.google.com/apikey](https://aistudio.google.com/apikey)     |
| **Grok (xAI)**                        | [console.x.ai](https://console.x.ai)                                 |
| **Mistral AI**                        | [console.mistral.ai](https://console.mistral.ai)                     |
| **DeepSeek**                          | [platform.deepseek.com](https://platform.deepseek.com)               |
| **OpenRouter** (200+ models, one key) | [openrouter.ai/keys](https://openrouter.ai/keys)                     |
| **Ollama**                            | No key needed – runs locally                                         |

### Entering a key

1. Open **Settings → AI Settings**
2. Select your provider from the **Provider** dropdown
3. Paste your API key into the **API Key** field
4. Click **Test Connection** to verify
5. Save settings

Keys are stored locally and are only sent to the provider's own API endpoint.

### Switching providers

You can configure keys for multiple providers in the same settings panel. Switch between them without re-entering credentials – the key for each provider is remembered independently.

### Using Ollama (no key required)

Ollama runs models entirely on your machine. No API key or internet connection is needed.

See [Ollama Setup](/help/ai-translation/ollama.md) for download and configuration instructions.

### Using OpenRouter (one key for everything)

If you prefer not to manage multiple accounts, OpenRouter lets you access 200+ models from all major providers with a single API key. Create an account at [openrouter.ai](https://openrouter.ai) and paste your key into the **OpenRouter** provider slot.

### Troubleshooting

| Problem               | Solution                                                             |
| --------------------- | -------------------------------------------------------------------- |
| "Invalid API key"     | Double-check the key; ensure no leading or trailing spaces           |
| "Rate limit exceeded" | Wait a moment, or upgrade your API plan                              |
| "Model not found"     | Check the model name in settings; it may have been updated           |
| No response           | Check your internet connection and that the provider's service is up |

***

### Next steps

* [Create your first project](/help/get-started-1/first-project.md)
* [Supported LLM Providers](/help/ai-translation/providers.md)
* [AI Translation Overview](/help/ai-translation/overview.md)


---

# 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/get-started-1/api-keys.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.
