GeminiDocumentation Index
Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
Use this file to discover all available pages before exploring further.
generateContent 端點的串流版本。返回 Server-Sent Events。
路徑參數
模型名稱(例如:
gemini-2.5-pro、gemini-2.5-flash)。查詢參數
API 金鑰(標頭驗證的替代方案)。
請求主體
與 生成內容 相同。 串流請求請省略generationConfig.candidateCount 或保持為 1;更大的值會被拒絕,而不會靜默丟棄額外候選結果。