Skip to content

Using the Official OpenAI API

If you have a free account, you also have free API access. However, this free API has significant limitations; only a single-digit number of requests are allowed per minute, easily leading to exceeding the limit and failure. Of course, if you don't mind, you can still use it.

1. Open this page: https://platform.openai.com, and click "Log in" in the upper right corner.

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

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

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

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

5. Using it in the video translation and dubbing software: Click the top-left Settings menu - OpenAI/ChatGPT. Fill in the secret key you copied in the SK field, keep the rest as default. When using an official OpenAI account, you don't need to fill in the "API URL"; leave it blank, then save.

Although free ChatGPT accounts can use the API, they only allow 3 requests per minute. Once the limit is exceeded, various errors will occur, resulting in a very poor user experience. To use a paid account, you must have a foreign credit card, which has a high barrier to entry. Fortunately, there are many intermediary API services in China that you can directly purchase from. Fill in the secret key and API URL provided by the third party.

Using Third-Party Intermediary API Services

Many third-party intermediary services exist, but their quality varies, and there's a risk of them disappearing. Therefore, I won't recommend any here. Please search and choose one yourself. I will only explain how to use their API address and secret key.

1. For example, I have purchased an API from a third party. Locate the key (secret key), create it, and copy it.

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

3. Note that when using a third-party intermediary API, you must correctly fill in the "API URL". This API URL is provided by the third party; it's documented in their documentation, or you can ask their customer service.

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

  1. The result after filling is shown below.

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

You need to fill this in for "Immersive Translation" as well. "APIKEY" corresponds to the key, and "Custom API Interface Address" corresponds to the API URL. However, you need to add /v1/chat/completions to the end of its address. That is, in Immersive Translation, 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 an error message indicates that the request frequency has been exceeded, click "Translation Channel ↓" on the main software interface. In the pop-up window, change the pause seconds to 10, meaning that after each translation, wait 10 seconds before initiating the next translation request. A maximum of 6 times per minute prevents 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, it cannot accurately return the translated text in the required format according to the instructions. There may be too many blank lines in the translation results. In this case, try using a larger model, or open Menu -- Tools/Options -- Advanced Options -- Send complete subtitle content when using AI translation, and uncheck it.