OptionalaudioOptional. If enabled, audio timestamp will be included in the request to the model. This field is not supported in Gemini API.
OptionalcandidateOptional. Number of candidates to generate.
OptionalenableOptional. If enabled, the model will detect emotions and adapt its responses accordingly. This field is not supported in Gemini API.
OptionalenableOptional. Enables enhanced civic answers. It may not be available for all models. This field is not supported in Vertex AI.
OptionalfrequencyOptional. Frequency penalties.
OptionallogprobsOptional. Logit probabilities.
OptionalmaxOptional. The maximum number of output tokens to generate per message.
OptionalmediaOptional. If specified, the media resolution specified will be used.
OptionalmodelOptional. Config for model selection.
OptionalpresenceOptional. Positive penalties.
OptionalresponseOutput schema of the generated response. This is an alternative to
response_schema that accepts JSON Schema.
OptionalresponseOptional. If true, export the logprobs results in response.
OptionalresponseOptional. Output response mimetype of the generated candidate text. Supported mimetype: - text/plain: (default) Text output. - application/json: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
OptionalresponseOptional. The modalities of the response.
OptionalresponseOptional. The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object. If set, a compatible response_mime_type must also be set. Compatible mimetypes: application/json: Schema for JSON response.
OptionalroutingOptional. Routing configuration. This field is not supported in Gemini API.
OptionalseedOptional. Seed.
OptionalspeechOptional. The speech generation config.
OptionalstopOptional. Stop sequences.
OptionaltemperatureOptional. Controls the randomness of predictions.
OptionalthinkingOptional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
OptionaltopKOptional. If specified, top-k sampling will be used.
OptionaltopPOptional. If specified, nucleus sampling will be used.
Generation config.