Click to View Using Domestic AI Models to Replace OpenAI ChatGPT
Using OpenAI's Official ChatGPT API
If you have a free account, you also have free API usage rights. However, this free API is very limited, allowing only a few requests per minute, making it easy to exceed the limit and fail. Of course, if you don't mind and insist on using it, you can.
1. Open this page: https://platform.openai.com and click "Log in" in the upper right corner to log in.
2. After logging in, click the "lock icon" on the left to view the API information.
3. Then click "Create new secret key" on the right to create a secret key (SK).
4. You may be asked to complete a CAPTCHA to verify that you are human. After verification, a text box will pop up containing the secret key. This key is the information you need to fill in the software. It is only displayed once here, and once you close the pop-up window, you will no longer be able to see it. You need to copy it down immediately.
Okay, that's it. You can now fill it in and use it in third-party software.
5. Using it in video translation and dubbing software: Click Settings Menu - OpenAI/ChatGPT in the upper left corner. Fill in the secret key you copied in the SK field, keep the other settings as default. When using an official OpenAI account, there is no need to fill in the "API URL"; leave it blank, and then save.
Although a free ChatGPT account can use the API, it is limited to 3 requests per minute. Exceeding the limit will result in various errors, leading to 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 relay API services available where you can directly purchase access and fill in the secret key and API URL address provided by the third party.
Using a Third-Party Relayed ChatGPT API Service
There are many third-party relay services, but they vary in quality and there is also a risk of them disappearing. Therefore, we do not recommend any specific service here. Please find and choose one yourself. We will only explain how to use their API address and fill in the secret key.
1. For example, I have purchased an API from a third party. Find the location of the secret key, create it, and copy it.
- Paste the copied key into the SK text box in the video translation and dubbing software.
3. Note that when using a third-party relay API, you must correctly fill in the "API URL". The third party will provide this API URL, which is 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 the page. After testing them locally, I chose to copy the fastest one and fill it into the "API URL" text box in the software.
- The effect after filling in is as follows:
Regardless of which third-party API service you use, the process is similar. The most crucial information is the key (i.e., SK or secret key) and the third party's API URL address.
Similarly, if you want to fill it in "Immersive Translate", fill it in the same way. "APIKEY" corresponds to the key, and "Custom API interface address" corresponds to the API URL address. The only difference is that you need to add /v1/chat/completions
to the end of its address. That is, the corresponding API address in Immersive Translate is third-party API address/v1/chat/completions
Precautions:
Most AI translation channels may limit the number of requests per minute. If you encounter an error message indicating that the request frequency has been exceeded, you can click "Translation Channel ↓" on the main interface of the software, and change the pause seconds to 10 in the pop-up window. This means waiting 10 seconds after each translation before initiating the next translation request, with a maximum of 6 times per minute, to prevent exceeding the frequency limit.
If the selected model is not intelligent enough, especially local deployment models that are limited by hardware resources and are usually smaller, it may not accurately return translations in the required format according to the instructions. There may be too many blank lines in the translation results. At this time, you can try using a larger model, or open Menu - Tools/Options - Advanced Options - Send complete subtitle content when using AI translation, and uncheck it.