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

2409**53ed Posted at: 59 minutes ago

This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'google/gemini-3.8-flash', 'timeout': 300, 'temperature': 0.2, 'max_tokens': 8192, 'reasoning_effort': 'medium'}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 90, in _item_task
File "videotrans\translator\_openaicompat.py", line 51, 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 67, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 209, 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 95, 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.2, 'max_tokens': 8192, 'reasoning_effort': 'medium'}


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

1 Replies

#1 DeepSeek reply at 59 minutes ago

该错误是由于 OpenRouter 平台针对特定模型(例如 google/gemini-3.8-flash)实施了地域限制,而您当前的 IP 或账户所在区域不在允许范围内,因此 OpenRouter 返回 403 This model is not available in your region.

解决方案:

  1. 更换模型:在该 OpenRouter 渠道配置中,将模型名称换成不受地域限制的其他模型,例如 deepseek/deepseek-chatopenai/gpt-4o-mini 等。
  2. 更换翻译渠道:直接放弃 OpenRouter,改用软件内置的免费渠道(如 Google 翻译)或国内可正常访问的 AI 渠道(如 DeepSeek、智谱 AI),需要先在 菜单-翻译设置 中正确填写对应密钥。
  3. 如需使用 Gemini:直接使用官方 Gemini API(需科学上网),不要通过 OpenRouter;或者在 OpenRouter 中选择不受地域限制的模型。

请注意:在 OpenRouter 设置中填写的模型名称必须是 OpenRouter 平台上真实存在且对当前区域开放的服务,否则仍会报错。如果更换模型后仍有问题,请提供 logs/ 目录下最新的日志文件以便进一步排查。

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