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

2001:**:8d63 Posted at: 2 hours ago

Authentication Fails, Your api key:


cb9b is invalid
https://api.deepseek.com/v1/
{'model': 'deepseek-v4-pro', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}
Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 77, 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:
cb9b 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 83, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 63, 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 82, in _item_task
videotrans.configure.excepts.StopTask: Authentication Fails, Your api key:


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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/nguye/Downloads/SaveTik.co_7670104872619904275.mp4,
输出结果保存到文件夹: E:/1111/SaveTik.co_7670104872619904275-mp4,
临时文件夹: E:/1111/tmp/7624/b86e3c4bc1
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), model_name: base, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:DeepSeek,原始语言:Simplified Chinese,目标语言:Vietnamese, 未选 SendSRT
TTS Service:Edge-TTS (Free), 角色:NamMinh(Male/VN), 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: Hard Subtitles
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:en
root_dir:E:/1111

1 Replies

This is caused by an invalid or expired DeepSeek API key. DeepSeek returned HTTP 401 AuthenticationError, meaning the key ending in cb9b was rejected by the server.

To fix it:

  1. Open Menu -> Translation Settings -> DeepSeek in pyVideoTrans, and check the API key you entered:

    • Make sure there are no extra spaces, blank lines, or hidden characters.
    • Confirm it is the full key, not truncated.
  2. Verify the key on the DeepSeek platform: go to https://platform.deepseek.com/ and check your API keys. If the key is missing, expired, or revoked, create a new one.
  3. Ensure your DeepSeek account has sufficient balance. DeepSeek is a paid API service; if the balance is insufficient, the key will be rejected with an authentication error.
  4. Copy the new key into Menu -> Translation Settings -> DeepSeek, save, and retry the task.

If you are sure the key and balance are correct, please provide the fresh API key again (you can mask part of it) and include the latest log from the logs/ folder for further analysis.

请查阅相关文档:

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

Dondate via PayPal

Related resource