Gemini

Stream content with the Google Gemini protocol

Returns a streamed JSON array by default. Add alt=sse to receive Server-Sent Events instead.

post/v1beta/models/{model}:streamGenerateContent

Request

  • Base URL: https://api.sandbase.ai
  • URL: https://api.sandbase.ai/v1beta/models/{model}:streamGenerateContent
  • Auth: one of:
    • API key in header x-goog-api-key
    • HTTP bearer
    • API key in query parameter key

Path parameters

modelstring required

Bare Gemini model name, such as gemini-3.5-flash. SandBase adds the google/ catalog prefix.

Query parameters

alt'sse'

Set to sse for Server-Sent Events. Any other or omitted value uses the Google-compatible streamed JSON array.

Request body

toolsobject[]
toolConfigobject
safetySettingsobject[]
cachedContentstring

Passed through when the selected provider supports Gemini context caching.

Response

Gemini response frames

promptFeedbackobject
modelVersionstring
responseIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.