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

2409**3ab0 Posted at: 1 hour ago

This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.8-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'medium'}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 98, in _item_task
File "videotrans\translator\_openaicompat.py", line 48, in _create_completion
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, 'metadata': {'routing_funnel': [{'step': 'Initial Endpoints', 'endpoint_count': 6}], 'failed_routing_step': 'Gate Endpoints with Geo Restrictions'}}}

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 75, in run
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 155, 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 104, in _item_task
videotrans.configure.excepts.StopTask: This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.8-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384, 'reasoning_effort': 'medium'}


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

原因是 OpenRouter 对 google/gemini-3.8-flash 模型做了地域限制,你当前请求所在地区/IP 被拦截,返回 403 This model is not available in your region.,与软件本身配置无关。

解决方案(任选其一):

  1. 更换可访问的模型:在 菜单 → 翻译设置 → OpenRouter 中,把模型名改为 OpenRouter 上对当前地区开放的模型(例如其他非 Google 系模型),保存后重试。
  2. 更换网络出口:使用 OpenRouter 支持的地区的代理/节点。注意需在主界面 对齐控制(Alignment) 行右侧的代理文本框填写 http 代理,例如 http://127.0.0.1:10808,确保代理服务已运行且端口正确。
  3. 改用其他翻译渠道:直接用国内可直连的 AI 渠道,例如 DeepSeek(菜单 → 翻译设置 → DeepSeek 填 API Key,翻译渠道选 Deepseek),无需代理且翻译质量更佳。

注意:若该模型对地区限制严格,即使切换节点也可能持续 403,建议优先采用方案 1 或 3。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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