Changelog
2.10.0 (2026-06-24)
Features
- Add Agent Platform MCP support to async generate_content_stream (a4772cc)
- [Interactions] Add ComputerUse.disabled_safety_policies (732368f)
- [Models] Add ComputerUse.disabled_safety_policies (a359406)
- Add usage fields for steps (7bb6c72)
- Add video generation and response format parameters. (ec8f22b)
Documentation
- Fix typos across docstrings (63ec5bb)
2.9.0 (2026-06-19)
Major updates
- The interactions implementation has been completely replaced. The public api surface is unchanged. (d830f16)
Features
- Add audioOffset to VoiceActivity (fb785e4)
- Add gemini-3-flash-preview (gemini-3.1, gemini-3.5, gemini-4 are already mapped) to the local tokenizer map. (749f8a1), closes #1972
- Add interimInputTranscription to LiveServerContent (fb785e4)
- Add LanguageAuto, LanguageHints, and adaptationPhrases to AudioTranscriptionConfig (fb785e4)
- Broaden publisher model path check to support all publishers (5d282e6)
- Add ServiceTier to UsageMetadata (45b4963)
- Expose Computer Use API fields (420b5a7)
- Gemma 4 local tokenizer support (ca97c58)
- interaction-api: Add presence_penalty, frequency_penalty, and cached_content to models.proto (05f16fe)
- interaction-api: Rename usage to total_usage in StreamMetadata. (7c331c6)
Bug Fixes
- Add fallback for
aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency (e99ab99), closes #2487
- Fix header (f8f9749)
- Keep live music API keys out of websocket urls (#2564) (c754ebf)
- Make
transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras. (528926b)
- Use .model_copy() instead of deprecated .copy() (216369f)
Features
- Add audioOffset to VoiceActivity (fb785e4)
- Add gemini-3-flash-preview (gemini-3.1, gemini-3.5, gemini-4 are already mapped) to the local tokenizer map. (749f8a1), closes #1972
- Add interimInputTranscription to LiveServerContent (fb785e4)
- Add LanguageAuto, LanguageHints, and adaptationPhrases to AudioTranscriptionConfig (fb785e4)
- Broaden publisher model path check to support all publishers (5d282e6)
Miscellaneous Chores
Major updates
- The interactions implementation has been completely replaced. The public api surface should be unchanged. (d830f16)
Features
- Add ServiceTier to UsageMetadata (45b4963)
- Expose Computer Use API fields (420b5a7)
- Gemma 4 local tokenizer support (ca97c58)
- interaction-api: Add presence_penalty, frequency_penalty, and cached_content to models.proto (05f16fe)
- interaction-api: Rename usage to total_usage in StreamMetadata. (7c331c6)
Bug Fixes
- Add fallback for
aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency (e99ab99), closes #2487
- Fix header (f8f9749)
- Keep live music API keys out of websocket urls (#2564) (c754ebf)
- Make
transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras. (528926b)
- Use .model_copy() instead of deprecated .copy() (216369f)
Documentation
- Announce Automatic Function Calling (AFC) upcoming breaking change warning (4697258)
- Clarify Live API START/END_SENSITIVITY_HIGH/LOW defaults are different in Gemini Live and Gemini Enterprise Agent Platform Live API (a0ec6ab), closes #2555
- Regenerate docs for 2.8.0 (93e7ab1)
2.8.0 (2026-06-03)
Features
- Add Agent Platform MCP support to async generate_content (e3be9af)
- Add transcription language code. (53ea3f6)
- Add TranslationConfig for live translation. (4775314)
- Support ReinforcementTuning in GenAI SDK including ValidateReward API method. (e0854a6)
Bug Fixes
- Include all fields of a single tool (7b1d498)
Documentation
- A comment for field
enable_widget in message GoogleMaps is changed (74d81dd)
- A comment for field
google_maps_widget_context_token in message GroundingMetadata is changed (74d81dd)
- Remove
codegen_instructions.md for simpler maintenance, Gemini API Skills should be the single source of truth (bfa2a49)
- Update README.md for model/SDK Changes and direct to Gemini API Skills (47c1a13)
- Update the docs for 2.7 (bbef98e)
2.7.0 (2026-05-27)
Features
- Additional computer_use field support for vertex. (b4828fa)
- interaction-api: Allow "text/csv" as a supported document mime type for Interaction API. (543137b)
- interaction-api: Enable BigQuery tool in Deep Research config. (5dc17e5)
- Support Reinforcement Tuning in GenAI SDK (0ead888)
2.6.0 (2026-05-21)
Features
- Add
enable_prompt_injection_detection for Computer Use feature for the Gemini API. (b1f632d)
- Add budget_exceeded status (15443c0)
- Add gemini-3.5-flash (15443c0)
- Add new fields (2910346)
Documentation
- Replace
vertexai with enterprise in Client instantiation (c1c6df7)
2.5.0 (2026-05-20)
Features
- Add Gemini 3.5 Flash model to options (706fd02)
2.4.0 (2026-05-17)
Features
- Support Agent and Environment APIs. (ef20d6b)
Bug Fixes
- Output_text for turns that don't end with text. (2afdeff)
- Pass max_line_length to readline() to prevent LineTooLong on large SSE lines with MTLS. (0e8f7bb)
2.3.0 (2026-05-15)
Features
- Add content union to UserInputStep (a5059a8)
- Interaction.{output_text,output_image,output_audio,output_video} (975d16a)
- Migrate Agent Engines, Evaluation, Prompt Management, and Skill features to agentplatform (abb1099)
Documentation
- Refresh generated docs for 2.2 (2ce0298)
2.2.0 (2026-05-12)
Features
- Added missing FunctionCallResultDelta type and
arguments field to the ArgumentDelta type (b0131f8)
2.1.0 (2026-05-12)
Features
- Add gemini-3.1-flash-lite to model options (2d5e0fa)
- Add parameters to video response_format. (4e9d68d)
- Introduce Server Side tools deltas (97d6fe5)
- Support Blocking FunctionCall in Live API in AgentPlatform (Vertex) (955bca6)
- Add support for vertex-lyria models lyria-3-pro-preview & lyria-3-clip-preview (1bc0536)
Bug Fixes
2.0.1 (2026-05-09)
Bug Fixes
- Update response_format field names to snake_case. (97142b1)
2.0.0 (2026-05-07)
⚠ BREAKING CHANGES - Interactions Only
Note: The breaking changes are only in interactions. GenerateContent usage in unaffected.
Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details
- Add steps for interactions (41d8e5b)
- Rename SSE events to interaction.created and interaction.completed (0549c1c)
- Deprecate legacy response_format and publish new polymorphic field. (7fdc9a1)
Documentation
1.75.0 (2026-05-04)
Features
- [Python] Multimodal file search (fe5d69e)
Bug Fixes
- Avoid caching stale token in async mTLS path (4e17a9c)
Documentation
- Fix python docstrings for Image.from_file() to use kwargs (cce5398)
- Update docs (ef26583)
1.74.0 (2026-04-29)
Features
- [Interactions] Add FileCitation.{custom_metadata,media_id,page_number} (aed41ec)
- Add
output_info to BatchJob (7b77ab8)
- Add gemini-3.1-flash-tts-preview model to options (8bdc1c3)
- Add ImageResizeMode for GenerateVideos (317d2af)
- Add new Gemini Deep Research agent models (16fffbd)
- Add one_of support to JSONSchema for Agent Platform (8c00c52)
- Add Vertex Dataset input and output options for batch jobs (d880f92)
- interaction-api: Add grounding tool usage breakdown to Interaction Usage. (b24fb5a)
- Introduce
enterprise to Client constructor and GOOGLE_GENAI_USE_ENTERPRISE (693fd9a)
- Replace the more ambiguous rate field with sample_rate. (88d9b4a)
Bug Fixes
- Catch google-auth wrapped errors (48ac850)
- Removing Python 3.9 support due to EOL (8bc2b10)
- retry: Retry on httpx.TimeoutException with HttpRetryOptions (#2345) (0598bab)
- Streaming method doesn't handle multi-line SSE (f8a2e7e)
- Typing in
AsyncClient.__aexit__, __exit__. (a74dc65)
Documentation
- Add instruction for custom endpoint (dd79904)
- Fix broken link for rate limits (d22ea99)
- Regenerate docs for 1.73.1 (2fb714b)
- Remove duplicate line in genai client docstring. (b1c6026)
- Replace Vertex AI with Gemini Enterprise Agent Platform (7c1ecd5)
- Update doc string to replace
Vertex AI with Gemini Enterprise Agent Platform, update method error message to replace Vertex AI with Gemini Enterprise Agent Platform (previously known as Vertex AI), update converter error message to replace Vertex AI with Gemini Enterprise Agent Platform (413f0f9)
- Update Gemini Enterprise Agent Platform home page url (b02cb95)
- Update README.md with correct Pydantic link (fa97cc6)
- Update README.md with correct Pydantic link (fa97cc6)
1.73.1 (2026-04-14)
Bug Fixes
- Refactor Webhook types in GenAI SDKs for easier useage (3f36ca1)
- Rename
webhooks.retrieve to webhooks.get. (649f4b0)
Documentation
- Update python docs for 1.73.0 (acd3767)
1.73.0 (2026-04-13)
Features
- Add DeepResearchAgentConfig fields (ec8ca87)
- Add webhook and webhookConfig for js and python sdk (ccec350)
- Add webhook_config to batches.create() and models.generate_videos() (772d2fc)
- Wire the webhook into python and js client. (841bf22)
Bug Fixes
- Refine Pyink blank line insertion logic and fix range-based formatting regressions. (b91bda5)
1.72.0 (2026-04-09)
Features
- Add "eu" as a supported service location for Vertex AI platform. (888a731)
- Add Live Avatar new fields (ad1777e)
- Add support for new audio MIME types: opus, alaw, and mulaw (74eb373)
- Add the delete method for the Agent Engine Task Store Service (d821082)
Documentation
- Update python docs for 1.71.0 (e82f9fc)
1.71.0 (2026-04-08)
Features
- Introduce TYPE_L16 audio content and optional fields. (07e932f)
Documentation
- Remove deprecated product recontext model samples from docstrings (aca7dcf)
1.70.0 (2026-03-31)
Features
- Support dedicated TextAnnotationDelta for streaming tool responses (5c820f2)
Bug Fixes
1.69.0 (2026-03-27)
Features
- Add consent_audio and voice_consent_signature and AsyncSession.setup_complete (69a02c4)
- Add custom_metadata to FileSearchResult. (aed1559)
- Add labels field to Veo configs (208a173)
- Add mime type for Audio content (674b837)
- Add model_status to GenerateContentResponse (Gemini API only) (ce86f2b)
- Add part_metadata in Part (Gemini API only) (ce86f2b)
- Add service tier for interactions. (b07002e)
- Add service tier to GenerateContent. (12b404b)
- Add support for more image and audio MIME types in Interactions content (8ec977c)
- Add supported models to the ModelOptions (1ccad7b)
- Autoenable mTLS in environment with bound token (Agent Engine with AgentAuthority) through google-auth migration (except custom client args, custom client or custom ClientSession) (a95d08a)
- genai: Add TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO to TurnCoverage (1ba8e2e)
- Support hyperparameters in distillation tuning (ad38e3a)
- Support rendered_parts in GroundingSupport (ce86f2b)
Bug Fixes
- Support us region routing (8e3e00c)
Documentation
- Update python docs for 1.68. (07ae1b1)
1.68.0 (2026-03-17)
Breaking changes
- [Interactions] Breaking change to Interactions API to refactor TextContent annotations to use specific citation types (6c3379f)
- [Interactions] Breaking change for Interactions, rename ContentDelta unions. (1b03909)
- [Interactions] Breaking change to Interactions API to rename rendered_content to search_suggestions (0e21c4e)
Features
- [Interactions] Add and update 'signature' fields for tool call/result content types. (d896373)
- [Interactions] Support Google Maps in Interactions (68f247c)
- Support include_server_side_tool_invocations for genai. (546440c)
Bug Fixes
Documentation
- Regenerate docs for 1.67.0 (ff7469a)
1.67.0 (2026-03-12)
Features
- Add inference_generation_config to EvaluationConfig for Tuning (1fdb4b8)
- Add live history_config with initial_history_in_client_content (a80babd)
- Add support for referencing registered metrics by resource name in evaluation run API (41b348e)
- Enable language code for audio transcription config in Live API for Vertex AI (c04be0d)
Bug Fixes
- Forward http_options in async_request_streamed to enable retry support (8b3be87)
- Forward http_options in async_request_streamed to enable retry support (#2097) (8b10efb)
1.66.0 (2026-03-03)
Features
- Add gemini-3.1-flash-image-preview model (dd52cc2)
- Support signature for all Interaction tool types (abb388e)
- Update data types from discovery doc. (15666c0)
1.65.0 (2026-02-26)
Features
- Add gemini-3.1-pro-preview to list of models in Interactions (fe86870)
- Add Image Grounding support to GoogleSearch tool (0035182)
- Enable server side MCP and disable all other AFC when server side MCP is configured. (4dd7b16)
- Support more image sizes and resolutions (8b2a4e0)
Bug Fixes
- Change interactions media mime type to enum (breaking change for experimental feature) (e0f3378)
- Handle non-list response_stream in HttpResponse.json property (006042d)
- Handle non-list response_stream in HttpResponse.json property (#1903) (61aec34)
- Make aiohttp an optional dependency, bump aiohttp version upperbound, and ensure HttpOptions.async_client_args propagates to custom aiohttp.ClientSession request args for proxy etc. (b28d144), closes #2090 #2051 #1950
Documentation
- Regenerate docs for 1.64.0 (a023141)
- Update README and codegen_instructions for structured outputs (4d5a978)
1.64.0 (2026-02-18)
Features
- Add UnifiedMetric support to Vertex Tuning evaluation config (9a9908a)
- Support multimodal embedding for Gemini Embedding 2.0 and support MaaS models in Models.embed_content() (Vertex AI API) (af40cc6)
1.63.0 (2026-02-11)
Features
- Add INCOMPLETE status to Interaction. (1a84605)
- Support encryption_spec in tuning job creation configuration for GenAI SDK (057d6f0)
Bug Fixes
- Base_url and global location parsing (2c40555)
- Remove build warning due to extra comma: assertion on a tuple is always true (1cc2c2d)
- Remove debug print statement. (60c0a2f)
- Remove unused import of
websockets (3b82b5f)
Documentation
- Add docstrings to C# and Python SDK Operations methods. (f2e85a3)
- Regenerate docs for 1.62.0 (455ec26)
1.62.0 (2026-02-04)
Features
- Update data types from discovery doc. (089ba97)
Bug Fixes
- Add error handling for live and live music APIs (1148276), closes #668
1.61.0 (2026-01-30)
Features
- Add
include_input query parameter to Get Interaction endpoint. (a0240d9)
- Add registerFiles for you can use gcs files with mldev. (965395b)
- Support distillation tuning (9e49d71)
- Support OSS Tuning in GenAI SDK (51748a7)
Bug Fixes
- Add metadata in batch inlined response (08c47aa)
1.60.0 (2026-01-21)
Features
- Add ModelArmorConfig support for prompt and response sanitization via the Model Armor service (8d1091a)
- Update data types from discovery doc. (4209289)
- Update data types from discovery doc. (7db2c2d)
Documentation
- Regenerate docs for 1.59.0 (351e490)
- Update docs to include interactions and file_search_stores module (a21841c)
1.59.0 (2026-01-15)
Features
- Set the environment variable GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to 'false' within BaseApiClient to disable bound token sharing. (79ac880)
- Support 4:5 and 5:4 aspect ratio in Interactions (1ddd9f1)
Documentation
- Regenerate docs for 1.58.0 (39a8b06)
1.58.0 (2026-01-14)
Features
- Add FileSearchCallContent to Interactions (a882dea)
- Add ImageConfig to GenerationConfig for image generation in Interactions (b61163f)
- Support passing the custom aiohttp.ClientSession through HttpOptions.aiohttp_client (750648f), closes #1662
- Voice activity support (b7b1c2e)
Bug Fixes
- Serialize Pillow images losslessly by default (8d7c74d)
Documentation
- Regenerate docs for 1.57.0 (65018b6)
1.57.0 (2026-01-07)
Features
- [Python] add RegisterFiles so gcs files can be used with genai. (68fa075)
- Add gemini-3-pro-preview support for local tokenizer (48f8256)
- Add PersonGeneration to ImageConfig for Vertex Gempix (c66e0ce)
Bug Fixes
- Remove validation for empty text parts on Chat, this will support keeping the history in chat when the API yields back such a part. (215c852)