介绍几款 AI Router,及解除地区限制的办法 / ai #68
Published on HivePostify by @lemooljiang · Sun Aug 09 2026
随着Vcard软跑路(充值不到帐)之后,给OpenAI API充值又再一次成了难题。只是这次不想再做这道题!试着用用中转API吧,至少充值能简便点。
https://openrouter.ai
重新捡回OpenRouter,它创建最早,支持的模型最多,接入也方便。只是后期对地区开始限制,像OpenAI、 Claude的模型在国内和香港都用不了,只能先搁置。
AI Router [OpenRouter](https://openrouter.ai/) 提供多个大模型的API接口
[WorldRouter](https://worldclaw.ai/#world-router) 特朗普家族加密项目 WLFI 与 WorldClaw 合作推出,用户可通过单一账户访问300多个 AI 模型
[9Router](https://github.com/decolua/9router) 免费和低价的AI路由
[API易](https://api.apiyi.com) 企业级专业稳定的API中转站
[EasyRouter](https://easyrouter.io) 轻量化 AI Token 中转枢纽,让开发者一键调用全球主流大模型。
[TogetherAI](https://www.together.ai) Run, train, and serve open-source AI models on Together AI.
[B.AI](https://b.ai) 基于区块链构建的大模型API聚合平台
找了几个AI Router,功能上类似OpenRouter,接入方法也相似,也是填入api key和 baseurl就可以。但是在国内仍是用不了!试试香港的服务器,可以!那么方法也就简单啰。
Nginx反向代理 解除模型对地区限制其实就是找到可用的地区,让它去访问API即可!
具体办法: 1. 在可用地区(比如香港)建一台服务器。 2. 在其上安装Nginx, 建一个网站,并用certbot安装https证书(例如是example.conf)。 3. 反向代理设置。/etc/nginx/conf.d/example.conf这个配置要修改,修改后重启Nginx。具体修改如下:
servername example.com;
location / { proxypass https://inference-api.worldrouter.ai/; #这里以worldrouter为例 proxysslservername on; proxysetheader Host inference-api.worldrouter.ai; #注意此处的修改 proxysetheader Connection ''; proxyhttpversion 1.1; chunkedtransferencoding off; proxybuffering off; proxycache off; proxysetheader X-Forwarded-For $remoteaddr; proxysetheader X-Forwarded-Proto $scheme; }
经过以上三步就可实现Nginx反向代理,在配置API时修改对应的baseURL即可,参考如下: js import OpenAI from "openai"
const WorldRouter = new OpenAI({ apiKey: worldrouterkey, baseURL: "https://example.com/v1", })
又可以愉快地玩耍啰!
Tags: #cn#cn-reader#miao#ai#agent#assistants#airouter#nginx