#8128 Authentication Fails, Your api key: ****91dc is invalid (request_id: 6431bda9-808c-42df-a88c-d8282ed069a7)https://api.de

183.251**9 Posted at: 1 hour ago

Authentication Fails, Your api key:


91dc is invalid (request_id: 6431bda9-808c-42df-a88c-d8282ed069a7)
https://api.deepseek.com/v1/
{'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
{'thinking': {'type': 'disabled'}}
Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 90, in _item_task
File "videotrans\translator\_openaicompat.py", line 40, 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:
91dc is invalid (request_id: 6431bda9-808c-42df-a88c-d8282ed069a7)', 'type': 'authentication_error', 'param': None, 'code': 'invalid_request_error'}}

The above exception was the direct cause o
......
back (most recent call last):
File "videotrans\task\only_one.py", line 90, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
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 101, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


91dc is invalid (request_id: 6431bda9-808c-42df-a88c-d8282ed069a7)
https://api.deepseek.com/v1/
{'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
{'thinking': {'type': 'disabled'}}

trk=[TransCreate]: uuid='c5c231c82b', proxy_str='http://127.0.0.1:7890', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Downloads/1.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Downloads/_video_out/1-mp4,
临时文件夹: E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1/tmp/15584/c5c231c82b
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Gemini大模型识别, gemini-3.5-transcribe, 发音语言: 日语,
翻译渠道:DeepSeek,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在下双字幕
代理地址: http://127.0.0.1:7890, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=526299


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 DeepSeek 渠道的 API 密钥无效/认证失败导致的,与软件本身运行无关。

解决方法

  1. 登录 DeepSeek 开放平台,确认你的 API Key 有效且账户有余额(可自定义充值 1 元)。
  2. 重新复制完整的 API Key(注意不要复制出错、不要包含空格或换行)。
  3. 打开软件顶部菜单:翻译设置(Translation Settings) → DeepSeek,删除旧密钥后重新粘贴保存。
  4. 若密钥无误但仍报错,请确认你使用的模型名称在平台可用(如 deepseek-chat / deepseek-reasoner),并检查账户是否欠费或 Key 是否被删除。

日志中模型 deepseek-flash 可能是界面旧配置,不影响认证错误判断;代理地址 http://127.0.0.1:7890 不参与认证,可暂不处理。

请查阅相关文档:

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