Changelog
3.3.0 (2026-11-12)
Features
- Add
XHIGH and xhigh to ThinkingLevel across GenAI SDKs and CLI. (9f4d0ed)
- Add missing enum values to FinishReason and ReinforcementTuningThinkingLevel (3a4907d)
- interactions: add gemini-4-hydrogen to Model enum (a606282)
3.2.0 (2026-11-11)
Features
- add the Decisions API (
client.decisions.create) to the GenAI SDKs (3712be2)
- environments: introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI (ac855bd)
3.1.0 (2026-11-10)
Features
- add
gemini-omni-1.2-flash and make it the gemini-api video default (cd31e9f)
- Add
proactive_video to ProactivityConfig for the Live API. (2164fe7)
- add
xhigh thinking level to Interactions ThinkingLevel (eff6729)
- add usage_metadata (including traffic_type) and truncated to EmbedContentResponse for Gemini Enterprise API (81d42ca)
- interactions: add gemini-4-carbon and gemini-omni-1.2-flash to Model enum (d406013)
3.0.0 (2026-11-06)
⚠ BREAKING CHANGES
-
Default Gemini Developer API version is now v1 (was v1beta) (3f477bf)
- Clients targeting the Gemini Developer API now default to API version
v1 instead of v1beta.
- No effect on Gemini Enterprise (Vertex AI) defaults: Clients with
vertexai: true are unaffected by this default change and continue to default to v1beta1.
- Some models are not available on
v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.
- How to configure or restore the previous default via environment variable (Node.js): Set
GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
# Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
export GOOGLE_GENAI_API_VERSION=beta
# Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
export GOOGLE_GENAI_API_VERSION=v1beta
- How to set the API version in code: Pass
apiVersion (or httpOptions.apiVersion) to GoogleGenAI (takes precedence over GOOGLE_GENAI_API_VERSION):
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({
apiVersion: 'v1beta',
});
-
Minimum supported Node.js version is now 22 (was 20) (7b9fbf0)
- Following Node.js 20 reaching end-of-life (2026-04-30),
package.json engines.node now requires >=22.0.0.
- There are no runtime API or bundle changes resulting from this bump, and both CommonJS and ESM bundles continue to be published.
- Users who must remain on Node.js 20 should pin to
@google/genai@^2 (or ignore engine checks if supported by their environment).
-
interactions: CodeExecutionResultStep.result is now typed as Array<Content> | string (CodeExecutionResultStepResult) instead of string (b36ce99). The JSON and runtime value for text-only results are still a plain string, but TypeScript code reading step.result as a string may need to narrow the union (typeof step.result === 'string').
Features
- Add
source_text to AudioTranscriptionConfig and SmartTranscriptionMode. (ddb5158)
- Add MALFORMED_RESPONSE to FinishReason (032d50c), refs #2937
- cli: use gemini-3.5-transcribe as default model for transcribe command (df29944)
- default Gemini API version to v1 instead of v1beta across SDKs (3f477bf)
- Disable GenerateVideos for Gemini API, update tests/READMEs (3f65d02)
- drop support for Node 20; Node.js >=22 is now required (7b9fbf0)
- interactions: add Office and OpenDocument MIME types (b24cfc2)
- interactions: support multimodal content in CodeExecutionResultStep.result (b36ce99)
- support GOOGLE_GENAI_API_VERSION environment variable across SDKs (3f477bf)
- update discovery doc (8be9344)
Bug Fixes
- Raise protobufjs and ws minimums to patched versions (71827d0), refs #1611
- Reject Live.connect() when the WebSocket errors or closes before setup completes (04eaa81), refs #1257
- respect configured and default API version for Gemini API file uploads across SDKs (bdb4e42)
- stop emitting array indices in auth token fieldMask (80e7b3d), refs #1492
2.32.0 (2026-10-29)
Features
- Add support for continuation_token and requires_continuation status (c7b2fd2)
- add video upscale task parameter (54b9b19)
- interactions: add automatic_continuation to interactions.create in the TypeScript SDK (99f1892)
- interactions: declare continuation_ids on Interaction (9cf3280)
- support video understanding in Gemini Developer API (7c82322)
Bug Fixes
- interactions: align SDK User-Agent and x-goog-api-client headers (dda511e)
2.31.0 (2026-10-22)
Features
- Add
store to GenerateContentConfig (Gemini Developer API only) and labels to LiveConnectConfig. (0b52aa5)
- add base_voice to PromptedVoice in GAOS SDK (d62820b)
- Add generation_output_config to GenerateContentConfig (e82a75a)
- Add Live API in-session context updates (
send_context_update) and types across GenAI SDKs. (177ee68)
- include AudioContent, DocumentContent, and VideoContent in FunctionResultSubContent (aeaed4e)
- sdks: enable
fixes.openSingleValueEnumsOct2026 across all SDKs (0059474)
- update discovery doc (40d6e98)
Bug Fixes
- genai: raise mid-stream SSE errors and dropped connections consistently across SDKs; add continuation conformance tests (38f6ebc)
- interactions: sync InteractionSseEventInteractionStatus enum with InteractionStatus (be6aa9f)
- triggers: fix agent triggers OpenAPI overlays, numeric fields, and SDK patches (0e9031d)
2.30.0 (2026-10-14)
Features
- interactions: add gemini-4-argon to Model enum (8a3c307)
Bug Fixes
- clear continuation state and preserve prompt feedback when continuation hop returns no candidates (e63d1f1)
- fix the grounding metadata merging for automatic continuation in generate content and generate content stream (6bfba87)
- make continuation streams retry dropped hops, stop on prompt_feedback, and keep real errors in generate_content (6bdc0d9)
- type GeminiNextGen signatures with public, importable names (ad3fb89)
2.29.1 (2026-10-13)
Bug Fixes
- concatenate output_text across multi-step model responses in a turn (567cc8a)
2.29.0 (2026-10-13)
Features
- accumulate streaming continuation usage metadata and expose initialPromptTokenCount (dbc961f)
- Add
continuation_token to the Interactions interaction.status_update event. (a93776c)
- Add a CONTINUATION_REQUIRED Interaction status (754f71f)
- add billable token counts fields (839ffc2)
- Add startOffset/endOffset to Transcription and interimTranscriptTimestampEnabled to RealtimeInputConfig (bdbf156)
- Add usage in InteractionStatusUpdate events (8892aea)
- automatically consume the continuation token (98637d1)
- cli: update Speakeasy generator to v2.948.0, bump CLI to v0.4.2, and apply CLI overlay fixes (22d53ec)
Bug Fixes
- clear intermediate CONTINUATION finishReason in streaming continuation (22706af)
- do not record incomplete continuation stream turns in curated chat history (81c3c49)
- gemini-api-cli: remove unsupported 2.5 and 1.6 models from Interactions model options and CLI examples (1002720)
- js: do not set initial prompt token count for requests that do not use automatic consumption of continuation token (0885fb9)
- js: fix streaming continuation edge cases (stale token, AbortError, initialPromptTokenCount) (f3d10a6)
- Raise default HTTP timeouts so long-running requests aren't killed client-side (10e850c)
- resume streaming generation from the latest checkpoint continuation token on mid-stream errors or cutoffs (625ac2c)
- Update EnvironmentConfig.env schema to map keys to EnvVar or string. (8478e12)
2.28.0 (2026-10-07)
Features
- Support
"allowlist": "disabled" in environment network config. (18bc392)
- update discovery doc (4e996fe)
2.27.0 (2026-10-02)
Features
- add
lyria-3.5, gemini-omni-1.1-flash, and gemini-omni-flash-preview to Interactions Model enum (4ce63d1)
- support continuation_token in Interactions (a888ad7)
2.26.0 (2026-10-01)
Features
- support continuation_token in GenerateContent (ac628c5)
2.25.0 (2026-09-30)
Features
- add gcs_metrics_uri for exporting tuning job metrics. (bc085fb)
- Add Gemini 3.8 Flash TTS and Gemini 3.8 Flash Lite TTS models to SDKs (b12dad0)
- genai-sdk: Add environments dedicated module and from_environment support (4d7e80b)
- include labels for LiveClientSetup (d4bcdad)
- support labels for Gemini API GenerateContent (71c3997)
Bug Fixes
- use
CreateAgentInteraction for Trigger.interaction and TriggerCreateParams.interaction (c4341e1)
2.24.0 (2026-09-22)
Features
- add sample_audio to Voice in GAOS SDK (d001d18)
- add Voices API resource to GAOS SDK (f97113f)
- expose SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public GenAI SDKs (19b7858)
- support field.value_field syntax for map add_union_value annotations. (51d701a)
- update discovery doc (42f9716)
- wire voice into sdk (08b568e)
Bug Fixes
- sanitize path parameter descriptions in GAOS OpenAPI generation (1567962)
2.23.0 (2026-09-16)
Features
- add credential APIs resource to gaos. (0e6410b)
- Add RetrievalCallStep and RetrievalResultStep to interactions schema and SDKs. (d03d569)
- implement environments files upload and download across Python and TypeScript SDKs (3a4c512)
- support custom fetch in HttpOptions (01897b3)
- wire credential APIs resource to sdk. (280da75)
2.22.0 (2026-09-10)
Features
- Add from_environment support for environment copying (01ed17e)
Bug Fixes
- Add @ts-ignore before optional MCP imports in declaration files (7b5ef39)
- Remove unused field from FunctionResultDelta (aeb7453)
- Repair node fallback manifest and complete web entries (0f59bf8)
2.21.0 (2026-09-02)
Features
- Add Gemini 3.8 Flash model to SDKs and update Flash model descriptions (4a969fe)
2.20.0 (2026-08-31)
Features
- Add support for the audio/webm MIME type. (b0e3c5f)
- Add translation_config SDK support for GEAP. (3e1d923)
- add Video Understanding support to the Interactions API (6ddbeba)
Bug Fixes
- Don't set redundant Content-Length on file upload requests (2f5cc7a)
- Don't set redundant Content-Length on file upload requests (2f5cc7a), refs #1718
- expose ProcessingCallStep and ProcessingResultStep in Interactions SDK (b6f8db5)
- Quote setupComplete key in LiveClientMessage (4467faf)
2.19.0 (2026-08-25)
Features
- Add AudioTranscriptionConfigMode (c0a37de)
- add environment files support and scotty file download helper (0d6ee9d)
- Add TYPE_JPEG2000 to VideoContent.MimeType enum (41da204)
Performance Improvements
- Keep the Buffer in the Node tokenizer platform, ~2x faster model parse (11d804a)
2.18.0 (2026-08-19)
Features
- Add
mode enum (VERBATIM, SMART) to AudioTranscriptionConfig and TranscriptionConfig. (4c5208b)
- Add enable_data_retention to ToolParallelAiSearch, Add step_count to ReinforcementTuningHyperParameters, Add BidiGenerateContentSetup (f52c208)
- Add IDLE state to live connection status enum and mark REQUIRES_ACTION as deprecated. (2f110f2)
- add video resolution and extension task parameters (39b2a2d)
Bug Fixes
2.17.1 (2026-08-13)
Bug Fixes
2.17.0 (2026-08-12)
Features
- Add interaction_status to LiveServerContent (4489991)
- api: make the deferred service tier publicly available on Vertex (9dafee9)
- Make speech_config a structured object. (9c90665)
2.16.0 (2026-08-06)
Features
- Add the Gemini Robotics ER 2 Preview model (5647ced)
- Add TOO_MANY_TOOL_CALLS to FinishReason enum. (a7fa568)
- Add top-level errors array to Interaction resource (iAPI) (b9dfd81)
- Make HttpOptions.timeout a per-attempt deadline in the JS GenAI SDK. (8268806)
Bug Fixes
- Add propertyOrdering auto-population for ResponseSchema and ResponseJsonSchema for Dotnet SDK (e26542f)
2.15.0 (2026-07-30)
Features
- add environment resource (2c911be)
- Support GoogleMaps Tool grounding_types places and routing (52655c1)
- Support per-request retryOptions in the JS GenAI SDK API Client (124b606)
- Wire environment service into genai sdk (70d7938)
2.14.0 (2026-07-28)
Features
- [GenerateContentConfig] Add GenerationConfig.audio_transcription_config and Part.audio_transcription. (4b2e67a)
- Add flat
language_codes field to AudioTranscriptionConfig. (cc808eb)
- Allow api key + proj/location for enterprise mode (9c0540a)
Bug Fixes
- add deprecation warnings to Imagen generate_images, edit_images, generate_videos (if using prompt/text/image args), LiveConnectConfig.GenerationConfig which will be removed in the next major version (bb66101)
2.13.0 (2026-07-21)
Features
- A new field
custom_vocabulary is added to message .google.cloud.aiplatform.v1beta1.BidiGenerateContentSetup (f32ec0a)
- add model selector (b5d70da)
- interaction-api: add queued status to interaction proto (1b7dd39)
- make ASR fields public in v1main and Interactions (08ef3eb)
2.12.0 (2026-07-15)
Features
- Add AntigravityAgentConfig to OpenAPI schema overlays and regenerate SDKs. (872aa26)
- Add history config. (8666bc2)
- Add support for preserve custom headers for gaos (f96662a)
- add trigger resource (43e0137)
- Add Triggers resource to GoogleGenAI client. (8d520cd)
- interactions: add CodeMenderAgentConfig (4469a85)
- Populate per-modality prompt token count in embedding responses for gemini-embedding-2 (163bf72)
2.11.0 (2026-07-09)
Features
- Add environment_id in network config (85fe0a5)
- Add response_format and Translation_config in GenerationConfig (3f3b7bc)
- add retrieval result step and new fields to maps and search results (ecfdc69)
- Add Tool.exa_ai_search for Gemini Enterprise API (3f3b7bc)
- support Function declarations during Agent Creation (824badf)
- voice consent signature types across all SDK languages. (5fb5354)
Bug Fixes
- interactions: accept both dict and list[dict] for transform (67d2f68)
Code Refactoring
- interactions: remove cached_content, presence_penalty, and frequency_penalty; expose safety_settings and labels (0f414be)
2.10.0 (2026-06-24)
Features
- [Interactions] Add ComputerUse.disabled_safety_policies (a2ca95c)
- [Models] Add ComputerUse.disabled_safety_policies (3618023)
- add usage fields for steps (048db9a)
- add video generation and response format parameters. (84e795c)
2.9.0 (2026-06-19)
Features
- Add audioOffset to VoiceActivity (3bc7d42)
- Add interimInputTranscription to LiveServerContent (3bc7d42)
- Add LanguageAuto, LanguageHints, and adaptationPhrases to AudioTranscriptionConfig (3bc7d42)
- Add ServiceTier to UsageMetadata (1f44b04)
- expose Computer Use API fields (da54ea4)
- interaction-api: Add presence_penalty, frequency_penalty, and cached_content to models.proto (2740a42)
- interaction-api: Rename usage to total_usage in StreamMetadata. (b72db47)
- introduce gaos sdk libs (bfac5d4)
Miscellaneous Chores
- Configure 2.9.0 as the next release (e9968c6)
- Configure a 2.9.0-rc.0 prerelease (ae612ec)
2.8.0 (2026-06-03)
Features
- Add Agent Platform MCP support to async generate_content (baeaeaa)
- Add transcription language code. (d2981d6)
- Add TranslationConfig for live translation. (8c44240)
- Support ReinforcementTuning in GenAI SDK including ValidateReward API method. (36f0bfb)
2.7.0 (2026-05-27)
Features
- Add Skill Registry ListSkills and DeleteSkill to SDK (d75582a)
- additional computer_use field support for vertex. (54a692b)
- interaction-api: Allow "text/csv" as a supported document mime type for Interaction API. (3cc830e)
- interaction-api: Enable BigQuery tool in Deep Research config. (58c8c7e)
- Support Reinforcement Tuning in GenAI SDK (418cc35)
2.6.0 (2026-05-21)
Features
- add
enable_prompt_injection_detection for Computer Use feature for the Gemini API. (f780f3c)
- Add budget_exceeded status (1e97bd0)
- Add gemini-3.5-flash (1e97bd0)
- add new fields (b78eeee)
2.5.0 (2026-05-20)
Features
- Add Gemini 3.5 Flash model to options (fcf26e3)
2.4.0 (2026-05-17)
Features
- support Agent and Environment APIs. (b0d9d2b)
Bug Fixes
- output_text for turns that don't end with text. (1a3d94f)
2.3.0 (2026-05-15)
Features
- interaction.{output_text,output_image,output_audio,output_video} (0188233)
2.2.0 (2026-05-12)
Features
- Added missing FunctionCallResultDelta type and
arguments field to the ArgumentDelta type (f76138b)
2.1.0 (2026-05-12)
Features
- Add gemini-3.1-flash-lite to model options (b0664e1)
- Add parameters to video response_format. (207c8f8)
- Introduce Server Side tools deltas (2e56d41)
- support Blocking FunctionCall in Live API in AgentPlatform (Vertex) (6bd8e7d)
- Add support for Vertex-lyria models lyria-3-pro-preview & lyria-3-clip-preview (f9af7410)
Bug Fixes
2.0.1 (2026-05-09)
Bug Fixes
- Update response_format field names to snake_case. (26af549)
2.0.0 (2026-05-07)
⚠ BREAKING CHANGES - Interactions Only
Note: The breaking changes are only in interactions. GenerateContent usage in unaffected.
Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details
- Add steps for interactions (c0814c4)
- Deprecate legacy response_format and publish new polymorphic field. (68a6809)
- Rename SSE events to interaction.created and interaction.completed (d1b836b)
Bug Fixes
1.52.0 (2026-05-04)
Features
- [Python] Multimodal file search (e626bef)
- Multimodal file search (54caf6b)
1.51.0 (2026-04-29)
Features
- [Interactions] Add FileCitation.{custom_metadata,media_id,page_number} (9e08ba9)
- Add
output_info to BatchJob (5327c60)
- Add gemini-3.1-flash-tts-preview model to options (35c941b)
- Add ImageResizeMode for GenerateVideos (faa1088)
- Add new Gemini Deep Research agent models (6f83a05)
- Add Vertex Dataset input and output options for batch jobs (6aa848e)
- interaction-api: Add grounding tool usage breakdown to Interaction Usage. (e1c31ad)
- introduce enterprise flag and GOOGLE_GENAI_USE_ENTERPRISE env var (cf7ad52)
- Replace the more ambiguous rate field with sample_rate. (6c80464)