Skip to content

Releases: googleapis/java-genai

v1.12.0

14 Aug 01:15
0e1a396

Choose a tag to compare

1.12.0 (2025-08-13)

Features

  • enable continuous fine-tuning on a pre-tuned model in the SDK. (e49d350)
  • support document name in grounding metadata (8273922)
  • Support exclude_domains in Google Search and Enterprise Web Search (e975d28)

v1.11.0

07 Aug 00:26
1c7b26a

Choose a tag to compare

1.11.0 (2025-08-06)

Features

  • Add image_size field for Gemini Developer API Imagen 4 generation (c50c755)
  • enable responseId for Gemini Developer API (4912ff4)
  • support extraBody in HttpOptions class (036bac8)
  • Support image recontext on Vertex (e7de8c8)
  • Support new enum types for UrlRetrievalStatus (cb27222)
  • support response headers in Go for all methods. (222b41e)

Bug Fixes

  • Remove duplicate JavaTimeModule in JsonSerializable (a7dbd4c)

Documentation

  • Add Imagen and Veo to README (cc0a0aa)
  • Add latest models features in README (a2eccaf)
  • mark Client as thread safe and Chat as not thread safe (be3e50e)

v1.10.0

23 Jul 21:58
e5b769e

Choose a tag to compare

1.10.0 (2025-07-23)

Features

  • Add image_size field for Vertex Imagen 4 generation (950c0c6)
  • Support API keys for VertexAI mode for Java SDK (826c0dc)
  • Support http headers in GenerateContentResponse (5282774)

Bug Fixes

  • Defer loading ADC when credentials is provided explicitly in Live API (a540614)
  • live: Enhance security by moving api key from query parameters to header (e48c7f1)
  • Pager throws an exception if list request returns nothing(correct behavior is returning a Pager without any items in it) (0a2301b)

Documentation

  • Update README with latest features in Client (dcf70cc)

v1.9.0

16 Jul 23:42
40e7e07

Choose a tag to compare

1.9.0 (2025-07-16)

Features

  • Add addWatermark parameter to the edit image configuration. (c4598da)
  • add Tuning support for Java (0ab209d)

Documentation

  • Update generated video resolution config docstring (9a2ced8)

v1.8.0

09 Jul 21:28
f82b356

Choose a tag to compare

1.8.0 (2025-07-09)

Features

  • Add new languages for Imagen 4 prompt language (7e1e6d2)

v1.7.0

01 Jul 22:35
3358227

Choose a tag to compare

1.7.0 (2025-07-01)

Features

  • Support Batches delete (782465d)
  • Support different media input in Vertex Live API (7f4c6bf)

Bug Fixes

v1.6.0

25 Jun 22:36
357b889

Choose a tag to compare

1.6.0 (2025-06-25)

Features

  • Add compressionQuality enum for generate_videos (b0e665b)
  • Add enhance_input_image and image_preservation_factor fields for upscale_image (94a329a)
  • allow users to access headers for generateContent method and generateContentStream (0315357)
  • Batches support in Java (5ce13e9)
  • configure release-please to automatically update package version across all files during releases. (9131ac2)
  • expose the responseJsonSchema in GenerateContentConfig (9d9acdb)
  • support client.caches.update method (345c2b9)

Documentation

  • add more comments to make it easier to follow live api code, and to explain the usage of new concepts like thenCompose. (96c792c)
  • improve generate images documentation (44c21dd)
  • Update description of thinking_budget. (265f20a)

v1.5.0

19 Jun 00:15
1833758

Choose a tag to compare

1.5.0 (2025-06-19)

Features

  • Add a default 5 minutes timeout to the Java SDK. (d80d23b)
  • enable json schema for controlled output and function declaration. (35d93d8)
  • Parametrize model ID in Java genai samples and set hardcoded model IDs as default values if model ID not passed in by user. (c1b0948)
  • resolve deep conditional nesting in Live API examples for better readability. (aa71865)

Documentation

  • fix small typo in comments (a6bfe36)

v1.4.1

12 Jun 22:27
de4a053

Choose a tag to compare

1.4.1 (2025-06-12)

Bug Fixes

  • Add backwards compatibility for generateVideos in Java SDK (504984a)

Miscellaneous Chores

v1.4.0

12 Jun 21:16
16289c1

Choose a tag to compare

⚠️ IMPORTANT: DO NOT UPGRADE TO VERSION 1.4.0 ⚠️

Version 1.4.0 contains an unexpected breaking change in generateVideos. Please upgrade to 1.4.1 or higher to avoid breaking your existing code.

1.4.0 (2025-06-12)

Features

  • Add datastore_spec field for VertexAISearch (8c8b47a)
  • Add support for Veo frame interpolation and video extension (94f5e41)
  • RAG - Introducing context storing for Gemini Live API. (d63d625)
  • Support maxConnections and maxConnectionsPerHost in Client instantiation (7a4a8ac)
  • Support passing builder classes to setter methods (996c994)
  • Support passing builder varargs to setter methods (0b08524)
  • Support varargs in Enum setter methods (cd63fd0)
  • Support varargs in setter methods (0b08524)

Documentation

  • Add javadoc for setter methods in types classes (996c994)