🌐
GitHub
github.com › googleapis › js-genai
GitHub - googleapis/js-genai: TypeScript/JavaScript SDK for Gemini and Vertex AI. · GitHub
April 25, 2026 - TypeScript/JavaScript SDK for Gemini and Vertex AI. - googleapis/js-genai
Starred by 1.6K users
Forked by 251 users
Languages   TypeScript 94.3% | JavaScript 5.1% | HTML 0.3% | Shell 0.2% | Starlark 0.1% | CSS 0.0%
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Gemini Enterprise Agent Platform | Google Cloud Documentation
@google/genai on npm · js-genai on GitHub · npm install @google/genai · Set environment variables to use the Gen AI SDK with Vertex AI: # Replace the `GOOGLE_CLOUD_PROJECT` and `GOOGLE_CLOUD_LOCATION` values # with appropriate values for your project. export GOOGLE_CLOUD_PROJECT=GOOGLE_CLOUD_PROJECT export GOOGLE_CLOUD_LOCATION=global export GOOGLE_GENAI_USE_ENTERPRISE=True ·
🌐
npm
npmjs.com › package › @google › genai
google/genai
1 week ago - Documentation: https://googleapis.github.io/js-genai/ The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini.
      » npm install @google/genai
    
Published   Jun 24, 2026
Version   2.10.0
🌐
Google AI
ai.google.dev › gemini api › gemini api libraries
Gemini API libraries | Google AI for Developers
April 28, 2026 - The Google GenAI SDK is available for the Python, JavaScript/TypeScript, Go and Java languages.
🌐
npm
npmjs.com › package › @google › generative-ai
google/generative-ai
April 29, 2025 - Google AI JavaScript SDK. Latest version: 0.24.1, last published: a year ago. Start using @google/generative-ai in your project by running `npm i @google/generative-ai`. There are 1945 other projects in the npm registry using @google/generative-ai.
      » npm install @google/generative-ai
    
Published   Apr 29, 2025
Version   0.24.1
🌐
GitHub
googleapis.github.io › js-genai
@google/genai
If you are not redirected automatically, click here to go to the release version docs
🌐
Google
developers.google.com › solutions › getting started with the gemini api and web apps
Getting started with the Gemini API and Web apps | Solutions for Developers | Google for Developers
Learn how to use the Gemini API and the Google Gen AI SDK for JavaScript and TypeScript to prototype generative AI for web apps. Use the Google Gen AI SDK to make your first generative AI call using the Gemini API in your client-side web application. Explore a sample application and learn how to make multimodal prompts (that combine image and text).
🌐
GitHub
github.com › google-gemini › deprecated-generative-ai-js
GitHub - google-gemini/deprecated-generative-ai-js: This SDK is now deprecated, use the new unified Google GenAI SDK. · GitHub
Please be advised that this repository is now considered legacy. For the latest features, performance improvements, and active development, we strongly recommend migrating to the official Google Generative AI SDK for JavaScript.
Starred by 1.2K users
Forked by 320 users
Languages   TypeScript 98.0% | JavaScript 2.0%
🌐
Apidog
apidog.com › blog › how-to-use-the-google-gen-ai
How to Use the Google Gen AI TypeScript/JavaScript SDK ...
January 30, 2026 - import { GoogleGenAI } from '@google/genai'; const GEMINI_API_KEY = process.env.GEMINI_API_KEY; // Or your actual API key const ai = new GoogleGenAI({ apiKey: GEMINI_API_KEY }); async function run() { // Example: Generate text content const model = ai.models.generateContent({ model: "gemini-pro", // Or a specific Gemini 2.5 model like "gemini-2.5-flash-001" contents: [{ role: "user", parts: [{ text: "Explain the significance of the Google Gen AI SDK."
Find elsewhere
🌐
npm
npmjs.com › package › @google › genai › v › 0.3.1
Google Gen AI SDK for TypeScript and JavaScript
March 11, 2025 - Documentation: https://googleapis.github.io/js-genai/ The Google Gen AI JavaScript SDK is an experimental SDK designed for TypeScript and JavaScript developers to build applications powered by Gemini.
      » npm install @google/genai
    
Published   Jun 03, 2026
Version   0.3.1
🌐
npm
npmjs.com › package › @google › generative-ai › v › 0.8.0
Google AI JavaScript SDK
April 22, 2024 - The Google AI JavaScript SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. This SDK supports use cases like: ... You can use this JavaScript SDK for applications ...
      » npm install @google/generative-ai
    
Published   Apr 29, 2025
Version   0.8.0
🌐
npm
npmjs.com › package › @langchain › google-genai
@langchain/google-genai - npm
2 weeks ago - Google Generative AI integration for LangChain.js. Latest version: 2.2.0, last published: 10 days ago. Start using @langchain/google-genai in your project by running `npm i @langchain/google-genai`. There are 341 other projects in the npm registry using @langchain/google-genai.
      » npm install @langchain/google-genai
    
Published   Jun 17, 2026
Version   2.2.0
🌐
npm
npmjs.com › package › @zdooon › google-genai
@zdooon/google-genai - npm
November 27, 2025 - Documentation: https://googleapis.github.io/js-genai/ The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini.
      » npm install @zdooon/google-genai
    
Published   Nov 27, 2025
Version   1.30.0
🌐
GitHub
github.com › mohitejaikumar › generative-ai-js
GitHub - mohitejaikumar/generative-ai-js: The official Node.js / Typescript library for the Google Gemini API · GitHub
See the Node.js quickstart for complete code. Install the SDK package · npm install @google/generative-ai · Initialize the model · import { GoogleGenerativeAI } from "@google/generative-ai"; const genAI = new GoogleGenerativeAI(process.env.API_KEY); const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" }); Run a prompt ·
Author   mohitejaikumar
🌐
npm
npmjs.com › package › @genkit-ai › google-genai
@genkit-ai/google-genai - npm
3 weeks ago - import { genkit } from 'genkit'; import { googleAI } from '@genkit-ai/google-genai'; const ai = genkit({ plugins: [googleAI()], }); const response = await ai.generate({ model: googleAI.model('gemini-flash-latest'), prompt: 'Tell me something interesting about Google AI.', }); console.log(response.text());
      » npm install @genkit-ai/google-genai
    
Published   Jun 26, 2026
Version   1.39.0
🌐
Google AI
ai.google.dev › gemini api › getting started with gemini api
Getting started with Gemini API | Google AI for Developers
2 weeks ago - Configure the model to return JSON that matches a schema you define. Structured output works with Pydantic (Python) and Zod (JavaScript). from google import genai from pydantic import BaseModel, Field from typing import List, Optional class Recipe(BaseModel): recipe_name: str = Field(description="Name of the recipe.") ingredients: List[str] = Field(description="List of ingredients.") prep_time_minutes: Optional[int] = Field(description="Prep time in minutes.") client = genai.Client() interaction = client.interactions.create( model="gemini-3.5-flash", input="Give me a recipe for banana bread", response_format={ "type": "text", "mime_type": "application/json", "schema": Recipe.model_json_schema() }, ) recipe = Recipe.model_validate_json(interaction.output_text) print(recipe)
🌐
npm
npmjs.com › package › @pangeacyber › google-genai
@pangeacyber/google-genai - npm
October 13, 2025 - A wrapper around the Google Gen AI SDK that wraps the Gemini API with Pangea AI Guard. Supports Node.js v22 and greater. npm install @pangeacyber/google-genai ·
      » npm install @pangeacyber/google-genai
    
Published   Oct 13, 2025
Version   0.1.3
🌐
Medium
medium.com › @pvnsripati › i-built-an-ai-that-interviews-you-with-node-js-and-google-gemini-api-2ffb9d4bdffc
I Built an AI That Interviews You using Node.js and Google Gemini API | by Praveen Sripati | Medium
June 20, 2025 - In my server.js file, I configured the Gemini model with a high temperature to ensure it would generate unique responses for every request. // Import the Google AI client const { GoogleGenerativeAI } = require('@google/generative-ai'); const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY); // Define a generation config with a high temperature for unique responses const generationConfig = { temperature: 0.9, }; // Initialize the model WITH the new generation configuration const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash", generationConfig: generationConfig, // Pass our new config here });
🌐
GitHub
github.com › googleapis › js-genai › releases
Releases · googleapis/js-genai
TypeScript/JavaScript SDK for Gemini and Vertex AI. - Releases · googleapis/js-genai
Author   googleapis