GeminiのDocumentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/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 のままにしてください。より大きい値は、追加候補を黙って破棄するのではなく拒否されます。