googleapis/js-genai
v3.0.0Curated ai tools / ai-sdk / backend / ecosystem repository (googleapis/js-genai) tracked via conditional GitHub .atom polling.
The Google GenAI JavaScript and TypeScript SDK provides a streamlined interface for interacting with Gemini models and AI services. This major release shifts default API behaviors and raises runtime engine prerequisites.
Summaries, compatibility signals, and upgrade commands on this page are generated automatically by AI without human editorial review on an "as-is" basis. Verify against official upstream GitHub release notes before upgrading, see Legal Disclaimer or Report an Error.
Default API version is v1 and Node.js >=22 required. Update Node.js and configure API version. Migration: High.
Key Release Highlights (v3.0.0)
- Default Gemini Developer API version changed from
v1betatov1, requiring explicit configuration if using beta model aliases. - Minimum required Node.js runtime version bumped from
20to22. CodeExecutionResultStep.resulttype updated toArray<Content> | stringrequiring type narrowing in TypeScript.- Added
GOOGLE_GENAI_API_VERSIONenvironment variable support to globally control API versions.
Breaking Changes (Action Required)
- Default API version for Gemini Developer API is now
v1instead ofv1beta. - Minimum Node.js requirement increased to
>=22.0.0. CodeExecutionResultStep.resulttype changed fromstringtoArray<Content> | string.
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({
apiVersion: 'v1beta',
});Ecosystem Compatibility Matrix & Detected Graph Signals
Zero-Noise Historical Release Timeline (2)
Format: [Core Change] + [Required Action] + [Migration Effort]Default API version is v1 and Node.js >=22 required. Update Node.js and configure API version. Migration: High.
Add support for continuation_token and requires_continuati. Drop-in upgrade. Migration: None.
Upgrade & Migration Q&A (googleapis/js-genai v3.0.0)
Direct Answers for Engineers & AI AgentsIs googleapis/js-genai v3.0.0 safe to upgrade in production?
googleapis/js-genai v3.0.0 is classified as BREAKING (MAJOR release). Default API version is v1 and Node.js >=22 required. Update Node.js and configure API version. Migration: High.
What breaking changes or compatibility risks exist in googleapis/js-genai v3.0.0?
Default API version for Gemini Developer API is now v1 instead of v1beta. Minimum Node.js requirement increased to >=22.0.0. CodeExecutionResultStep.result type changed from string to Array<Content> | string.
What is the bundle size impact of @google/genai v3.0.0?
Measured bundle size telemetry is currently unavailable for @google/genai v3.0.0; verify build output locally before deploying.
How do I upgrade @google/genai to v3.0.0?
Upgrade @google/genai to v3.0.0 by running "npm install @google/genai@3.0.0" and applying the migration steps: import { GoogleGenAI } from '@google/genai'; const ai = new GoogleGenAI({ apiVersion: 'v1beta', });
Featured in Daily Cortex Briefs (1)
Browse All Daily Briefs →styled-components/styled-components (styled-components@7.0.0-prerelease-20261106173006) & googleapis/js-genai (v3.0.0) — State, Data & UI Evolution
Default API version is v1 and Node.js >=22 required. Update Node.js and configure API version. Migration: High.