Quickstart

Everything is OpenAI-compatible. Point your existing SDK at our base URL.

1. Get a key

Sign in to the console, top up, and create an API token.

2. Call the API

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);

3. Available models

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.

Anthropic-compatible endpoint

Select models also expose an Anthropic-format endpoint. Contact support for details.

Rate limits & quotas

Errors

CodeMeaning
401Invalid or missing API key
402Insufficient quota — top up in the console
429Rate limited
5xxUpstream error — retry with backoff