Génération de texte
POST
/v1beta/models/gemini-2.5-pro:generateContent
- Génération de texte non flux native Gemini via
generateContent - Prend en charge
systemInstructionet descontentsmulti-tours - Activez le processus de réflexion via
generationConfig.thinkingConfig - Documentation officielle : Text generation
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
systemInstruction
object
Instruction système
Expand
contents
object[]
Required
generationConfig
object
Configuration de génération
Expand
safetySettings
object[]
Paramètres de sécurité
Expand
tools
object[]
Outils (par ex. appel de fonctions)
Responses
Succès
application/json
object