Stream Generate Content
Generates streamed content with a Gemini model in Google AI Studio.
POST
Query
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.
Body
Arguments
stringrequired
Required. Model endpoint token including suffix, for example `gemini-2.5-flash:streamGenerateContent`.
array of objectrequired
Conversation content for the model. Required by Gemini.
object
Optional system-level instruction content.
Uncommon arguments
object
Optional generation controls such as temperature and max output tokens.
array of object
Optional safety thresholds by harm category.
array of object
Optional tool declarations available to the model.
object
Optional tool execution configuration.
string
Optional cached content resource to ground generation.