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/completionsIf your client or SDK supports the responses style, you can also use:
text
POST /v1/responsesIf 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/completionsorresponses.
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
- The model name is available to your current account.
- The address includes
/v1. - You are using an API key, not a backend access token.
- If a third-party client supports one-click import, refer to the matching guide in AI Apps.
