OpenAI Chat
Interface description: Compatible endpoint of OpenAI Chat Completions API, supports stream streaming output. The request, response and error formats fully comply with the OpenAI specifications; authentication uses Authorization: Bearer <API Key> (included by OpenAI SDK by default). Existing OpenAI SDK or ecological tools only need to replace the baseURL and API Key to access, and billing is based on AiToEarn points.
Before calling this interface, please request the “Conversation Model List” interface (GET /api/ai/models/chat) to obtain the currently available model list.
Authorizations
Used by OpenAI-compatible endpoints. Example: Bearer .
Body
Message list
1Model ID. First call the "Conversation Model List" interface (GET /api/ai/models/chat) and pass in the data[n].name returned by it.
Whether to stream the return
Response
Native third-party protocol response or SSE data, not wrapped in the AiToEarn common response envelope.
Native third-party protocol response, not wrapped in the AiToEarn common response envelope.

