# Google Gen AI SDK (JS/TS) (@google/genai) - AgentBreakWatch Reference > TL;DR Verdict: Google Gen AI SDK (JS/TS) (`@google/genai`) is currently at v2.31.0 on NPM (published 2026-10-23), with a 90-day Stability Score of 82/100 (B+) and MEDIUM schema drift risk across 20 releases in the last 90 days. Replaces deprecated @google/generative-ai package; v2.x standardizes ai.models.generateContent and functionDeclarations schema typing. ## Live Telemetry Metadata - Canonical Page: https://agentbreakwatch.vercel.app/p/google-genai-js - Category Hub: https://agentbreakwatch.vercel.app/c/agent-sdks (AI Agent SDKs & Frameworks Breaking-Change Index) - Package Name: `@google/genai` - Registry: NPM (https://www.npmjs.com/package/@google/genai) - GitHub Repository: https://github.com/googleapis/js-genai - Vendor: Google - Latest Live Version: v2.31.0 - Published Date: 2026-10-23T00:40:52.721Z - 90-Day Release Count: 20 - Direct Dependencies: 4 - License: Apache-2.0 - Stability Score: 82/100 (Grade B+) - Schema Drift Risk: MEDIUM - Recommended Exact Pin Command: `npm install @google/genai@2.31.0` - Watched Symbols / MCP Tools: GoogleGenAI, ai.models.generateContent, FunctionDeclaration - Snapshot Timestamp: 2026-10-24T12:11:27.697Z ## Breaking Change & Schema Drift Summary Replaces deprecated @google/generative-ai package; v2.x standardizes ai.models.generateContent and functionDeclarations schema typing. ## Migration Diff: Before (Deprecated / Unpinned Pattern) ``` import { GoogleGenerativeAI } from "@google/generative-ai"; const genAI = new GoogleGenerativeAI(API_KEY); const model = genAI.getGenerativeModel({ model: "gemini-1.5-pro" }); ``` ## Migration Diff: After (Verified v2.31.0 Pattern) ``` import { GoogleGenAI } from "@google/genai"; const ai = new GoogleGenAI({ apiKey: API_KEY }); const response = await ai.models.generateContent({ model: "gemini-2.5-pro", contents: "Hello" }); ``` ## Recent Verified Releases - v2.31.0 (published 2026-10-23) [LATEST] - v2.30.0 (published 2026-10-15) - v2.29.1 (published 2026-10-13) - v2.29.0 (published 2026-10-13) - v2.28.0 (published 2026-10-07) - v2.27.0 (published 2026-10-02)