Python Gemini API Client Updates to v2.9.0-rc0
sdkaideprecation
feature patch
The Python Gemini API client has released version 2.9.0-rc0, featuring a complete replacement of its interactions implementation with an unchanged public API surface. New features include support for Gemma local tokenizers and exposure of Computer Use API fields. This release also addresses several bugs, including compatibility issues with aiohttp and handling of API keys in websocket URLs.
- →Add ServiceTier to UsageMetadata
- →Expose Computer Use API fields
- →Gemma 4 local tokenizer support
- →Add presence_penalty, frequency_penalty, and cached_content to models.proto
- →Rename usage to total_usage in StreamMetadata
Features (5) ›
- Add ServiceTier to UsageMetadata
- Expose Computer Use API fields
- Gemma 4 local tokenizer support
- interaction-api Add presence_penalty, frequency_penalty, and cached_content to models.proto
- interaction-api Rename usage to total_usage in StreamMetadata
Fixes (5) ›
Add fallback for aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency , closes #2487
- Fix header
- Keep live music API keys out of websocket urls
- Make transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras
- Use .model_copy() instead of deprecated .copy()
Read the original announcement →
https://github.com/googleapis/python-genai/releases/tag/v2.9.0-rc0
Related releases
- Google showcases 7 ways Gemini enhances student productivity in Workspace Gemini Blog ·
- Gemini Live adds new voice-activated productivity features with Spark integration Gemini Blog ·
- Google introduces Gemini 3.5 Transcribe for precise, intelligent speech-to-text Gemini Blog ·
- Google's Python GenAI SDK v2.20.0 adds audio transcription mode and JPEG2000 support Gemini Python SDK Releases ·
- Genkit CLI Developer UI enhanced with improved logging and error visibility Genkit Releases ·
- Gemini for macOS: How to Use Intelligent Dictation Gemini Blog ·