Skip to content

From version 1.92 onwards, you can use ByteDance Volcano Engine's models for translation in the software. The specific activation and usage methods are as follows:

Step 1: Login & Registration

Open the website https://console.volcengine.com/auth/login/. If you don't have an account, register first; if you do, log in directly.

Step 2: Real-Name Authentication

There's no way around this. It's a mandatory legal requirement for domestic services. If you want to use it, you have to accept it. After logging in, open the account center address and click on real-name authentication.

https://console.volcengine.com/user/authentication/detail/

You can choose face or bank card authentication.

Step 3: Activate and Claim Benefits

After successful real-name authentication, open the address https://console.volcengine.com/ark/region:ark+cn-beijing/openManagement to get to "Activation Management."

Then click on any "Activate Service." In the opened page, select all models and confirm activation.

Continue to click "Submit."

After that, return to the activation management page and refresh. You will see that all services are activated.

Now that you've activated the services, how do you use them in the code? Keep reading.

Create API Key

Below "Activation Management," you'll see the "API Key" menu. Click on it.

There's one last step: create an "Inference Endpoint." Use this endpoint name to replace the model name where you need to fill it in.

Create Model Inference Endpoint

Still in the same location, look up a bit and you'll see the "Model Inference" menu. Click on it.

After clicking "Create Inference Endpoint," the following interface will pop up. Fill in any name for the endpoint, then click "Add Model." A large number of available models will appear.

As shown below, in the model selection, it's recommended to only select the models that exist in "Activation Management," such as models starting with Doubao-lite, Doubao-pro, and Moon. After selecting, several model versions will appear on the right. You need to select a specific one. It's recommended to only select the versions with numerical names, such as 240515.

Here are my choices:

After creation, return to the "Model Inference" list page. Pay attention to the string of text starting with ep. That's the "Endpoint Name" to be used in the code.

In code usage, this name and the API key are the two required parameters.

Using in pyVideoTrans

https://github.com/jianchang512/pyvideotrans

  1. Upgrade pyVideoTrans to version 1.92+. The address is above.
  2. Open the videotrans/set.ini file, search for zijiehuoshan_model=, and fill in your endpoint name after the = sign. Note that this name must be the automatically generated one.

.

The effect after filling it in should be similar to:

zijiehuoshan_model=ep-20240615073625-zrlbj,ep-41521-auyed

If there are multiple access points, separate them with English commas.

  1. Open the software, go to the "Settings" menu, and select "ByteDance Volcano Engine." Fill in your API key and select the access point to use.
  2. Test it. If there are no problems, you can use it on the main interface.

Usage Notes

For well-known reasons, you must be careful not to send or ask any sensitive questions or content containing sensitive words, as well as unhealthy content, when using this model. The consequences range from returning "I cannot answer this question" to account ban.