#3514 I can't use DeepSeek.

2001:ee0* Posted at: 5 hours ago 👁10

Service returned error: Insufficient Balance:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 972, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
File "videotrans\translator\_deepseek.py", line 52, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

3 Replies

这是由于你的 DeepSeek API 账户余额不足导致的。

  1. 检查并充值账户:登录 DeepSeek 官方平台,检查 API 密钥的剩余额度并进行充值。
  2. 验证配置:在 pyVideoTrans 的“翻译渠道”中,确认你填写的 DeepSeek API Key 和 API URL(例如 https://api.deepseek.com)是正确的。
  3. 切换渠道:在账户余额恢复前,可以暂时使用其他翻译渠道,例如 Google 翻译(需代理)、DeepL 或本地 Ollama 模型。

请查阅相关文档:

I thought it was free to use.

DeepSeek API 并非完全免费。它提供了一定量的免费额度,但超出后需要付费。你的错误信息 "Insufficient Balance" 明确表示账户余额已耗尽。请登录 DeepSeek 官方平台(如平台控制台)检查你的 API 密钥的剩余免费额度或进行充值。在 pyVideoTrans 中,你可以暂时切换到其他免费的翻译渠道,例如 Google 翻译(需要配置网络代理)或使用本地模型(如 Ollama)。请查阅相关文档:DeepSeek AI模型接入

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.

Related resource