Skip to content

Releases: googleapis/python-genai

v1.37.0

16 Sep 04:18
2362ea5

Choose a tag to compare

1.37.0 (2025-09-16)

Features

  • Add VideoGenerationMaskMode enum for Veo 2 Editing (3d73cc5)

Bug Fixes

  • Handle single-element list responses in error details. (2629fb4)
  • Reuse aiohttp ClientSession for sharing connection pool (d866313)

Documentation

  • Add uv package installation command to README (09a8bee)

v1.36.0

10 Sep 23:16
eb0d7ec

Choose a tag to compare

1.36.0 (2025-09-10)

Features

  • Add labels to create tuning job config (a6a2988)

Bug Fixes

  • Fix the return type of generate_content_stream. (28c735f)
  • Fix the return type of generate_content_stream. (ebc7180)

Documentation

  • Regenerate docs for 1.35.0 (aa2f97b)

v1.35.0

09 Sep 21:39
9b7ac94

Choose a tag to compare

1.35.0 (2025-09-09)

Features

  • Support Veo 2 Editing on Vertex (effb53a)

Bug Fixes

  • Enable id field in FunctionCall for Vertex AI. (717c1b0)

v1.34.0

09 Sep 02:30
9f7673d

Choose a tag to compare

1.34.0 (2025-09-09)

Features

  • [Python] Implement async embedding batches for MLDev. (468d529)
  • Generate the function_call class's converters (77d1d40)

v1.33.0

03 Sep 22:43
4ac3eb8

Choose a tag to compare

1.33.0 (2025-09-02)

Features

  • Add resolution field for Gemini Developer API Veo 3 generation (cd2620c)
  • Add the response body for generateContent (e032208)

Bug Fixes

  • Defer asyncio.Lock initialization in _api_client.py. (c6a6c70)
  • Return genai.types.Image, not PIL.Image (67611ed)

Documentation

  • Refactor/update docstrings for Imagen and Veo (214d017)
  • Regenerate docs for 1.32.0 (637b490)

v1.32.0

27 Aug 22:08
9ebf30a

Choose a tag to compare

1.32.0 (2025-08-27)

Features

  • Add sdkHttpResponse.headers to *Delete responses. (0101d47)
  • Add add_watermark field for recontext_image (Virtual Try-On, Product Recontext) (0428877)
  • Add GenerateContentResponse.parts, Part.as_image(), and Blob.as_image() (75c0955)
  • Add output_gcs_uri to Imagen upscale_image (3fecf29)
  • Add the response body for generateContent (8cc4754)
  • Add the response body for generateContent (917cc2c)
  • Add VALIDATED mode into FunctionCallingConfigMode (f6bf934)
  • Add VideoGenerationReferenceType enum for generate_videos (cd53aff)
  • Support GenerateVideosSource for Veo GenerateVideos (a6c2bb7)
  • Support tunings.cancel in the genai SDK for Python, Java, JS, and Go (ffd8b06)

Documentation

  • Fix typo in README (0cef3e6)
  • Prompt and schema fix for json schema sample (6efd242)
  • Regenerate docs for 1.31.0 (51903d4)
  • Update TokensInfo docstring (921afa1)
  • Updating Imagen 4 code snippet (630262b)
  • Updating Veo model to Veo 3 and adding instruction to edit images using the native image-out model (codegen instructions). (b34a5c6)

v1.31.0

18 Aug 23:29
6a8c5ad

Choose a tag to compare

1.31.0 (2025-08-18)

Features

  • Support Imagen image segmentation on Vertex (a3c46f5)
  • Support Veo 2 Reference Images to Video Generation on Vertex (3712351)

Bug Fixes

  • Fix the bug to support Gemini Batch inlined requests system instruction (3abf441)

v1.30.0

14 Aug 00:52
10f07cc

Choose a tag to compare

1.30.0 (2025-08-13)

Features

  • Add evaluation support to Vertex tuning (95293eb)
  • Enable continuous fine-tuning on a pre-tuned model in the SDK. (72dc46b)
  • Support document name in grounding metadata (5f6746d)
  • Support exclude_domains in Google Search and Enterprise Web Search (7e4ec28)

Bug Fixes

  • Prevent NameError from being thrown when has_aiohttp is False (13a487d)

Documentation

  • Docs for 1.29 (3e39e63)
  • Document that property descriptions are not automatically-handled. (d7cb114)
  • Fix example format. (da225f3)

v1.29.0

06 Aug 23:24
378c61e

Choose a tag to compare

1.29.0 (2025-08-06)

Features

  • Add image_size field for Gemini Developer API Imagen 4 generation (f1852e6)
  • Add Lyria enum for music generation mode for vocalization (30c0676)
  • Allow methods in batch to return headers in sdk_http_response by default (80fb4e3)
  • Enable more types in FunctionDeclaration schema (76e9b13)
  • Enable responseId for Gemini Developer API (a57f7d9)
  • Support image recontext on Vertex (8a45746)
  • Support new enum types for UrlRetrievalStatus (13815b8)

Bug Fixes

  • Harden the response parsing logic in generate_content_stream (c4466d3)

Documentation

  • Fix code block formatting in codegen_instructions.md (f62fdac)
  • Regenerate docs for 1.28.0 (bcef0a6)

v1.28.0

30 Jul 21:32
cb810b9

Choose a tag to compare

1.28.0 (2025-07-30)

Features

  • Add images quick accessor to GenerateImagesResponse (2e43d91)
  • Allow methods in models to return headers in sdk_http_response by default. (fa6675a)
  • Allow methods in tuning to return headers in sdk_http_response by default (dd19971)
  • Define StringDict type alias for better readability (0f4613f)
  • Increase buffer size to read response body from HTTP client (ae2d790)
  • Support retry configuration at request level (417e655)

Bug Fixes

  • Allow empty proj/location and api key when overriding base_url (79f7bfc)
  • Retry async when seeing aiohttp ClientConnectorError, ClientOSError, ServerDisconnectedError (b0d18de)