Skip to content

Baidu Translate API

1. Apply for Baidu Translate API

Open the Baidu Translate API console, https://fanyi-api.baidu.com/api/trans/product/desktop. If you are not logged in, you will be redirected to the registration and login page. Please log in and reopen the page.

After opening this page, click "Activate Other Translation Services".

If you haven't applied before, click "General Text Translation" and then click "Next" at the bottom.

On the next page, fill in the relevant information. Be sure not to fill in the "Server Address". Otherwise, it can only be called on the IP address you filled in. Once your IP changes or you change your computer, the interface will report an error. This is also a problem that many people encounter when using the Baidu Translate API: the account is fine, but it reports an "Unauthorized" error.

After the application is approved, return to the management console. At the bottom, you will see your APP ID and Secret Key.

Fill them in where needed.

2. Fill in the software. In the upper left corner, select Settings Menu - Baidu Translate Settings, and fill in the APPID and Secret Key accordingly.

3. Free Quota

From August 1, 2022, the free call volume for the Baidu General Translation API Standard Edition is adjusted to 50,000 characters/month, and the free call volume for the Advanced Edition is adjusted to 1 million characters/month.

It can be seen that Baidu provides very low free quota, which is basically not enough. To use it heavily, upgrade by paying.

Compared to Baidu, Tencent Translate provides a free quota of up to 5 million characters per month.

Precautions:

Most AI translation channels may limit the number of requests per minute. If an error message indicates that the request frequency has been exceeded, you can set a number of seconds through the software Menu -- Tools/Advanced Settings -- Advanced Settings/set.ini -- Pause time after translation, such as 30, which means waiting for 30 seconds after each translation before performing the next translation to avoid exceeding the limit frequency and causing an error.

image.png