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

2408:**:90b4 Posted at: 4 hours ago

This model is not available in your region.
https://openrouter.ai/api/v1
{'model': 'openai/gpt-4o', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192, 'reasoning_effort': 'high'}
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': 'openai/gpt-4o', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192, 'reasoning_effort': 'high'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/video/tiger75815[HD]_musicaldown.com_1786323078.mp4,
输出结果保存到文件夹: D:/video/_video_out/tiger75815[HD]_musicaldown.com_1786323078-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/18632/0ad4ca8161
未选 清理已存在
已启用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 渠道提示你当前所在地区无法使用所选模型(openai/gpt-4o)。日志中“代理地址”为空,而 OpenRouter 属于国外服务,通常需要科学上网才能正常访问,且部分模型对地区有严格限制。

解决办法按以下顺序尝试:

  1. 配置代理
    在主界面「翻译视频」底部的「网络代理」框内,填写可用的代理地址,格式为 http://127.0.0.1:端口号socks5://127.0.0.1:端口号,保存后重新开始任务。
  2. 更换模型
    打开 菜单 → 翻译设置 → OpenRouter,将模型更换为其他可用模型(如 openai/gpt-4o-mini,或尝试其他提供商的模型)。部分模型在特定区域禁用,换一个通常可解决。
  3. 改用其他翻译渠道
    如果代理不可用或仍受限,建议改用国内可直连的翻译渠道,例如 DeepSeek(效果和性价比都较好,可去 https://platform.deepseek.com 获取 API Key),或使用免费的 Google 翻译(需代理)、M2M100 本地翻译(无需联网)。
注意:若你不需要代理,请确保代理框为空;填写无效代理会导致请求失败。

请查阅相关文档:

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