Skip to content

API Access

Dli.li AI provides OpenAI-compatible endpoints for developers and advanced users. Most clients, plugins, and applications that support the OpenAI protocol can connect directly with your site address and API key.

Official API addresses

TypeURLNotes
Main sitehttps://dli.liMust be used for login, payment, and external account linking
Backup sitehttps://dlizz.comSame page structure as the main site; useful as a fallback site entry
Official default APIhttps://api.dli.li/v1Official default base URL
Official backup APIhttps://api.dlizz.com/v1OpenAI-compatible endpoint; official backup endpoint

Login and payment note

External account linking and on-site payments must use the main site `https://dli.li`. Do not use backup or acceleration domains for those actions.

API recommendation

The official default API is `https://api.dli.li/v1`. The official backup API is `https://api.dlizz.com/v1`.

The three required fields

ItemDescription
Base URLYour site endpoint, usually including /v1
API keyGenerated on the API Tokens page
Model nameA model ID currently available to your account
  1. Authentication
  2. AI Model APIs
  3. Chat APIs
  4. Common Endpoints

Choose an entry by scenario

ScenarioRecommended entry
Writing your first requestAuthentication + API Examples
Confirming domains, multipliers, and settlement rulesSite Links and Billing Rules
Connecting an existing client to the siteAI Apps
Troubleshooting API errors from your programCommon Endpoints + FAQ

Compatibility notes

  • Common OpenAI-style clients usually work directly.
  • Model names follow the names exposed by the site and may differ from the upstream vendor console.
  • Some native-format interfaces may also work, but for most users the official backup endpoint is still the OpenAI-compatible path.
  • Claude-family clients need special attention: most models on this site do not support the /messages interface, and only some Claude models do.

Quick example

bash
curl https://api.dli.li/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      { "role": "user", "content": "Introduce yourself in one short sentence." }
    ]
  }'