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

2408:**:7f0f Posted at: 2 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': 8192}
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\task\only_one.py", line 83, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 63, 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 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': 8192}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/video/phuong_thao_1983[HD]_musicaldown.com_1786205983.mp4,
输出结果保存到文件夹: D:/video/_video_out/phuong_thao_1983[HD]_musicaldown.com_1786205983-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/17176/1dd0d4baec
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 删除所有标点符号
语音识别:CAMB AI, model_name: , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:OpenRouter,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址:


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

1 Replies

这是 OpenRouter 服务端返回的区域限制错误,并非 pyVideoTrans 软件本身的故障。OpenRouter 上部分模型(尤其是 google/gemini 系列)会按用户请求来源 IP 所在地域做白名单限制,当前请求 IP 所在区域不被该模型允许,因此直接返回 403。

解决方案

  1. 配置可用代理:OpenRouter 及其上的 Google Gemini 模型在中国大陆默认不可直连,请在软件主界面「网络代理」处填写有效代理(格式如 http://127.0.0.1:7890),保存后重试。当前配置文件显示“代理地址为空”,这是最可能的原因。
  2. 更换 OpenRouter 上其他模型:如果不想用代理,可在 OpenRouter 官网(openrouter.ai)查询该地区可用的模型,然后在「翻译设置 → OpenRouter」中更换模型名称。
  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