一个入口,接入所有主流模型。兼容 OpenAI 风格调用方式,支持 Claude、GPT、Gemini 等,最小化接入成本,专注于业务逻辑本身。 One endpoint, all major models. OpenAI-compatible API supporting Claude, GPT, Gemini and more. Minimize integration cost and focus on what matters.
无需为不同厂商各自维护一套接入逻辑,统一管理,随时切换。 No more separate integrations per vendor. Manage everything from a single unified entry point.
从小型项目到生产环境,都能从统一入口中受益。 From side projects to production systems, a unified gateway benefits everyone.
兼容 OpenAI 风格调用方式。如果你已经在使用 OpenAI SDK,只需替换 baseURL 和 apiKey 即可开始调用。
Fully OpenAI-compatible. If you already use the OpenAI SDK, just swap baseURL and apiKey — nothing else changes.
把模型切换和接入差异放到边缘层,业务代码不需要为不同供应商做大量适配,减少代码分叉。 Keep vendor differences at the edge layer. Business code stays clean — no per-vendor adapters, no diverging code paths.
统一路由请求,减少多供应商接入时的复杂度,在高负载下保持更稳定的调用体验。 Unified routing reduces multi-vendor complexity. Maintain stable throughput under high load without managing multiple rate limits.
保留你已有的 OpenAI SDK,只改 baseURL 和 apiKey,其余写法完全不变。 Keep your existing OpenAI SDK. Change only the baseURL and apiKey — everything else stays exactly the same.
import OpenAI from "openai";
// ✦ 使用灵络API统一路由 — 只需修改这两行Use LingluoAPI — only these two lines change
const client = new OpenAI({
apiKey: process.env.LLAPI_API_KEY,
baseURL: "https://api.llapi.net/v1"
});
const completion = await client.chat.completions.create({
model: "claude-sonnet", // 或 gpt-4o、gemini-flash…or gpt-4o, gemini-flash…
messages: [{ role: "user", content: "Hello" }]
});
console.log(completion.choices[0]?.message?.content);
从统一入口开始,把接入速度和模型管理都拉回到可控范围内。 Start from a single gateway. Take control of your model integrations and response latency.