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 the 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. Note: Do not fill in the "Server Address", otherwise it can only be called on the IP address you fill 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 and scroll to the bottom to see your APP ID and Secret Key.

Fill them in where needed.

2. Fill in the software, top left settings menu - Baidu Translation Settings, fill in the APPID and secret key accordingly.

3. Free Quota

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

As you can see, the free quota given by Baidu is very low, which is basically not enough. If you want to use it heavily, spend money to upgrade.

Compared to Baidu, Tencent Translate's free quota is as high as 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 is exceeded, you can set a number of seconds through the software Menu--Tools/Advanced Settings--Advanced Settings/set.ini--Pause after translation, such as 30, that is, wait 30s after each translation before performing the next translation to avoid exceeding the limit frequency error.

image.png