Custom Translation Services

For AI providers that do not appear in the built-in service list, Doco Translate lets you add a custom service and connect it for translation.

Add a Custom Service

Open the Doco Translate Settings → Services panel. Click Add Custom Service below the service list, enter a service name, and choose an API protocol.

Adding a custom translation service

API Protocols

Doco Translate supports five common AI API protocols:

  1. OpenAI protocol (Chat Completions)
  2. Anthropic protocol (Responses)
  3. Gemini protocol
  4. Ollama protocol
  5. LM Studio protocol

Custom Request Parameters

Doco Translate supports the following custom request settings:

  • API host: useful when switching between standard APIs and Coding Plan endpoints
  • API path: use a non-standard path supplied by a third-party provider
  • Request body parameters: configure options such as disabling reasoning, which is recommended for translation
  • Request headers: use additional headers in special cases

Configuring custom request parameters

Custom Prompt

Doco Translate includes this default prompt:

Translate the input text into {{TARGET_LANGUAGE}}.

INPUT:
{{TEXT}}

Click Edit Prompt to change the prompt and adjust the model's translation style or output. Keep the {{TARGET_LANGUAGE}} and {{TEXT}} placeholders because Doco Translate replaces them with the target language and input text.

Editing a custom prompt