Génération de texte (flux)
POST
/v1beta/models/gemini-3-pro-preview:streamGenerateContent
- Génération de texte en flux native Gemini via
streamGenerateContent(SSE) - Le modèle dans le chemin est
gemini-3-pro-preview; remplacez-le si nécessaire - Paramètre de requête optionnel
alt=ssepour Server-Sent Events - Documentation officielle : Text generation
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
systemInstruction
object
Instruction système
Expand
contents
object[]
Required
generationConfig
object
safetySettings
object[]
tools
object[]
Responses
Succès
application/json
object