Skip to content

Text Generation (Streaming)​

POST
/v1beta/models/gemini-3-pro-preview:streamGenerateContent
  • Gemini native streamGenerateContent streaming text generation (SSE)
  • Model in the path is gemini-3-pro-preview; replace as needed
  • Optional query parameter alt=sse for Server-Sent Events
  • Official docs: Text generation

Authorizations​

bearer
Type
HTTP (bearer)

Request Body​

application/json
object
object

System instruction

object[]
Required
object
object[]

Responses​

Success

application/json

Playground​

Authorization
Body

Samples​