FAQ
关于灵络API 使用方式、兼容性和接入路径的常见问题解答。 Common questions about LingluoAPI — usage, compatibility, and integration paths.
基础问题General
统一 API 网关和 OpenAI 官方 API 有什么区别?
What's the difference between LingluoAPI and the official OpenAI API?
+
主要区别有 3 点:
Three key differences:
- 对开发者更友好。 很多场景下不需要额外处理复杂的网络访问问题,接入门槛更低。
- More developer-friendly. No need to deal with network access issues in many scenarios — lower barrier to entry.
- 成本更低。 对于开发者和小团队来说,综合价格通常更容易接受。
- Lower cost. Typically more cost-effective for individual developers and small teams.
- 一个入口支持多个模型。 你可以在同一套接入方式下切换 OpenAI、Claude、Gemini 等模型,减少开发和维护成本。
- One endpoint, multiple models. Switch between OpenAI, Claude, Gemini and others from a single integration — less dev and maintenance overhead.
灵络API 和这些 AI 公司有官方合作吗?
Is LingluoAPI officially affiliated with OpenAI, Anthropic, or Google?
+
没有。灵络API 是独立的第三方服务,与 OpenAI、Anthropic、Google 等品牌无官方隶属关系。
No. LingluoAPI is an independent third-party service with no official affiliation with OpenAI, Anthropic, or Google.
什么场景最适合使用灵络API?
What's the ideal use case for LingluoAPI?
+
尤其适合以下场景:
Best fits these scenarios:
- 你希望接入路径更清晰,减少接入障碍
- You want a cleaner, lower-friction integration path
- 你需要一套统一接口来切换不同模型
- You need a single interface to switch between models
- 你在做 AI 编程、Agent 或自动化工具,希望快速验证不同模型效果
- You're building AI coding tools, agents, or automation and want to test different models fast
- 你同时维护多个使用 AI 的项目,需要统一 Key 和配置管理
- You maintain multiple AI-powered projects and want unified key and config management
接入方式Integration
如何使用 OpenAI 兼容 API?
How do I use the OpenAI-compatible API?
+
前往 api.llapi.net 申请 API Key,然后替换这两处:
Get an API Key from api.llapi.net, then replace two values:
const client = new OpenAI({
apiKey: process.env.LLAPI_API_KEY,
baseURL: "https://api.llapi.net/v1"
});
如何把 Claude Code 接入灵络API?
How do I connect Claude Code to LingluoAPI?
+
设置以下两个环境变量即可:
Set these two environment variables:
export ANTHROPIC_API_KEY="your-llapi-key"
export ANTHROPIC_BASE_URL="https://api.llapi.net"
这样 Claude Code 就会通过灵络API 入口发起请求,和其他业务服务共用同一套 Key。
Claude Code will route all requests through LingluoAPI, sharing the same key as your other services.
Anthropic SDK 和 OpenAI SDK 哪个更合适?
Should I use the Anthropic SDK or OpenAI SDK?
+
如果你已经有 OpenAI SDK 代码库,继续用 OpenAI SDK 调即可,改造成本最低。如果你是专门调用 Claude 且不需要同时支持其他模型,原生 Anthropic SDK 也完全支持,只需替换 base_url。
If you have an existing OpenAI SDK codebase, keep using it — lowest migration cost. If you're Claude-only and don't need multi-model support, the native Anthropic SDK works fine too — just replace base_url.
支持的模型Supported Models
灵络API 支持哪些模型?
Which models does LingluoAPI support?
+
当前支持的主流模型包括:
Current supported models include:
| 厂商Provider | 主要模型Models | 调用名示例Example name |
|---|---|---|
| OpenAI | GPT-4o, o3 | gpt-4o, o3 |
| Anthropic | Claude Sonnet, Opus | claude-sonnet, claude-opus |
| Gemini Flash, Pro | gemini-flash, gemini-pro |
|
| xAI | Grok 3, 4 | grok-3, grok-4 |
具体可用模型名以控制台 api.llapi.net 中实际显示为准。
Actual available model names are shown in the api.llapi.net console.
Key 管理Key Management
一个 Key 可以调用所有模型吗?
Can one key access all models?
+
可以。在灵络API 里,你在令牌管理里生成的 Key 可以用于访问所有已开放的模型,只需在请求里修改 model 字段即可切换。
Yes. A key created in Token Management can access all available models. Just change the model field in your request to switch.
Key 可以设置额度限制吗?
Can I set quota limits on a key?
+
可以。在控制台的令牌管理里,你可以为每个 Key 设置配额上限,方便管理多个项目或团队成员的用量。
Yes. In the console's Token Management, each key can have a quota limit set — useful for managing multiple projects or team members.
Key 泄露了怎么办?
What if my key is compromised?
+
进入 api.llapi.net 控制台,在令牌管理里立即禁用旧 Key,然后重新生成一个新的即可。建议将 Key 存储在环境变量或密钥管理工具里,不要直接写入源码。
Go to the api.llapi.net console, disable the old key immediately in Token Management, then generate a new one. Always store keys in environment variables or secret management tools — never hardcode them.
价格与费用Pricing
如何查看价格?
Where can I see pricing?
+
具体定价以控制台里的实际套餐和价格页面为准,不同模型和用量档位的价格会有所差异。整体上,通过统一网关调用的综合成本会比直接购买各厂商官方套餐更低。
Pricing is shown in the console and varies by model and volume tier. Overall, the all-in cost through a unified gateway is typically lower than purchasing each vendor's plans separately.
有免费额度可以试用吗?
Is there a free tier for testing?
+
详情请登录 api.llapi.net 控制台查看当前可用套餐和试用政策。
Please log in to the api.llapi.net console to see current plans and trial availability.
还有其他问题? Still have questions?
直接前往控制台试用,或者从快速接入文档开始。 Head to the console to try it out, or start with the quickstart guide.