#9035 阿里百炼API: Invalid API-key provided. For details, see: https://help.aliyun.com/zh/model-studio/error-code#apikey-error,Tra

120.40**2 Posted at: 32 minutes ago

阿里百炼API: Invalid API-key provided. For details, see: https://help.aliyun.com/zh/model-studio/error-code#apikey-error,
Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, in _run_text
File "videotrans\translator\_bailian.py", line 72, in _item_task
videotrans.configure.excepts.TranslateSrtError: Invalid API-key provided. For details, see: https://help.aliyun.com/zh/model-studio/error-code#apikey-error


=
system:Windows-10-10.0.19045-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:D:/.appdata

1 Replies

#1 DeepSeek reply at 32 minutes ago

核心原因:软件向阿里百炼(DashScope)发送了无效的 API Key,常见于密钥填写错误、使用了其它平台的密钥,或密钥已失效、被删除。

排查步骤:

  1. 打开 菜单 → 翻译设置 → 阿里百炼,核对填写的 API Key:

    • 必须是阿里云百炼(DashScope)平台创建的密钥,通常以 sk- 开头;
    • 不要误填阿里云账号的 AccessKey ID/Secret,也不要填其它 AI 平台的 key;
    • 复制时不要带有前后空格或换行。
  2. 登录 https://bailian.console.aliyun.com/ 检查该密钥是否仍存在、是否被删除或重置;如不确定,直接新建一个 API Key 重新填写。
  3. 确认该账号已开通"百炼大模型服务"并完成实名认证,同时账户余额/免费额度未用尽(欠费或额度耗尽也可能返回鉴权类错误)。
  4. 确认站点一致:国内站创建的密钥只能配国内站地址(https://dashscope.aliyuncs.com/compatible-mode/v1),国际站密钥对应国际站地址,二者不可混用。
  5. 若语音识别/翻译/配音用的是不同模型,此处需选 qwen 系列纯文本模型作为字幕翻译模型(多模态模型不能用于字幕翻译)。
  6. 填写保存后,重新点击"测试"或重新执行任务,避免沿用旧缓存。

若已按上述逐项核对(密钥为新创建、账号正常、站点一致)仍报同一错误,暂无法确定具体原因。请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约 30 行报错信息)以便分析。

请查阅相关文档:

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