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

2409:895e* Posted at: 17 hours ago

This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.1-pro-preview', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}: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.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 63, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 206, 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 82, in _item_task
videotrans.configure.excepts.StopTask: This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.1-pro-preview', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}


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

1 Replies

该报错的直接原因是 OpenRouter 对 google/gemini-3.1-pro-preview 等 Google 系模型做了地区限制,您当前所在网络区域未被授权访问该模型,所以 API 返回 403 拒绝请求。

解决方案

  1. 配置可用地区节点:在软件主界面「网络代理」或 菜单 → 翻译设置 → OpenRouter/OpenAI 对应配置处,填写一个位于受支持地区(例如美国、日本等)的代理地址,格式如 http://127.0.0.1:端口号,然后重新测试。
  2. 更换 OpenRouter 上不受地区限制的模型:在 OpenRouter 渠道的模型下拉框中,选择 minimax/minimax-m2.7z-ai/glm-5qwen/qwen3-max-thinking 等非 Google 系模型,避免地区限制。
  3. 改用国内可直接访问的翻译渠道:如果您在中国大陆且不方便使用代理,建议改用 DeepSeek、智谱AI、阿里百炼、硅基流动等国内 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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource