#2245 openai.AuthenticationError: Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has

216.238* Posted at: 2 days ago 👁15

API密钥错误,请检查密钥是否正确 Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has been deactivated. If you are the developer for this OpenAI app, please check your email for more information. If you are seeing this error while using another app or site, please reach out to them for more help.', 'type': 'invalid_request_error', 'code': 'account_deactivated', 'param': None}, 'status': 401}:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 218, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_openairecognapi.py", line 66, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 406, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has been deactivated. If you are the developer for this OpenAI app, please check your email for more information. If you are seeing this error while using another app or site, please reach out to them for more help.', 'type': 'invalid_request_error', 'code': 'account_deactivated', 'param': None}, 'status': 401}


=
system:Windows-10-10.0.22631-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/AIkoux/AI/win-pyvideotrans-v3.91

1 Replies

错误信息明确指出您的 OpenAI API 密钥关联的账户已被停用。这通常是由于违反了 OpenAI 的使用政策、未支付账单或账户存在安全问题导致的。

解决方法:

  1. 检查邮箱:登录您注册 OpenAI 账户时使用的邮箱,查找来自 OpenAI 的邮件,了解账户被停用的具体原因。
  2. 联系 OpenAI 支持:访问 OpenAI 帮助中心,根据邮件提示或自行提交申诉,尝试恢复账户。
  3. 更换 API 密钥

    • 如果账户无法恢复,您需要注册一个新的 OpenAI 账户并生成新的 API 密钥。
    • 在 pyVideoTrans 中,进入 设置 -> 语音识别设置翻译设置(取决于您在哪一步使用了 OpenAI),将旧的、已失效的 API 密钥替换为新的有效密钥。
  4. 临时替代方案:在解决 OpenAI 账户问题期间,您可以考虑使用其他语音识别或翻译渠道,例如:

    • 语音识别:切换到 faster-whisper(本地)阿里FunASR(本地)
    • 翻译:切换到 Google微软DeepSeek 等渠道。

请务必先解决 OpenAI 账户问题或更换有效的 API 密钥。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions