#6883 Authentication Fails, Your api key: ****3ed0 is invalidhttps://api.deepseek.com/v1/

2602:**:b76b Posted at: 1 hour ago

Authentication Fails, Your api key:


3ed0 is invalid
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-pro', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 65536}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 83, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Authentication Fails, Your api key:
3ed0 is invalid', 'type': 'authentication_error', 'param': None, 'code': 'invalid_request_error'}}

The above exception was the direct cause of the following exception:

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 68, in run
File "videotrans\translator\_base.py", line 107, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 88, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


3ed0 is invalid
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-pro', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 65536}


=
system:Windows-10-10.0.22631-SP0
version:v4.10
frozen:True
language:zh
root_dir:C:/Users/联想/Desktop/rc

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 DeepSeek API Key 无效导致的认证失败,并非软件故障。你的 API Key 填写有误、已过期,或该账号余额不足(DeepSeek 需充值后 key 才生效,最低 1 元)。

请按以下步骤排查:

  1. 打开软件顶部菜单 翻译设置 -> DeepSeek,删除原 Key,重新完整复制粘贴一次(注意不要包含前后空格、换行)。
  2. 登录 DeepSeek 开放平台,确认该 Key 的账号状态正常且已充值可用。
  3. 在平台中再重新生成一个新 Key,替换到软件中并保存。
  4. 确保翻译渠道下拉框选的是 DeepSeek,模型名可选 deepseek-v4-prodeepseek-v4-flash(如果不需要思考模式,请在设置面板中取消勾选 Thinking)。
  5. 若 Key 正确但仍报错,请检查是否多个渠道共用该 Key 并触发了限制,或换个网络环境测试。

如果以上步骤都无误但仍报相同错误,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约30行)以便进一步分析。

请查阅相关文档:

Thinking...
Post Your Reply
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