全量模型 · 调用统计 · Token 用量
OpenAI 兼容 · 自动拉取 /v1/models
-
用本站 Key 调用 https://bailu.l.cd/v1 即可访问全部聚合模型
https://bailu.l.cd/v1
Authorization: Bearer sk-bailu-...
探测各中转站余额与模型广场价格
sk-bailu-...
Authorization: Bearer
stream:true
stream:false
import OpenAI from "openai" const openai = new OpenAI({ baseURL: "https://bailu.l.cd/v1", apiKey: "sk-bailu-你的专属Key" // 后台「API Key」页生成 }) await openai.chat.completions.create({ model: "gpt-5.6-luna", // 用 /v1/models 查询实际可用模型 messages: [{ role: "user", content: "hi" }] }) # curl 示例 curl https://bailu.l.cd/v1/chat/completions \\ -H "Authorization: Bearer sk-bailu-你的专属Key" \\ -H "Content-Type: application/json" \\ -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"hi"}]}' # 指定渠道(可选,x-relay-id),否则按模型路由/健康度自动择优 curl https://bailu.l.cd/v1/chat/completions \\ -H "Authorization: Bearer sk-bailu-你的专属Key" \\ -H "x-relay-id: 渠道ID" \\ -H "Content-Type: application/json" \\ -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"hi"}]}'
pm2 restart ai-relay-hub