v1
latestOpenAPI 3.1.02026-07-267724480.0 KBGemini Generating Content
Generates content using Google Gemini models via the native Gemini API format. Supports text generation, multimodal inputs, thinking/reasoning, function calling, Google Search grounding, structured output, and streaming. CometAPI proxies requests to Google's Gemini API — use this endpoint when you need Gemini-native features not available through the OpenAI-compatible endpoint.
Path parameters
Gemini model ID. Example: gemini-3-flash-preview, gemini-2.5-pro. See the Models page for current options.
The operation to perform. Use generateContent for synchronous responses, or streamGenerateContent?alt=sse for Server-Sent Events streaming.
Request body
Response
Successful response. For streaming requests, the response is a stream of SSE events, each containing a GenerateContentResponse JSON object prefixed with data: .