Skip to content

AI Model APIs

This page summarizes the AI model endpoints in the API section. Regular clients, plugins, and scripts usually start with OpenAI-compatible endpoints such as /v1/chat/completions, /v1/responses, and /v1/models.

Recommended entry

If this is your first integration, read [Authentication](/en/api/authentication) first, then start testing with [ChatCompletions Format](/en/api/ai-model/chat/openai/createchatcompletion).

Endpoint categories

CategoryDescriptionRecommended entry
ModelsFetch models available to the current accountList Models
ChatConversational generation, the most common model callChatCompletions Format
ResponsesOpenAI Responses-style endpointResponses Format
Claude MessagesClaude Messages API formatClaude Messages Format
CompletionsTraditional text completion endpointCreate Completion
EmbeddingsText vectorization for retrieval and RAGCreate Embedding
RerankRerank documents or candidate resultsCreate Rerank
ModerationsContent safety moderationCreate Moderation
AudioSpeech synthesis, transcription, and translationCreate Speech
RealtimeRealtime audio session endpointCreate Realtime Session
ImagesImage generation and editingImage Generation
VideosVideo generation and task statusCreate Video

Before you call

  1. Make sure the API address includes /v1, such as https://api.dli.li/v1.
  2. Make sure the request header includes Authorization: Bearer sk-your-api-key.
  3. Make sure the model name is available to the current account.
  4. If a third-party client only supports the OpenAI protocol, prefer the OpenAI-compatible endpoints.