Skip to content

Chat APIs

Official endpoints

  • Official default API: https://api.dli.li/v1
  • Official backup API: https://api.dlizz.com/v1

API recommendation

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

The most common integration path is the OpenAI-compatible chat endpoint:

text
POST /v1/chat/completions

If your client or SDK supports the responses style, you can also use:

text
POST /v1/responses

If you are using a Claude-family client, keep in mind:

  • Most models on this site do not support /messages.
  • Only some Claude models support that interface.
  • By default, prefer compatible calling patterns such as chat/completions or responses.

chat/completions 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": "system", "content": "You are a concise assistant." },
      { "role": "user", "content": "Summarize the purpose of an AI relay platform." }
    ],
    "temperature": 0.7
  }'

responses example

bash
curl https://api.dli.li/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key" \
  -d '{
    "model": "gpt-4.1-mini",
    "input": "Write a short welcome message."
  }'

Check these before calling

  1. The model name is available to your current account.
  2. The address includes /v1.
  3. You are using an API key, not a backend access token.
  4. If a third-party client supports one-click import, refer to the matching guide in AI Apps.