#7693 Authentication Fails, Your api key: ****oGlv is invalid (request_id: 3a50bd26-8081-4e57-9d6c-b42e32312b49)https://api.de

23.177**9 Posted at: 1 hour ago

Authentication Fails, Your api key:


oGlv is invalid (request_id: 3a50bd26-8081-4e57-9d6c-b42e32312b49)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'high'}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 98, in _item_task
File "videotrans\translator\_openaicompat.py", line 48, 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:
oGlv is invalid (request_id: 3a50bd26-8081-4e57-9d6c-b42e32312b49)', '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 75, in run
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 155, 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 109, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


oGlv is invalid (request_id: 3a50bd26-8081-4e57-9d6c-b42e32312b49)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'high'}


=
system:Windows-10-10.0.22000-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/ABC

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 DeepSeek API 密钥(api key)无效或错误,导致 401 认证失败。

排除步骤:

  1. 登录 https://platform.deepseek.com/ 检查密钥是否有效、是否已被删除或重置。

  2. 确认账户余额充足(余额为 0 也可能触发认证类错误)。

  3. 在软件中重新填写密钥:菜单 → 翻译设置 → DeepSeek,粘贴完整密钥(注意前后不要有空格、不要漏字符)。

  4. 确认地址为 https://api.deepseek.com/v1/,不要填成其他中转地址。

  5. 保存后重新测试。

    注意该报错与你当前的模型 deepseek-v4-flash 无关,问题仅在密钥本身。

请查阅相关文档:

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