Skip to main content
POST
Gemini stream generate content (v1beta)

Authorizations

X-API-Key
string
header
required

Path Parameters

model
string
required

Body

application/json
contents
object[] | null
Example:
generation_config
object
model
string
Example:

"gemini-3-pro-preview"

models
string[] | null
provider_configs
object | null
provider_data_collection
string
provider_enforce_distillable_text
boolean | null
provider_ignore
string[] | null
provider_max_completion_price
number | null
provider_max_image_price
number | null
provider_max_prompt_price
number | null
provider_max_request_price
number | null
provider_only
string[] | null
provider_order
string[] | null
provider_quantizations
string[] | null
provider_require_parameters
boolean
provider_sort
string
provider_zdr
boolean | null
safety_settings
object[] | null
system_instruction
object
tool_config
object
tools
object[] | null

Response

200 - application/json

OK

The response is of type string.