Module model

Module model 

Source

Structs§

Candidate
A candidate response
CitationMetadata
Citation metadata for content
CitationSource
Citation source
CountTokensResponse
Response from the Gemini API for token counting
GenerateContentRequest
Request to generate content
GenerationConfig
Configuration for generation
GenerationResponse
Response from the Gemini API for content generation
GroundingChunk
A chunk of grounding information from a source
GroundingMetadata
Grounding metadata for responses that use grounding tools
GroundingSegment
A segment of response text
GroundingSupport
Support information connecting response text to grounding sources
ImageConfig
Config for image generation features.
MapsGroundingChunk
Maps-specific grounding chunk information
MediaResolution
Wrapper struct for per-part media resolution. Allows fine-grained control over the resolution used for individual inline images and PDFs.
MultiSpeakerVoiceConfig
Multi-speaker voice configuration
PrebuiltVoiceConfig
Prebuilt voice configuration
PromptFeedback
Feedback about the prompt
PromptTokenDetails
Details about prompt tokens by modality
SpeakerVoiceConfig
Configuration for a specific speaker in multi-speaker TTS
SpeechConfig
Configuration for speech generation (text-to-speech)
ThinkingConfig
Configuration for thinking (Gemini 2.5 and Gemini 3 series)
UsageMetadata
Metadata about token usage
VoiceConfig
Voice configuration for text-to-speech
WebGroundingChunk
Web-specific grounding chunk information

Enums§

BlockReason
Reason why content was blocked
FinishReason
Reason why generation finished
MediaResolutionLevel
Media resolution level for images and PDFs
ThinkingLevel
Thinking level for Gemini 3 Pro models