Skip to content

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 systemInstruction et des contents multi-tours
  • Activez le processus de réflexion via generationConfig.thinkingConfig
  • Documentation officielle : Text generation

Authorizations​

bearer
Type
HTTP (bearer)

Request Body​

application/json
object
object

Instruction système

object[]
Required
object

Configuration de génération

object[]

Paramètres de sécurité

Outils (par ex. appel de fonctions)

Responses​

Succès

application/json

Playground​

Authorization
Body

Samples​