Skip to content

Releases: googleapis/java-genai

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)

v1.3.0

04 Jun 23:05
0aa4a1d

Choose a tag to compare

1.3.0 (2025-06-04)

Features

  • Add enhance_prompt field for Gemini Developer API generate_videos (944af16)
  • Enable url_context for Vertex (cc772d8)
  • java: Support GEMINI_API_KEY as environment variable for setting API key. (84e7588)

Documentation

  • Updating docs to include how to initialize client via environment variables (7fc3e62)

v1.2.0

30 May 23:48
9042c56

Choose a tag to compare

1.2.0 (2025-05-30)

Features

  • Adding thought_signature field to the Part to store the signature for thoughts. (dc9c8f7)
  • include UNEXPECTED_TOOL_CALL enum value to FinishReason for Vertex AI APIs. (8186ff0)

Bug Fixes

  • Rename LiveEphemeralParameters to LiveConnectConstraints. (0655609)