ai.withrain.com 个人 AI 中转服务
把 Gemini、OpenRouter、Mistral、NVIDIA NIM 等上游统一封装为 OpenAI 兼容接口,共用一枚 Bearer token。展开任一卡片即可取用端点地址与调用示例;状态灯反映各中转的实时可达性。
全部端点遵循 /v1/chat/completions 规范,仅需替换路径前缀。鉴权统一使用站点 Bearer token。
POST /gemini/v1/chat/completionscurl -X POST https://ai.withrain.com/gemini/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-2.0-flash-exp","messages":[{"role":"user","content":"hi"}]}'POST /openrouter/v1/chat/completionscurl -X POST https://ai.withrain.com/openrouter/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'POST /mistral/v1/chat/completionscurl -X POST https://ai.withrain.com/mistral/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"mistral-large-latest","messages":[{"role":"user","content":"hi"}]}'POST /ghmodels/v1/chat/completionscurl -X POST https://ai.withrain.com/ghmodels/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o","messages":[{"role":"user","content":"hi"}]}'POST /nim/v1/chat/completionscurl -X POST https://ai.withrain.com/nim/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"meta/llama-3.1-70b-instruct","messages":[{"role":"user","content":"hi"}]}'POST /cerebras/v1/chat/completionscurl -X POST https://ai.withrain.com/cerebras/v1/chat/completions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"llama-3.3-70b","messages":[{"role":"user","content":"hi"}]}'部署在本地 Ubuntu 主机、经隧道对外暴露的创作类服务。以下两项尚在部署流程中,卡片可展开查看当前进度。
1. 安装 cloudflared 2. cloudflared tunnel login 3. cloudflared tunnel create withrain-comfyui 4. cloudflared service install <credentials>
comfyui.withrain.com 添加 CNAME 指向隧道地址。1. 拉取 / 构建 GPT-SoVITS 镜像 2. 运行容器,暴露 9874 与模型权重卷 3. 建立隧道:voice.withrain.com → 127.0.0.1:9874 4. CF dashboard 添加 CNAME