Anthropic Chat
Interface description: Compatible endpoint for the Anthropic Messages API (/v1/messages), supporting streaming output (SSE). Request, response and error formats follow Anthropic specifications; authentication uses the x-api-key header (carried by Anthropic SDK by default). Existing Anthropic SDKs can be accessed by simply replacing baseURL and API Key, 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
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
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.
Maximum token value
1 <= x <= 9007199254740991Response
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.

