Skip to content

Not recommended for beginners or users unfamiliar with Alibaba Bailian

Alibaba Bailian's API is quite confusing. Available models differ by selected region (e.g., North China 2, Singapore, East China). API URLs differ by region. API keys are region-specific — they won't work across regions. Changing the selected model may require changing the endpoint. You may encounter many unexpected issues.

Alibaba Bailian API / Qwen-MT / Qwen-ASR

What is this?

Alibaba Bailian (DashScope) offers various AI models, including:

  • Qwen-MT series (qwen-mt-plus, qwen-mt-turbo): LLMs optimized for machine translation, supporting 92 languages, with glossary intervention, domain hints, and memory capabilities.
  • Qwen text generation models (qwen-plus, qwen-turbo, etc.): General-purpose LLMs, also suitable for subtitle translation.
  • Qwen3-ASR: For speech recognition (STT).

Prerequisites

  • pyVideoTrans software
  • Alibaba Bailian platform account (for API Key)

API Key Setup

Step 1: Register and log in to Alibaba Bailian

Open https://bailian.console.aliyun.com/?tab=model#/api-key and log in with your Alibaba Cloud account.

Step 2: Create an API Key

  1. Navigate to the API Key management page after logging in.
  2. Click "Create API Key".
  3. Copy the generated API Key.

Step 3: Activate Model Service

First-time use requires activating access to the corresponding model. Complete this in the Bailian console.

Configuring in pyVideoTrans

  1. Open Menu → Translation SettingsAlibaba Bailian (Qwen-MT).
  2. Fill in the API Key obtained from the Bailian platform.
  3. Click Workspace in the top-right corner of the page, copy your workspace ID, return to pyVideoTrans, and paste it into TTS Settings → Qwen TTS's workspace ID field.
  4. Click Test to verify the connection.
  5. Save on success.


Qwen-MT is specifically optimized for machine translation, offering higher translation quality.

Available models:

ModelFeatures
qwen-mt-plusHigh-quality translation, suitable for professional use
qwen-mt-turboFaster translation, cost-effective
  1. Select qwen-mt-plus or qwen-mt-turbo in the model selection box.
  2. On the main interface, select Alibaba Bailian as the translation service.

Qwen-MT supports glossary intervention and domain hints for better domain-specific translation. Details: https://bailian.console.aliyun.com/?tab=doc#/doc/?type=model&url=2860790

Using Qwen Text Generation Models for Subtitle Translation

In addition to Qwen-MT, general Qwen text generation models can also be used:

ModelDescription
qwen-plusGeneral high-quality model
qwen-turboGeneral fast model

Select the corresponding model in the model selection box.

Using Qwen3-ASR for Speech Recognition

Also uses Alibaba Bailian's API. Configure the API Key in Translation Settings → Alibaba Bailian, select the speech recognition model, then choose Qwen3-ASR in the Speech Recognition service dropdown.

ItemRecommended Value
API KeyObtain from Alibaba Bailian platform
Translation Modelqwen-mt-turbo (daily) or qwen-mt-plus (high quality)
Speech Recognition Modelqwen3-asr

FAQ

IssueCauseSolution
"Authentication Error"Wrong API KeyRe-obtain API Key from Bailian platform
"Model not found"Wrong model nameUse the recommended model names above
Empty translation resultsModel not activated or insufficient balanceConfirm model activation and top up in Bailian console
Multimodal model errorsNon-text model selectedQwen-MT requires text-only models — don't select multimodal models