Text Generation with Thinking (Streaming)
POST
/v1beta/models/gemini-2.5-pro:streamGenerateContent
- Stream text generation and return the model thinking process (
thinkingConfig.includeThoughts) - Uses the
gemini-2.5-prostreamGenerateContentendpoint - Supports
systemInstruction,safetySettings, andtools - Official docs: Text generation
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
systemInstruction
object
contents
object[]
Required
generationConfig
object
safetySettings
object[]
tools
object[]
Responses
Success
application/json
object