#7442 Invalid API-key provided.:Traceback (most recent call last): File

154.12**4 Posted at: 3 hours ago

Invalid API-key provided.:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 70, in run
File "videotrans\translator\_base.py", line 153, in _run_srt
File "videotrans\translator\_qwenmt.py", line 69, in _item_task
videotrans.configure.excepts.TranslateSrtError: Invalid API-key provided.


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:E:/PY/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 3 hours ago

核心原因是阿里百炼(QwenMT)翻译渠道的 API Key 无效或填写错误。

排查步骤:

  1. 登录阿里云百炼平台,确认账号已开通服务且未欠费。
  2. 检查密钥是否正确复制(无多余空格、换行),并确认该 Key 处于启用状态。
  3. 将密钥重新填写到软件:菜单 -> 翻译设置 -> 阿里百炼,保存后重试。
  4. 若使用子账号,确认已授予百炼(模型服务)相关调用权限。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource