
Official APIInternationalVersion 1
A text integration example from Google documentation using the Interactions API.
Writing & chat
Changing the channel loads its own configuration API BASE URLhttps://generativelanguage.googleapis.com/v1beta
Actual API model IDgemini-3.8-flash
Request method / pathPOST /interactions
Authenticationx-goog-api-key: $GEMINI_API_KEY
Edit request parameters
Edit JSON within the verified parameter ranges. Copy and export stop if types, required fields, or enum values are invalid.
Key configuration fields have not been verified for over 72 hours. Update the sources first.