Everything is OpenAI-compatible. Point your existing SDK at our base URL.
Sign in to the console, top up, and create an API token.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.apilili.com/v1",
apiKey: "sk-your-token",
});
const res = await client.chat.completions.create({
model: "deepseek-chat",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(res.choices[0].message.content);
Run GET /v1/models with your key for the live list. Currently: DeepSeek V4 Flash/Pro, GLM-5.3 Flash, GLM-4.7, Qwen-Plus, Kimi K3.
Select models also expose an Anthropic-format endpoint. Contact support for details.
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 402 | Insufficient quota — top up in the console |
| 429 | Rate limited |
| 5xx | Upstream error — retry with backoff |