#6652 This model is not available in your region.https://openrouter.ai/api/v1

2409:**:39f4 Posted at: 2 hours ago

This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.7-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'high'}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 84, 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.PermissionDeniedError: Error code: 403 - {'error': {'message': 'This model is not available in your region.', 'code': 403}}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 68, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 204, 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 89, in _item_task
videotrans.configure.excepts.StopTask: This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.7-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'high'}


=
system:Windows-10-10.0.22631-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 OpenRouter 服务端的模型地区限制错误(HTTP 403),并非 pyVideoTrans 自身故障。你选择的模型 google/gemini-3.7-flash 在你当前网络出口地区不可用,OpenRouter/上游模型提供商拒绝了请求。

解决办法,按顺序尝试:

  1. 更换模型:在 菜单 -> 翻译设置 -> OpenRouter 面板中,将模型从 google/gemini-3.7-flash 改为其他在当前地区可用的模型(例如 minimax/minimax-m2.7z-ai/glm-5qwen/qwen3-max-thinkingmoonshotai/kimi-k2.5 等)。
  2. 使用代理:若你所在地区被限制,可在主界面或代理设置中填写可用的 http://127.0.0.1:端口号socks5://127.0.0.1:端口号,确保出口 IP 位于支持该模型的地区。
  3. 更换翻译渠道:如果 OpenRouter 仍不可靠,建议改用 DeepSeek、OpenAI、Gemini 等已配置好的翻译渠道。

请查阅相关文档:

Thinking...
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

Related resource