Skip to main content

Module google

Module google 

Source

Constants§

CACHING_MODELS
Models that support context caching (min 2048 tokens required) Context caching reduces costs for repeated API calls with similar contexts Reference: https://ai.google.dev/gemini-api/docs/caching
CODE_EXECUTION_MODELS
Models that support code execution (Python) Code execution allows models to write and execute Python code Reference: https://ai.google.dev/gemini-api/docs/code-execution
DEFAULT_MODEL
Default model - using stable version for production reliability
EXTENDED_THINKING_MODELS
Models that support Gemini 3 extended thinking levels (minimal, medium) Only gemini-3-flash-preview supports minimal; stable 3.7/3.8 Flash support low/medium/high with medium as default
GEMINI_3_6_FLASH
GEMINI_3_7_FLASH
GEMINI_3_8_FLASH
GEMINI_3_FLASH_PREVIEW
GEMINI_3_PRO_IMAGE_PREVIEW
IMAGE_GENERATION_MODELS
Models supporting image generation
REASONING_MODELS
Models that support thinking/reasoning capability with configurable thinking_level Based on: https://ai.google.dev/gemini-api/docs/gemini-3 Gemini 3 Pro: supports low, high Gemini 3 Flash Preview: supports minimal, low, medium, high Gemini 3.7/3.8 Flash: supports low, medium (default), high — minimal not supported on 3.8 and will error
SUPPORTED_MODELS