#2068 videotrans.configure._except.StopRetry: Invalid API key

45.149* Posted at: 16 hours ago 👁16

Invalid API key:
Traceback (most recent call last):
File "videotrans\tts\_elevenlabs.py", line 73, in _run
File "elevenlabs\text_to_speech\client.py", line 163, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 210, in convert
File "elevenlabs\text_to_speech\raw_client.py", line 208, in _stream
elevenlabs.core.api_error.ApiError: headers: {'date': 'Tue, 16 Dec 2025 08:48:45 GMT', 'server': 'uvicorn', 'content-length': '67', 'content-type': 'application/json', 'access-control-allow-origin': '', 'access-control-allow-headers': '', 'access-control-allow-methods': 'POST, PATCH, OPTIONS, DELETE, GET, PUT', 'access-control-max-age': '600', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-trace-id': 'cf33c59382502b5b2082b611b34517d4', 'x-region': 'us-central1', 'via': '1.1 google, 1.1 google', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'}, status_code: 401, body: {'detail': {'status': 'invalid_api_key', 'message': 'Invalid API key'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 304, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_elevenlabs.py", line 84, in _item_task
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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 79, in _run
videotrans.configure._except.StopRetry: Invalid API key


=
system:Windows-10-10.0.22621-SP0
version:v3.90
frozen:True
language:zh
root_dir:D:/Fanyi

1 Replies

您在使用 ElevenLabs 进行配音时遇到了“Invalid API key”错误。这表明您输入的 API 密钥无效或已过期。

请按以下步骤解决:

  1. 检查并更新 API 密钥

    • 登录您的 ElevenLabs 账户
    • 确认您的 API 密钥状态是否有效,并确保有足够的配额。
    • 复制正确的新 API 密钥。
  2. 在软件中重新配置

    • 在 pyVideoTrans 主界面,点击菜单栏的 工具/选项 -> 设置
    • 在“配音”选项卡下,找到“ElevenLabs”区域。
    • 将复制的正确 API 密钥粘贴到“密钥”输入框中。
    • 点击“保存”或“确定”。
  3. 重新尝试配音

    • 返回主界面,确保“配音”渠道已正确选择为“ElevenLabs”及您需要的角色。
    • 重新执行翻译配音流程。

如果问题依旧,请确认您的 ElevenLabs 账户订阅是否仍在有效期内,或尝试在 ElevenLabs 官网生成一个新的 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

Trending Questions