Click to view using domestic AI models instead of OpenAI ChatGPT
Using OpenAI's Official ChatGPT API
If you have a free account, then you also have free API usage rights. However, this free API has very large limitations, with only single-digit requests per minute, making it easy to exceed the limit and fail. Of course, if you don't care and insist on using it, that's also possible.
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. After possibly going through a CAPTCHA test to verify you're human, a text box will pop up with the secret key. This key is the information that needs to be filled in to use the software. It is only displayed once here, and once the pop-up window is closed, it can no longer be seen. You need to copy it down immediately.
Okay, that's it. You can go fill it in and use it in third-party software.
5. Using it in the video translation and dubbing software, click Settings Menu - OpenAI/ChatGPT in the upper left corner. Fill in the secret key you copied in SK, keep the other settings as default, and when using the official OpenAI account, there is no need to fill in "API URL", just leave it blank, and then save.
Although a free ChatGPT account can use the API, it only allows 3 requests per minute, and various errors will occur once the limit is exceeded, 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 relay API services, where you can directly purchase and fill in the secret key and API URL address provided by the third party.
Using a Third-Party Relay ChatGPT API Service
There are many third-party relay services, but they are of varying quality and there is a risk of them disappearing, so no recommendations will be made here. Please find and choose one yourself. Only how to use their API address and fill in the secret key will be explained.
1. For example, I have already purchased a certain third-party API. Find the location of the secret key, create and copy it.
- Paste the copied key into the SK text box of the video translation and dubbing software.
3. It should be noted that 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 and is stated in their documentation, or directly consult their customer service.
For example, the third-party API I am using provides these API URLs on the page. After local testing, I chose to copy the fastest one and fill it in to the text box after "API URL" in the software.
- The effect after filling is as follows.
No matter which third-party API service you use, it is similar. The most critical are these two pieces of information: the key (i.e. SK or secret key) and the third-party API URL address.
Similarly, if you want to fill it in "Immersive Translation", you also fill it in the same way. "APIKEY" corresponds to the key, and "Custom API Interface Address" corresponds to the API URL address. It's just that you need to continue to add /v1/chat/completions
after its address, that is, the corresponding API address in Immersive Translation is third-party API address/v1/chat/completions
.
Precautions:
Most AI translation channels may limit the number of requests per minute. If an error message indicates that the request frequency is exceeded during use, you can click "Translation Channel ↓" in the main interface of the software, and change the pause seconds in the pop-up window to 10, that is, wait 10 seconds after each translation before initiating the next translation request, with a maximum of 6 times per minute, to prevent the frequency from being exceeded.
If the selected model is not intelligent enough, especially if the locally deployed model is limited by hardware resources and is usually small, it cannot accurately return translations in the required format according to the instruction requirements, and 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.