unstale

pypi / google-genai

google-genai

What changed in google-genai 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

34 breaking8 security8 deprecations257 new APIs and options3 performance21 behavior and defaults1 tooling103 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

google-genai 354 changes

Breaking changes 6

  • The field changes from string to the CodeExecutionResultStepResult union; code must check the variant and read the string from it.

    3.0.0release notes

  • Gemini Developer API clients now default to v1 instead of v1beta; Gemini Enterprise clients remain on v1beta1.

    3.0.0release notes

  • GenerateVideos is disabled for the Gemini API.

    3.0.0release notes

  • Set this environment variable to httpx to switch the SDK's default client back to httpx after installing the httpx extra.

    3.0.0release notes

  • httpx2 is now the required dependency and default HTTP client; httpx is no longer installed by default.

    3.0.0release notes

  • By default, httpx2 uses the OS certificate trust store instead of certifi when SSL_CERT_FILE and SSL_CERT_DIR are not set.

    3.0.0release notes

Deprecations 1

  • Non-interactions names in this module are deprecated.

    3.4.0release notes

New APIs and options 25

  • Function result schemas are added to the public SDK.

    3.6.0release notes

  • Tool retrieval is added to the public SDK.

    3.6.0release notes

  • An auth-token client is generated in the public SDKs.

    3.5.0release notes

  • Experimental SDK support adds Live Interactions over WebSocket and WebRTC.

    3.5.0release notes

  • Supports batch inputs and usage metadata for Gemini embedding models.

    3.4.0release notes

  • Exposes static file processing options in Interactions.

    3.4.0release notes

  • Adds tool search types to the Interactions SDKs.

    3.4.0release notes

  • Adds the interactions-eap packaging flavor.

    3.3.0release notes

  • Adds gemini-4-hydrogen to the interactions Model enum.

    3.3.0release notes

  • Adds XHIGH and xhigh as thinking levels across GenAI SDKs and CLI.

    3.3.0release notes

  • Adds the Decisions API to the GenAI SDKs.

    3.2.0release notes

  • Introduces custom_config in the SDKs and CLI.

    3.2.0release notesrelease notes

  • Introduces environment_key in the SDKs and CLI.

    3.2.0release notesrelease notes

  • Introduces self-hosted BYOS mode in the SDKs and CLI.

    3.2.0release notesrelease notes

  • Introduces system_instruction in the SDKs and CLI.

    3.2.0release notesrelease notes

  • Adds truncated to EmbedContentResponse for the Gemini Enterprise API.

    3.1.0release notes

  • Adds usage_metadata, including traffic_type, to EmbedContentResponse for the Gemini Enterprise API.

    3.1.0release notes

  • Adds gemini-omni-1.2-flash as an available model.

    3.1.0release notes

  • Adds gemini-4-carbon and gemini-omni-1.2-flash to the Interactions Model enum.

    3.1.0release notes

  • Adds proactive_video to ProactivityConfig for the Live API.

    3.1.0release notes

  • Adds xhigh as a thinking level for Interactions.

    3.1.0release notes

  • Adds the source_text field.

    3.0.0release notes

  • Adds the MALFORMED_RESPONSE finish reason.

    3.0.0release notes

  • Set the API version for Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code.

    3.0.0release notes

  • Interactions adds support for Office and OpenDocument MIME types.

    3.0.0release notes

Behavior and default changes 3

  • Uses gemini-omni-1.2-flash as the default model for this command.

    3.1.0release notes

  • Passing api_version in HttpOptions sets the API version and takes precedence over GOOGLE_GENAI_API_VERSION.

    3.0.0release notes

  • The transcribe command now uses gemini-3.5-transcribe as its default model.

    3.0.0release notes

Tooling 1

  • Live Interactions types are generated in the public SDKs.

    3.5.0release notes

Fixes and other changes 18

  • Reparsing merged continuation responses excludes the derived parsed field.

    3.6.0release notes

  • The response is kept when parsed JSON contains an oversized integer.

    3.6.0release notes

  • When retries are enabled, the API client retries google.auth TransportError.

    3.6.0release notes

  • Automatic function calling now parses string arguments for datetime, date, time, timedelta, and UUID.

    3.5.0release notes

  • Removes the per-line length cap when reading streams.

    3.4.0release notes

  • Stops the finalizer from scheduling an unawaited aclose task.

    3.4.0release notes

  • Awaits asyncio.sleep during async HTTPX upload retry backoff.

    3.4.0release notes

  • Keeps one httpx connection pool per event loop.

    3.4.0release notes

  • Resolves $defs references per path for recursive union schemas.

    3.4.0release notes

  • Ignores braces inside JSON strings when buffering raw stream lines.

    3.4.0release notes

  • Splits stream lines only on CR, LF, and CRLF.

    3.4.0release notes

  • Merges case variants of the User-Agent and x-goog-api-client headers.

    3.4.0release notes

  • Resolves Vertex Live connect authentication off the event loop and caches ADC credentials.

    3.4.0release notes

  • Adds missing enum values to FinishReason.

    3.3.0release notes

  • Adds missing enum values to ReinforcementTuningThinkingLevel.

    3.3.0release notes

  • File uploads now respect the configured and default API version.

    3.0.0release notes

  • Preserves unknown fields and open-union variants when handling Interactions models.

    3.0.0release notes

  • Corrects retry counting so retries equal attempts minus one.

    3.0.0release notes

google-genai 2209 changes

Breaking changes 14

  • Drops support for Python 3.10.

    2.34.0release notes

  • Inline bytes in Live send_tool_response are now Base64-encoded.

    2.32.0release notes

  • Unsupported 2.5 and 1.6 models are removed from Interactions model options.

    2.30.0release notes

  • Removes an unused field from FunctionResultDelta.

    2.23.0release notes

  • Changes speech_config to a structured object.

    2.18.0release notes

  • Removes cached_content from interactions.

    2.11.0release notes

  • Removes frequency_penalty from interactions.

    2.11.0release notes

  • Removes presence_penalty from interactions.

    2.11.0release notes

  • Renames usage to total_usage in StreamMetadata for the interaction API.

    2.9.0release notes

  • Fixed the Steps optionality.

    2.1.0release notes

  • Response format field names are now snake_case, so developers should use snake_case when writing them.

    2.0.1release notes

  • The SSE event was renamed to interaction.completed.

    2.0.0release notes

  • The SSE event was renamed to interaction.created.

    2.0.0release notes

  • A new polymorphic field is published for interactions.

    2.0.0release notes

Security 4

  • Prevents per-request Authorization and X-Server-Timeout from leaking into client default headers.

    2.34.0release notes

  • Matches the mTLS endpoint to each transport's SSL context, including plain aiohttp.

    2.31.0release notes

  • Keeps live music API keys out of websocket URLs.

    2.9.0release notes

  • Adds prompt injection detection for the Computer Use feature in the Gemini API.

    2.6.0release notes

Deprecations 7

  • Marks REQUIRES_ACTION as deprecated.

    2.19.0release notes

  • Logs warnings that automatic function calling is meant for chat, not direct use in the models module.

    2.18.0release notes

  • Using prompt, text, or image arguments with Imagen edit_images now emits a deprecation warning; the API will be removed in the next major version.

    2.14.0release notes

  • Using prompt, text, or image arguments with Imagen generate_images now emits a deprecation warning; the API will be removed in the next major version.

    2.14.0release notes

  • Using prompt, text, or image arguments with Imagen generate_videos now emits a deprecation warning; the API will be removed in the next major version.

    2.14.0release notes

  • LiveConnectConfig.GenerationConfig now emits a deprecation warning and will be removed in the next major version.

    2.14.0release notes

  • The legacy response_format field is deprecated.

    2.0.0release notes

New APIs and options 134

  • Adds automatic_continuation to interactions.create in the Python SDK.

    2.34.0release notes

  • Declares continuation_ids on Interaction.

    2.34.0release notes

  • Adds support for continuation_token.

    2.34.0release notes

  • Adds api_version support in LiveConnectConfig.http_options.

    2.34.0release notes

  • Adds base_url support in LiveConnectConfig.http_options.

    2.34.0release notes

  • Adds headers support in LiveConnectConfig.http_options.

    2.34.0release notes

  • Adds support for the requires_continuation status.

    2.34.0release notes

  • Adds support for video understanding in Gemini Developer API.

    2.34.0release notes

  • Adds a parameter for video upscale tasks.

    2.34.0release notes

  • Includes AudioContent, DocumentContent, and VideoContent in FunctionResultSubContent.

    2.33.0release notes

  • Adds store to GenerateContentConfig for the Gemini Developer API.

    2.33.0release notes

  • Supports httpx2 through the GOOGLE_GENAI_HTTP_CLIENT configuration.

    2.33.0release notes

  • Adds labels to LiveConnectConfig.

    2.33.0release notes

  • Adds base_voice to PromptedVoice in the GAOS SDK.

    2.32.0release notes

  • Adds generation_output_config to GenerateContentConfig.

    2.32.0release notes

  • Adds Live API in-session context updates and types across GenAI SDKs.

    2.32.0release notes

  • Adds gemini-4-argon to the Model enum, making it available as a model choice.

    2.31.0release notes

  • Generate content and generate content stream can automatically resume continuation tokens; this behavior is disabled by default.

    2.30.0release notes

  • New fields provide billable token counts.

    2.30.0release notes

  • Interactions adds a CONTINUATION_REQUIRED status.

    2.30.0release notes

  • The Interactions interaction.status_update event now includes a continuation token.

    2.30.0release notes

  • Streaming continuation usage metadata is accumulated and exposes initial_prompt_token_count.

    2.30.0release notes

  • InteractionStatusUpdate events now include usage.

    2.30.0release notes

  • RealtimeInputConfig gains interimTranscriptTimestampEnabled.

    2.30.0release notes

  • Transcription gains startOffset and endOffset fields.

    2.30.0release notes

  • Environment network config now supports setting allowlist to disabled.

    2.29.0release notes

  • Interactions now supports continuation_token.

    2.28.0release notes

  • The Interactions Model enum adds lyria-3.5, gemini-omni-1.1-flash, and gemini-omni-flash-preview.

    2.28.0release notes

  • GenerateContent now supports continuation_token.

    2.27.0release notes

  • Adds from_environment support and a dedicated environments module.

    2.26.0release notes

  • Adds gcs_metrics_uri for exporting tuning job metrics.

    2.26.0release notes

  • Adds the Gemini 3.8 Flash Lite TTS model to the SDKs.

    2.26.0release notes

  • Adds the Gemini 3.8 Flash TTS model to the SDKs.

    2.26.0release notes

  • Adds labels support for Gemini API GenerateContent.

    1.0.0, 2.26.0release notesrelease notes

  • Adds labels to LiveClientSetup.

    2.26.0release notes

  • Supports field.value_field syntax for map add_union_value annotations.

    2.25.0release notes

  • Exposes SpeechAnnotation in public GenAI SDKs.

    2.25.0release notes

  • Exposes SpeechMetadata in public GenAI SDKs.

    2.25.0release notes

  • Adds sample_audio to Voice in the GAOS SDK.

    2.25.0release notes

  • Adds the Voices API resource to the GAOS SDK.

    2.25.0release notes

  • Credential APIs are added to gaos and wired to the SDK.

    2.24.0release notes

  • File upload and download for environments are implemented across the Python and TypeScript SDKs.

    2.24.0release notes

  • Added to the interactions schema and SDKs.

    2.24.0release notes

  • Adds from_environment support for copying environments.

    2.23.0release notes

  • Supports dynamic turn completion in live.py receive() via interaction_status.

    2.23.0release notes

  • Added the Gemini 3.8 Flash model to SDKs and updated Flash model descriptions.

    2.22.0release notes

  • Adds support for the audio/webm MIME type.

    2.21.0release notes

  • Adds a destination parameter to support streaming downloads to disk or file-like objects.

    2.21.0release notes

  • Exposes ProcessingCallStep in the Interactions SDK.

    2.21.0release notes

  • Exposes ProcessingResultStep in the Interactions SDK.

    2.21.0release notes

  • Adds SDK support for translation_config for GEAP.

    2.21.0release notes

  • Adds Video Understanding support to the Interactions API.

    2.21.0release notes

  • Adds AudioTranscriptionConfigMode for configuring audio transcription.

    2.20.0release notes

  • Adds support for environment files.

    2.20.0release notes

  • Adds a helper for downloading Scotty files.

    2.20.0release notes

  • Adds TYPE_JPEG2000 to the VideoContent.MimeType enum.

    2.20.0release notes

  • Adds the VERBATIM and SMART mode enum to AudioTranscriptionConfig.

    2.19.0release notes

  • Adds BidiGenerateContentSetup.

    2.19.0release notes

  • Adds extension task parameters.

    2.19.0release notes

  • Adds IDLE as a state to the live connection status enum.

    2.19.0release notes

  • Adds step_count to ReinforcementTuningHyperParameters.

    2.19.0release notes

  • Adds enable_data_retention to ToolParallelAiSearch.

    2.19.0release notes

  • Adds the VERBATIM and SMART mode enum to TranscriptionConfig.

    2.19.0release notes

  • Adds video resolution parameters.

    2.19.0release notes

  • Adds gemini-3.7-flash as a model developers can use.

    2.18.1release notes

  • The FunctionDeclaration parser now supports JSON schema.

    2.18.0release notes

  • Supports injecting an httpx2 client.

    2.18.0release notes

  • Adds interaction_status to LiveServerContent.

    2.18.0release notes

  • Adds TOO_MANY_TOOL_CALLS as a FinishReason enum value.

    2.17.0release notes

  • Adds the Gemini Robotics ER 2 Preview model.

    2.17.0release notes

  • Adds a top-level errors array to the Interaction resource (iAPI).

    2.17.0release notes

  • Adds an environment resource and wires the environment service into the SDK, making the service available to developers.

    2.16.0release notes

  • Adds support for places and routing grounding_types with the GoogleMaps Tool.

    2.16.0release notes

  • Adds a flat language_codes field to AudioTranscriptionConfig.

    2.15.0release notes

  • Allows an API key to be used together with project and location for enterprise mode.

    2.15.0release notes

  • Adds audio_transcription_config to GenerationConfig for configuring audio transcription.

    2.14.0release notesrelease notes

  • Adds audio_transcription to Part for audio transcription.

    2.14.0release notesrelease notes

  • A new custom_vocabulary field is available in the Live API.

    2.13.0release notes

  • A model selector was added.

    2.13.0release notes

  • Custom clients can use mTLS with google auth mtls.get_default_ssl_context.

    2.13.0release notes

  • The interaction proto now includes a queued status.

    2.13.0release notes

  • Adds AntigravityAgentConfig to OpenAPI schema overlays and regenerates SDKs.

    2.12.0release notes

  • Adds CodeMenderAgentConfig to interactions.

    2.12.0release notes

  • Adds a trigger resource.

    2.12.0release notes

  • Adds a Triggers resource to the GoogleGenAI client.

    2.12.0release notes

  • Supports function declarations during Agent creation.

    2.11.0release notes

  • Adds response_format to GenerationConfig.

    2.11.0release notes

  • Adds Translation_config to GenerationConfig.

    2.11.0release notes

  • Exposes labels for interactions.

    2.11.0release notes

  • Adds environment_id to network config.

    2.11.0release notes

  • Adds a retrieval result step and new fields to maps and search results.

    2.11.0release notes

  • Exposes safety_settings for interactions.

    2.11.0release notes

  • Adds Tool.exa_ai_search for the Gemini Enterprise API.

    2.11.0release notes

  • Adds disabled_safety_policies to ComputerUse in Interactions.

    2.10.0release notes

  • Adds disabled_safety_policies to ComputerUse in Models.

    2.10.0release notes

  • Adds response format parameters.

    2.10.0release notes

  • Adds usage fields for steps.

    2.10.0release notes

  • Adds parameters for video generation.

    2.10.0release notes

  • Adds adaptationPhrases to AudioTranscriptionConfig.

    2.9.0release notes

  • Adds audioOffset to VoiceActivity.

    2.9.0release notes

  • Adds cached_content to models.proto for the interaction API.

    2.9.0release notes

  • Exposes Computer Use API fields.

    2.9.0release notes

  • Adds frequency_penalty to models.proto for the interaction API.

    2.9.0release notes

  • Adds gemini-3-flash-preview to the local tokenizer map.

    2.9.0release notes

  • Adds local tokenizer support for Gemma 4.

    2.9.0release notes

  • Adds interimInputTranscription to LiveServerContent.

    2.9.0release notes

  • Adds LanguageAuto to AudioTranscriptionConfig.

    2.9.0release notes

  • Adds LanguageHints to AudioTranscriptionConfig.

    2.9.0release notes

  • Adds presence_penalty to models.proto for the interaction API.

    2.9.0release notes

  • Adds ServiceTier to UsageMetadata.

    2.9.0release notes

  • The GenAI SDK supports ReinforcementTuning.

    2.8.0release notes

  • A transcription language code can now be specified.

    2.8.0release notes

  • TranslationConfig is available for live translation.

    2.8.0release notes

  • ValidateReward is available as an API method.

    2.8.0release notes

  • The BigQuery tool is now enabled in Deep Research configuration.

    2.7.0release notes

  • Vertex support was added for the computer_use field.

    2.7.0release notes

  • The GenAI SDK now supports Reinforcement Tuning.

    2.7.0release notes

  • text/csv is now a supported document MIME type for the Interaction API.

    2.7.0release notes

  • Adds the budget_exceeded status.

    2.6.0release notes

  • Adds support for the gemini-3.5-flash model.

    2.5.0release notesrelease notes

  • Support for Agent and Environment APIs was added.

    2.4.0release notes

  • Adds output_audio to Interaction.

    2.3.0release notes

  • Adds output_image to Interaction.

    2.3.0release notes

  • Adds output_text to Interaction.

    2.3.0release notes

  • Adds output_video to Interaction.

    2.3.0release notes

  • Adds a content union to UserInputStep.

    2.3.0release notes

  • Added the arguments field to ArgumentDelta.

    2.2.0release notes

  • Added support for Blocking FunctionCall in the Live API on AgentPlatform (Vertex).

    2.1.0release notes

  • Added gemini-3.1-flash-lite to the available model options.

    2.1.0release notes

  • Added Vertex support for the lyria-3-clip-preview model.

    2.1.0release notes

  • Added Vertex support for the lyria-3-pro-preview model.

    2.1.0release notes

  • Added parameters to video response_format.

    2.1.0release notes

  • Introduced Server Side tools deltas.

    2.1.0release notes

  • Interactions now support steps.

    2.0.0release notes

Performance 3

  • Lazily imports the interactions API to speed up importing google.genai.

    2.18.0release notes

  • Model validators are built on first use instead of at import.

    2.18.0release notes

  • Stops importing the requests HTTP stack at module scope.

    2.18.0release notes

Behavior and default changes 10

  • The chats module now automatically resumes continuation tokens.

    2.30.0release notes

  • Default HTTP timeouts are raised so long-running requests are not killed client-side.

    2.30.0release notes

  • Vertex AI interactions client now uses the default timeout of None instead of 5s.

    2.26.0release notes

  • Exposes VoiceConfig.voice in public GenAI SDKs.

    2.25.0release notes

  • Makes the deferred service tier publicly available on Vertex.

    2.18.0release notes

  • ASR fields are now public in v1main and Interactions.

    2.13.0release notes

  • Embedding responses for gemini-embedding-2 now populate prompt token counts per modality.

    2.12.0release notes

  • Async generate_content_stream now supports Agent Platform MCP.

    2.10.0release notes

  • Broadens the publisher model path check to support all publishers.

    2.9.0release notes

  • Async generate_content supports Agent Platform MCP.

    2.8.0release notes

Fixes and other changes 37

  • Resolves PEP 563 string annotations when invoking AFC tools.

    2.34.0release notes

  • Aligns the SDK User-Agent and x-goog-api-client headers.

    2.34.0release notes

  • Honors this setting in Google Auth sessions and skips mTLS URL rewriting for multi-regional .rep.googleapis.com endpoints.

    2.33.0release notes

  • Honors explicit zero values in delay fields.

    2.33.0release notes

  • Honors HttpRetryOptions for aiohttp connection errors in async requests.

    2.33.0release notes

  • Adds support for Python 3.15.

    2.33.0release notesrelease notes

  • Synchronizes this enum with InteractionStatus.

    2.32.0release notes

  • Responses containing JSON objects in Any-typed fields no longer crash during parsing.

    2.32.0release notes

  • Clears continuation state and preserves prompt feedback when a continuation hop returns no candidates.

    2.31.0release notes

  • Retries dropped hops, stops on prompt_feedback, and preserves real errors in generate_content.

    2.31.0release notes

  • Fixes parsing of function declarations that use union types.

    2.31.0release notes

  • Fixes grounding metadata merging during automatic continuation in generate content and generate content stream.

    2.31.0release notes

  • Concatenates output_text across multi-step model responses in a turn.

    2.30.1release notes

  • Incomplete continuation stream turns are no longer recorded in curated chat history.

    2.30.0release notes

  • The env schema now maps keys to EnvVar or string.

    2.30.0release notes

  • The httpx and websocket transports now use the mTLS endpoint.

    2.30.0release notes

  • A stale checkpoint token is discarded when the finish reason is non-resumable.

    2.30.0release notes

  • Intermediate CONTINUATION finish_reason values are cleared during streaming continuation.

    2.30.0release notes

  • Streaming generation resumes from the latest checkpoint continuation token after mid-stream errors or cutoffs.

    2.30.0release notes

  • The direct AFC warning is logged only when functions are present in the config.

    2.29.0release notes

  • Trigger.interaction now uses CreateAgentInteraction.

    2.26.0release notes

  • TriggerCreateParams.interaction now uses CreateAgentInteraction.

    2.26.0release notes

  • The --usage schema now includes auto-assigned flag shorthands.

    2.26.0release notes

  • Functions are no longer run once the automatic function calling budget is spent.

    2.24.0release notes

  • Improves automatic function calling in chat, including fixes for generate_content_stream.

    2.18.0release notes

  • Automatically populates propertyOrdering for ResponseSchema and ResponseJsonSchema in the Dotnet SDK.

    2.17.0release notes

  • Fixes normalization of Interactions inside triggers.

    2.12.1release notes

  • Fixes an event loop mismatch in the GenAI SDK.

    2.11.0release notes

  • Avoids shadowing the built-in list in Python 3.14.

    2.11.0release notes

  • Interactions transform accepts either a dict or a list of dicts.

    2.11.0release notes

  • Adds a fallback when aiohttp.readline does not support max_line_length, preserving backward compatibility with aiohttp as an optional dependency.

    2.9.0release notes

  • Makes transformers an optional dependency for local tokenizers and adds other dependencies to local-tokenizer-extras.

    2.9.0release notes

  • All fields of a single tool are now included.

    2.8.0release notes

  • Passes max_line_length to readline() to prevent LineTooLong on large SSE lines with MTLS.

    2.4.0release notes

  • Fixed output_text for turns that don't end with text.

    2.4.0release notes

  • Migrates Agent Engines, Evaluation, Prompt Management, and Skill features to agentplatform.

    2.3.0release notes

  • Added the missing FunctionCallResultDelta type.

    2.2.0release notes

google-genai 1172 changes

Breaking changes 14

  • Replaces the more ambiguous rate field with sample_rate.

    1.74.0release notes

  • Renames webhooks.retrieve to webhooks.get, changing the method developers use to retrieve a webhook.

    1.73.1release notes

  • Interactions ContentDelta unions were renamed, requiring developers to update references to those unions.

    1.68.0release notes

  • Interactions renamed rendered_content to search_suggestions; developers must update references to the field.

    1.68.0release notes

  • Interactions API annotations now use specific citation types, changing how developers represent citations in TextContent.

    1.68.0release notes

  • The lower bound is set too low, causing the SDK to break in some environments; manually upgrading to typing-extensions>=4.14.0 resolves the issue.

    1.67.0release notes

  • Changes the Interactions media MIME type to an enum, a breaking change for the experimental feature.

    1.65.0release notes

  • When present, the citationSources key in CitationMetadata is converted to citations.

    1.53.0release notes

  • Custom httpx clients and async clients are no longer closed automatically.

    1.50.1release notes

  • Errors during file upload are now raised.

    1.49.0release notes

  • Removes Python 3.9 support due to end of life.

    1.48.0release notesrelease notes

  • The deprecated field deprecated_response_payload is removed.

    1.0.0release notes

  • Defaults to listing base models instead of tuned models.

    1.0.0release notes

  • Raises an error when a Gemini API response_schema has default or anyof fields.

    1.0.0release notes

Security 4

  • Automatically enables mTLS in environments with a bound token, including Agent Engine with AgentAuthority, except when custom client arguments, a custom client, or a custom ClientSession are used.

    1.69.0release notes

  • Adds ModelArmorConfig support for prompt and response sanitization via the Model Armor service.

    1.60.0release notes

  • A phish filtering feature was added.

    1.48.0release notes

  • Supports custom_base_url for Live and other APIs with project/location unset or set in the environment, and avoids Automatic Default Credentials.

    1.47.0release notes

New APIs and options 98

  • Adds Python support for multimodal file search.

    1.75.0release notes

  • Adds output_info to BatchJob.

    1.74.0release notes

  • Adds enterprise to the Client constructor.

    1.74.0release notes

  • Adds custom_metadata to FileCitation.

    1.74.0release notes

  • Adds media_id to FileCitation.

    1.74.0release notes

  • Adds page_number to FileCitation.

    1.74.0release notes

  • Adds the gemini-3.1-flash-tts-preview model to options.

    1.74.0release notes

  • Adds new Gemini Deep Research agent models.

    1.74.0release notes

  • Introduces the GOOGLE_GENAI_USE_ENTERPRISE environment variable.

    1.74.0release notes

  • Adds ImageResizeMode for GenerateVideos.

    1.74.0release notes

  • Adds a grounding tool usage breakdown to Interaction Usage.

    1.74.0release notes

  • Adds one_of support to JSONSchema for Agent Platform.

    1.74.0release notes

  • Adds Vertex Dataset input and output options for batch jobs.

    1.74.0release notes

  • Adds webhook_config to batches.create(). The release notes warn of known webhook SDK issues in this version.

    1.73.0release notes

  • Adds fields to DeepResearchAgentConfig.

    1.73.0release notes

  • Adds webhook_config to models.generate_videos(). The release notes warn of known webhook SDK issues in this version.

    1.73.0release notes

  • Adds webhook support to the JavaScript and Python SDKs. The release notes warn against using this version when implementing or relying on webhooks because of known issues.

    1.73.0release notes

  • Audio support now includes the opus, alaw, and mulaw MIME types.

    1.72.0release notes

  • The Agent Engine Task Store Service now has a delete method.

    1.72.0release notes

  • New fields are available for Live Avatar.

    1.72.0release notes

  • The Vertex AI platform supports eu as a service location.

    1.72.0release notes

  • Introduces TYPE_L16 audio content and optional fields.

    1.71.0release notes

  • Adds dedicated TextAnnotationDelta support for streaming tool responses.

    1.70.0release notes

  • Adds AsyncSession.setup_complete.

    1.69.0release notes

  • Adds consent_audio support.

    1.69.0release notes

  • Adds custom_metadata to FileSearchResult.

    1.69.0release notes

  • Adds hyperparameter support in distillation tuning.

    1.69.0release notes

  • Adds a labels field to Veo configs.

    1.69.0release notes

  • Adds a MIME type for Audio content.

    1.69.0release notes

  • Adds model_status to GenerateContentResponse for the Gemini API.

    1.69.0release notes

  • Adds supported models to ModelOptions.

    1.69.0release notes

  • Adds part_metadata to Part for the Gemini API.

    1.69.0release notes

  • Adds rendered_parts support in GroundingSupport.

    1.69.0release notes

  • Adds service tier support for interactions.

    1.69.0release notes

  • Adds service tier support to GenerateContent.

    1.69.0release notes

  • Adds TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO to TurnCoverage.

    1.69.0release notes

  • Adds voice_consent_signature support.

    1.69.0release notes

  • Interactions now supports Google Maps.

    1.68.0release notes

  • The genai API now supports include_server_side_tool_invocations.

    1.68.0release notes

  • Signature fields were added and updated for tool call and result content types.

    1.68.0release notes

  • Adds live history_config with initial_history_in_client_content.

    1.67.0release notes

  • Adds inference_generation_config to EvaluationConfig for Tuning.

    1.67.0release notes

  • Enables language code for audio transcription config in the Live API for Vertex AI.

    1.67.0release notes

  • The evaluation run API supports referencing registered metrics by resource name.

    1.67.0release notes

  • Adds the gemini-3.1-flash-image-preview model.

    1.66.0release notes

  • Supports signature for all Interaction tool types.

    1.66.0release notes

  • Adds gemini-3.1-pro-preview to the list of models available in Interactions.

    1.65.0release notes

  • Adds Image Grounding support to the GoogleSearch tool.

    1.65.0release notes

  • Vertex AI API Models.embed_content() now supports multimodal embedding for Gemini Embedding 2.0.

    1.64.0release notes

  • Vertex Tuning evaluation config now supports UnifiedMetric.

    1.64.0release notes

  • Supports encryption_spec in tuning job creation configuration.

    1.63.0release notes

  • Adds the INCOMPLETE status to Interaction.

    1.63.0release notes

  • Adds support for distillation tuning.

    1.61.0release notes

  • Adds the include_input query parameter to the Get Interaction endpoint.

    1.61.0release notes

  • Adds support for OSS tuning in the GenAI SDK.

    1.61.0release notes

  • Adds registerFiles so you can use GCS files with mldev.

    1.61.0release notes

  • BaseApiClient sets this environment variable to false to disable bound token sharing for GCP services.

    1.59.0release notes

  • Interactions now supports 4:5 and 5:4 aspect ratios.

    1.59.0release notes

  • Adds FileSearchCallContent to Interactions.

    1.58.0release notes

  • Supports passing a custom aiohttp.ClientSession through HttpOptions.aiohttp_client.

    1.58.0release notes

  • Adds ImageConfig to GenerationConfig for image generation in Interactions.

    1.58.0release notes

  • Adds voice activity support.

    1.58.0release notes

  • Adds support for this model in the local tokenizer.

    1.57.0release notes

  • Adds PersonGeneration to ImageConfig for Vertex Gempix.

    1.57.0release notes

  • Adds RegisterFiles so GCS files can be used with genai.

    1.57.0release notes

  • Defines and uses DocumentMimeType for DocumentContent.

    1.56.0release notes

  • Adds ultra high resolution as a media resolution option for Parts.

    1.56.0release notes

  • Adds multi-speaker support for Vertex AI.

    1.56.0release notes

  • ToolResult Content now supports Struct values.

    1.56.0release notes

  • Adds minimal and medium thinking levels for configuring thinking.

    1.56.0release notes

  • Adds enableEnhancedCivicAnswers to GenerateContentConfig.

    1.55.0release notes

  • Adds IMAGE_OTHER as a FinishReason enum value.

    1.55.0release notes

  • Adds IMAGE_RECITATION as a FinishReason enum value.

    1.55.0release notes

  • Adds the Interactions API.

    1.55.0release notes

  • Adds a voice activity detection signal.

    1.55.0release notes

  • Adds support for ReplicatedVoiceConfig.

    1.54.0release notes

  • Adds support for configuring resource scope when using base_url.

    1.52.0release notes

  • Supports function call argument streaming for all languages.

    1.51.0release notes

  • Adds a display name to FunctionResponseBlob.

    1.51.0release notes

  • Adds a display name to FunctionResponseFileData.

    1.51.0release notes

  • Adds image output options to ImageConfig for Vertex.

    1.51.0release notes

  • Adds media_resolution to part.

    1.51.0release notes

  • Adds a pre-validation hook that warns about Pydantic model type mismatches.

    1.51.0release notes

  • BatchJob now includes complete stats, giving developers access to additional batch job statistics.

    1.49.0release notes

  • Adds the FileSearch tool for use with the API.

    1.49.0release notes

  • Adds APIs for managing FileSearchStore resources.

    1.49.0release notes

  • genai.Part can now be constructed from PartUnionDict.

    1.49.0release notes

  • Adds image_size to ImageConfig in the Early Access Program.

    1.49.0release notes

  • API requests support retries.

    1.47.0release notes

  • Adds person_generation support for Imagen upscaling.

    1.47.0release notes

  • Adds SDK support for preference optimization tuning.

    1.47.0release notes

  • Adds safety_filter_level support for Imagen upscaling.

    1.47.0release notes

  • Adds support for custom httpx clients.

    1.46.0release notes

  • Adds enable_enhanced_civic_answers to GenerationConfig.

    1.46.0release notes

  • Adds support for jailbreak in HarmCategory and BlockedReason.

    1.46.0release notes

  • Allows fully overriding base_url and using a raw model name when project, locations, and api_key are not configured.

    1.44.0release notes

  • Adds support for video extension for Veo on the Gemini Developer API.

    1.44.0release notes

  • response_schema supports Union.

    1.0.0release notes

Behavior and default changes 8

  • Interactions content now supports more image and audio MIME types.

    1.69.0release notes

  • Supports more image sizes and resolutions.

    1.65.0release notes

  • Enables server side MCP and disables all other AFC when server side MCP is configured.

    1.65.0release notes

  • Vertex AI API Models.embed_content() now supports MaaS models.

    1.64.0release notes

  • tunings.cancel() now has an empty response.

    1.53.0release notes

  • The Vertex AI backend supports a default global location when no API key is used.

    1.47.0release notes

  • When uploading with a file path, the SDK passes the file name to the backend.

    1.47.0release notes

  • Automatic function calling is supported in streaming mode, synchronously and asynchronously.

    1.0.0release notes

Fixes and other changes 48

  • Avoids caching a stale token in the async mTLS path.

    1.75.0release notes

  • Fixes typing in AsyncClient.__aexit__ and __exit__.

    1.74.0release notes

  • Catches errors wrapped by google-auth.

    1.74.0release notes

  • Retries httpx.TimeoutException when HttpRetryOptions are used.

    1.74.0release notes

  • Fixes streaming methods so they handle multi-line SSE.

    1.74.0release notes

  • Refactors Webhook types to make them easier to use.

    1.73.1release notes

  • Fixes the service_tier enums.

    1.70.0release notes

  • Fixes support for US region routing.

    1.69.0release notes

  • Retry options treat attempts=0 as attempts=1, ensuring no retries are made.

    1.68.0release notes

  • A breakage affecting Python 3.10–3.11 was fixed.

    1.68.0release notes

  • The typing-extensions constraint was corrected to address the issue reported for 1.67.0.

    1.68.0release notes

  • Forwards http_options in async_request_streamed, enabling retry support.

    1.67.0release notes

  • Updates data types from the discovery document.

    1.66.0release notes

  • Makes aiohttp an optional dependency and raises its version upper bound.

    1.65.0release notes

  • Ensures HttpOptions.async_client_args propagates to custom aiohttp.ClientSession request args, including proxy settings.

    1.65.0release notes

  • Handles a non-list response_stream in the HttpResponse.json property.

    1.65.0release notes

  • Fixes base_url parsing.

    1.63.0release notes

  • Fixes global location parsing.

    1.63.0release notes

  • Adds error handling for live and live music APIs.

    1.62.0release notes

  • Adds metadata to the batch inlined response.

    1.61.0release notes

  • Pillow images are serialized losslessly by default.

    1.58.0release notes

  • Removes validation for empty text parts so chat history can be kept when the API returns such a part.

    1.57.0release notes

  • Fixes API version handling for interactions.

    1.56.0release notes

  • Fixes handling of replicated voice config bytes.

    1.55.0release notes

  • Makes APIError instances picklable.

    1.54.0release notes

  • Applies the timeout to the total request duration in aiohttp.

    1.54.0release notes

  • Fixes an import error affecting the Live API.

    1.53.0release notes

  • Creates a new aiohttp client session if the event loop is closed.

    1.52.0release notes

  • Warnings for accessors in GenerateContentResponse are logged only once.

    1.51.0release notes

  • Warnings for accessors in LiveServerMessage are logged only once.

    1.51.0release notes

  • When passing a base_url without a project or location, ADC is no longer used.

    1.50.1release notes

  • Pagination for file_search_stores.documents was fixed.

    1.50.0release notes

  • A breaking change to the import system was rolled back.

    1.50.0release notes

  • Missing fields were added to the model types.

    1.50.0release notes

  • The filter parameter for models.list was fixed.

    1.50.0release notes

  • The base_steps parameter for recontext_image was fixed.

    1.50.0release notes

  • The response.text property no longer generates warnings because of thought_signature.

    1.50.0release notes

  • SSE error message types are now handled properly in streaming.

    1.50.0release notes

  • The current model chunk is now appended to contents in async streaming.

    1.48.0release notes

  • Automatic function calling is disabled when incompatible tools are presented.

    1.48.0release notes

  • Warning logs for non-text or multi-candidate fields are shown only when response.text is accessed directly.

    1.48.0release notes

  • Synchronous Python tool calls are offloaded to a thread when used from an async context.

    1.48.0release notes

  • Setting a custom httpx async client ensures the SDK uses it even when aiohttp is installed.

    1.47.0release notes

  • Corrects credential precedence for the Vertex AI API key set in the environment.

    1.47.0release notes

  • Removes bytes for Gemini Developer API before sending a video for Veo Video Extension async.

    1.46.0release notes

  • Fixes incorrect re-casing of keys in Live API tool responses.

    1.45.0release notes

  • Adds support for Python 3.14.

    1.45.0release notes

  • Redundant contents are removed from Automatic Function Calling history.

    1.0.0release notes