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
Pass an API Key obtained from AiToEarn. For Gemini SDK compatibility, this endpoint uses the x-goog-api-key request header; a Google Gemini API Key is not required.
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.
"gemini-3.5-flash"
Body
Model ID, consistent with the path parameter model. The value comes from data[n].name returned by the "Conversation Model List" interface.
"gemini-3.5-flash"
Contents list
Generate configuration
Response
Native third-party protocol response, not wrapped in the AiToEarn common response envelope.

