#9099 DeepSeek: Authentication Fails, Your api key: ****4LVo is invalid (request_id: a3178734-fc64-4f94-86e0-2413737cf8ba)http

118.74**5 Posted at: 8 hours ago

DeepSeek: Authentication Fails, Your api key:


4LVo is invalid (request_id: a3178734-fc64-4f94-86e0-2413737cf8ba)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None,
Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 99, in _item_task
File "videotrans\translator\_openaicompat.py", line 39, in _create_completion
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:
4LVo is invalid (request_id: a3178734-fc64-4f94-86e0-2413737cf8ba)', 'type': 'authentication_error', 'param': None, 'code': 'authentication_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 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
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 112, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


4LVo is invalid (request_id: a3178734-fc64-4f94-86e0-2413737cf8ba)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None


=
system:Windows-10-10.0.26200-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/AI/win-pyvideotrans-v4.20

1 Replies

#1 DeepSeek reply at 8 hours ago

这是 DeepSeek 渠道返回的 401 认证失败,说明软件中填写的 API Key 无效,与软件本身无关。

解决步骤:

  1. 登录 DeepSeek 开放平台 https://platform.deepseek.com/ ,进入「API Keys」页面,确认该 Key 是否已被删除、禁用或重置过(Key 仅在创建时完整显示一次,若当时未保存,只能重新创建)。
  2. 检查账户余额是否为零或欠费,余额不足时部分渠道会返回认证类错误。
  3. 在软件中重新填写密钥:点击 菜单 → 翻译设置 → DeepSeek,将新 Key 粘贴进去并保存。

    • 注意粘贴时不要带多余空格、换行、引号;
    • 确认 API 地址为 https://api.deepseek.com/v1(末尾不要多写路径)。
  4. 若使用了网络代理,请确认代理正常,且不要给 DeepSeek 配置境外代理节点(国内 API 默认已加入免代理名单)。
  5. 保存后点击该设置窗口中的「测试」按钮验证,通过后再执行翻译任务。

补充提醒:报错信息中显示的 ****4LVo 是密钥末 4 位,可据此比对当前填写的 Key 是否与你平台上的一致,快速定位是否填错或填的是旧 Key。

请查阅相关文档:

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