Gemini Chat
Interface description: Compatible endpoint of Gemini :generateContent API (non-streaming, aggregation returns complete results). The request and response formats follow the Gemini specification; authentication uses the x-goog-api-key header (carried by Gemini SDK by default). Existing Gemini SDK can be accessed by simply replacing the 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
API Key header used by Gemini SDK-compatible endpoints.
Path Parameters
Model ID. First call the "Conversation Model List" interface (GET /api/ai/models/chat) and pass in the data[n].name returned by it.
Body
Model ID, consistent with the path parameter model. The value comes from data[n].name returned by the "Conversation Model List" interface.
Contents list
Generate configuration
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.

