Skip to main content

Custom API Configuration

If you don't want to use the built-in translation service and instead wish to connect to third-party translation platforms using your own API keys, you can configure them here. Both traditional machine translation services and large language models are supported for custom integration.

Configuration Types

After selecting "Custom" mode in the dashboard translation settings, choose according to the type of service you want to use:

  1. General Translation Service
  2. LLM Large Model Service

1. General Machine Translation Configuration

Suitable for traditional machine translation APIs like Tencent Translator, Baidu Translate, Volcano Engine, Microsoft Translator, Alibaba Cloud Translation, etc.

Configuration ItemDescription
API IDApplication ID or App ID assigned by the service provider (some providers don't require this field, you can fill in any number like 12345 to skip).
API Key / SecretKey string generated in the service provider's console for verifying your identity.

2. LLM / Large Model API Configuration

Suitable for conversational large language model APIs like OpenAI, DeepSeek, Doubao, Tongyi Qianwen, etc., which obtain results by sending translation instructions to the model.

Configuration ItemDescription
API KeyInterface key provided by the service provider, usually starting with sk-.
Model NameSpecific model name to use, such as gpt-4o, deepseek-chat.
Custom Translation PromptSystem instruction to control the model's translation behavior, can be used to specify translation style, tone, or add special requirements. Default prompt: "You are a translation expert, synthesize all the OCR-recognized text and give the best possible target language translation."
Custom Request URLIf you use locally deployed Ollama, LM Studio, or third-party proxy services, you can fill in the custom interface address here (e.g., http://192.168.1.100:11434/v1/chat/completions). Leave blank to use the default address of the selected service provider.

How to Get API Keys?

  • Tencent/Baidu/Microsoft/Alibaba Cloud: Register and create an application in the corresponding cloud service console to get the key.
  • DeepSeek: Recommended, excellent semantic understanding effect, go to Platform Console to register and get.
  • OpenAI: Go to Official Website to register and get.