interface GenerateContentSpecificFieldsIf true, enables enhanced civic answers feature.
Configuration for image generation.
Returns the log probabilities of the top candidate tokens at each generation step. The model's chosen token might not be the same as the top candidate token at each step. Specify the number of candidates to return by using an integer value in the range of 1-20.
If true, returns the log probabilities of the tokens that were chosen by the model at each step. By default, this parameter is set to false.
Desired MIME type of the generated candidate content.
The requested modalities of the response. Represents the set of modalities that the model can return. An empty list is equivalent to requesting only text.
The schema that the generated response should match.
Can be a Zod schema or a JSON Schema object.
When set, the response will be structured according to this schema
and responseMimeType will automatically be set to "application/json".
Inference service tiers. "priority" offers highest reliability for higher rates. "flex" offers a discount for preemptable processing. Other values are treated as the standard service tier.
Speech generation configuration. You can use either Google's definition of the speech configuration, or a simplified version we've defined (which can be as simple as the name of a pre-defined voice).
Configuration for the model's thinking process