Skip to content

Click to view using domestic AI models as a substitute for OpenAI ChatGPT

Using the Official OpenAI ChatGPT API

If you have a free account, you also have access to the free API. However, this free API has significant limitations, allowing only a few requests per minute, which can easily lead to rate limit failures. Of course, if you don't mind and insist on using it, it is still possible.

1. Go to this page: https://platform.openai.com, and click "Log in" in the top right corner to log in.

2. After logging in, click the "lock icon" on the left to view API information.

3. Then, on the right side, click "Create new secret key" to create a secret key (SK).

4. After possibly passing a CAPTCHA to verify you are human, a text box for creating the secret key will pop up. This key is the information you need to fill into the software. It will only be displayed once. Once you close the pop-up, you won't be able to see it again, so you must copy it immediately.

That's it. You can now go to third-party software to fill in and use it.

5. Using it in the video translation and dubbing software, click the top-left Settings menu - OpenAI/ChatGPT. In the SK field, paste the secret key you copied. Keep other settings as default. When using an official OpenAI account, you do not need to fill in the "API URL"; leave it empty. Then save.

Although a free ChatGPT account can use the API, it is limited to only 3 requests per minute. Once the limit is exceeded, various errors occur, resulting in a very poor user experience. To use a paid account, you must have a foreign credit card, which is a high barrier. Fortunately, there are many domestic API relay services where you can directly purchase and use them by filling in the secret key and API URL address provided by the third party.

Using Third-Party Relayed ChatGPT API Services

There are many third-party relay services, but their quality varies, and there is a risk of them shutting down. Therefore, no specific recommendations are made here. Please search and choose on your own. This section only explains how to use their API address and fill in the secret key.

1. For example, if I have purchased a third-party API, find the location of the secret key, create it, and copy it.

  1. Paste the copied secret key into the text box after SK in the video translation and dubbing software.

3. Note: When using a third-party relay API, you must correctly fill in the "API URL". This API URL will be provided by the third party, stated in their documentation, or you can directly consult their customer service.

For example, the third-party API I use provides these API URLs on their page. After local testing, I selected and copied the fastest one and filled it into the text box after "API URL" in the software.

  1. The effect after filling it in is shown in the figure below.

No matter which third-party API service you use, the process is similar. The most critical pieces of information are these two: one is the secret key (i.e., SK or secret key), and the other is the third-party API URL address.

Similarly, if you want to fill it into "Immersive Translate," the process is the same. "APIKEY" corresponds to the secret key, and "Custom API Interface Address" corresponds to the API URL address. However, you need to append /v1/chat/completions to its address. That is, in Immersive Translate, the corresponding API address is Third-party API address/v1/chat/completions.

Notes:

  1. Most AI translation channels may limit the number of requests per minute. If you encounter an error during use indicating that the request frequency is exceeded, you can click "Translation Channel↓" on the main software interface. In the pop-up window, change the pause seconds to 10. This means waiting 10 seconds after each translation before initiating the next request, limiting it to a maximum of 6 times per minute to prevent exceeding the frequency limit.

  2. If the selected model is not intelligent enough, especially locally deployed models that are limited by hardware resources and are usually smaller, they may not accurately return translations in the required format as per the instructions. This could result in too many blank lines in the translation output. In this case, you can try using a larger model, or go to Menu -- Tools/Options -- Advanced Options -- When using AI translation, send complete subtitle content, and uncheck the option.