#7571 Authentication Fails, Your api key: ****5536 is invalidhttps://api.deepseek.com/v1/

182.100**0 Posted at: 2 hours ago

Authentication Fails, Your api key:


5536 is invalid
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-flash', '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:
5536 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\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 209, 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 88, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/20306/Downloads/SaveInta.com_AQNmZvwvk-31kqO-BneHr8u-bK894M6XukHhKFFcOHMu8JNcgblwItTne8fCb1Q6ypMw5jY29pwZ4xRUhN5bOeDlajf_B9m_ee245-g.mp4,
输出结果保存到文件夹: C:/Users/20306/Downloads/_video_out/SaveInta.com_AQNmZvwvk-31kqO-BneHr8u-bK894M6XukHhKFFcOHMu8JNcgblwItTne8fCb1Q6ypMw5jY29pwZ4xRUhN5bOeDlajf_B9m_ee245-g-mp4,
临时文件夹: C:/Users/20306/Downloads/win-pyvideotrans-v4.10/tmp/160664/9c09e8faf2
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 法语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:法语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:zh
root_dir:C:/Users/20306/Downloads/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 2 hours ago

API Key 无效或过期。

DeepSeek 返回 401 认证失败,提示你填写的 key(尾号 5536)无效。

排查步骤:

  1. 登录 https://platform.deepseek.com/ ,确认账户已充值且有余额。

  2. 在「API Keys」页面重新生成一个新的 API Key(旧 key 可能已被删除或失效)。

  3. 打开软件 菜单 → 翻译设置 → DeepSeek,将新 key 粘贴进去保存(注意不要有多余空格)。

  4. 返回主界面,勾选清理已生成后重试。

注意:你当前使用的是 v4.10,最新版为 v4.13,建议升级后再使用。

请查阅相关文档:

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