Skip to content

Releases: googleapis/java-genai

v1.32.0

17 Dec 03:05
08f5470

Choose a tag to compare

1.32.0 (2025-12-17)

Features

  • Add minimal and medium thinking levels. (ecfadfe)
  • Add PersonGeneration to ImageConfig for Vertex Gempix (d8a4c43)
  • Add ultra high resolution to the media resolution in Parts. (7c9b7f6)
  • support multi speaker for Vertex AI (c50e47b)

v1.31.0

11 Dec 17:59
690813c

Choose a tag to compare

1.31.0 (2025-12-11)

Features

  • Add enableEnhancedCivicAnswers feature in GenerateContentConfig (0570478)
  • Add IMAGE_RECITATION and IMAGE_OTHER enum values to FinishReason (26c3c35)
  • Add voice activity detection signal. (d1ca685)

Documentation

  • Add an example for ClientOptions usage (0a8a26e)

v1.30.0

08 Dec 23:58
39f2bc9

Choose a tag to compare

1.30.0 (2025-12-08)

Features

  • Add ProxyOptions in ClientOptions for configuring proxies (eafdf79)
  • Ephemeral token for Gemini Live API support in Java (4ce094b)
  • Support ReplicatedVoiceConfig (dbe314d)

v1.29.0

03 Dec 18:21
0d928ac

Choose a tag to compare

1.29.0 (2025-12-03)

Features

  • Add empty response for tunings.cancel() (57218f5)

Bug Fixes

  • Match the versions of the Java Protobuf and Google API Common dependencies (com.google.protobuf:protobuf-java:3.25.5 & com.google.api:api-common:2.45.0) with Google Cloud Java SDKs. (6c37f58)

Documentation

  • Recommend using response_json_schema in error messages and docstrings. (6b952e9)

v1.28.0

18 Nov 06:13
1cf913b

Choose a tag to compare

1.28.0 (2025-11-17)

Features

  • add display name to FunctionResponseBlob (8db8c57)
  • add display name to FunctionResponseFileData (f5ee8b7)
  • Add generate_content_config.thinking_level (a47df92)
  • Add image output options to ImageConfig for Vertex (3eac0b8)
  • Add part.media_resolution (a47df92)
  • support Function call argument streaming for all languages (f310452)
  • support upload to file search stores (7862ce3)

v1.27.0

13 Nov 02:47
9809a28

Choose a tag to compare

1.27.0 (2025-11-12)

Features

  • Add images() convenience method to GenerateImagesResponse (155df8d)
  • Add EvaluationConfig support to tune() in Java (795cf73)
  • Automatically set response type in FunctionDeclaration during the AFC (5ce99df)
  • Support overriding the max read length in the JSON parser (29d2fca)

Bug Fixes

  • Add missing fields to the model types (7b7b41f)
  • Fix base_steps parameter for recontext_image (85aaa79)
  • Fix models.list() filter parameter (123ada5)

Documentation

  • Add README for Files API (6d206aa)

v1.26.0

05 Nov 23:58
f8b83aa

Choose a tag to compare

1.26.0 (2025-11-05)

Features

  • Add clearXxx methods to data type builders (a4900c9)
  • add complete stats to BatchJob (659c65c)
  • Add FileSearch tool and associated FileSearchStore management APIs (8ada6ef)
  • Add image_size to ImageConfig (Early Access Program) (c1af981)
  • Added phish filtering feature. (ed4e12c)
  • Return response headers for generateContentStream (82a8118)
  • Support lists as function parameters in AFC (fixes #527) (452d2e5)

Bug Fixes

  • disable AFC when there are AFC incompatible tool presented. (6099d87)

Documentation

  • add blank line before version update marker (82616c2)
  • Update Java SDK README spacing (82616c2)

v1.25.0

29 Oct 23:01
4552440

Choose a tag to compare

1.25.0 (2025-10-29)

Features

  • Add safety_filter_level and person_generation for Imagen upscaling (09a8075)
  • Add support for preference optimization tuning in the SDK. (5d4123c)
  • Added Operations.get which is a generic method which will handle all Operation types. (c1dc32f)
  • Pass file name to the backend when uploading with a file path (081a9a6)
  • support default global location when not using api key with vertexai backend (f9028a7)
  • Support retries in API requests (3d5de00)

Documentation

  • Add docstring for classes and fields that are not supported in Gemini or Vertex API (7a03dac)
  • Add docstring for enum classes that are not supported in Gemini or Vertex API (830a12f)
  • Add documentation for the retry behavior (4fbcf51)

v1.24.0

22 Oct 00:48
219d8e8

Choose a tag to compare

1.24.0 (2025-10-22)

Features

  • Add enable_enhanced_civic_answers in GenerationConfig (684a2c5)
  • support createEmbeddings in Batches.java (8947f6f)
  • support jailbreak in HarmCategory and BlockedReason (3dab40b)

Bug Fixes

  • Make async methods in Batches module truly non-blocking (f2ae75a)
  • Make async methods in Caches, Tuning, and Operations modules truly non-blocking (db56239)
  • Make async methods in Models module truly non-blocking (c205d01)

Breaking Changes

  • Removed GenerationConfigThinkingConfig because it was a duplicate of ThinkingConfig. While this type was not intended for external use, if you happen to be using it, please migrate to ThinkingConfig.

v1.23.0

15 Oct 03:49
7d7e3ff

Choose a tag to compare

1.23.0 (2025-10-15)

Features

  • Support video extension for Veo on Gemini Developer API (b398509)