Interactions API
- Updated caching documentation to clarify implicit caching support for both stateful (
previous_interaction_id) and stateless conversation modes, with usage now reported underusage.total_cached_tokens. - Added multi-turn model compatibility and safety settings limitations to the Interactions overview.
- Added REST examples for PDF uploads and interactions in document processing, plus File Search store creation, resumable uploads, and queries.
- Updated code samples across function calling, streaming, migration, structured output, and code execution pages to use current model names (e.g.,
gemini-3.5-flash,gemini-2.5-flash-lite) and fixed syntax/template literals. - Added notes on installing the
zodpackage for structured output examples in JavaScript/TypeScript.
Tools & multimodal
- Updated code execution page to reflect current Gemini model support for file input and graph output, plus minor example fixes.
- Revised image understanding segmentation details (now uses polygon coordinates) and added a note on disabling thinking for better results.