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 supports these additional levels beyond low/high
- GEMINI_
2_ 5_ FLASH - GEMINI_
2_ 5_ FLASH_ LITE - GEMINI_
2_ 5_ FLASH_ PREVIEW - GEMINI_
2_ 5_ PRO - GEMINI_
3_ FLASH_ PREVIEW - GEMINI_
3_ PRO_ IMAGE_ PREVIEW - GEMINI_
3_ PRO_ 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/Flash: supports low, high (default) Gemini 3 Flash only: also supports minimal, medium
- SUPPORTED_
MODELS