🌐
npm
npmjs.com › package › @google › genai
@google/genai - npm
1 month ago - import {GoogleGenAI} from '@google/genai'; const GEMINI_API_KEY = process.env.GEMINI_API_KEY; const ai = new GoogleGenAI({apiKey: GEMINI_API_KEY}); async function main() { const response = await ai.models.generateContent({ model: 'gemini-2.5-flash', contents: 'Why is the sky blue?', }); console.log(response.text); } main();
      » npm install @google/genai
    
Published   Jun 19, 2026
Version   2.9.0
🌐
npm
npmjs.com › package › @google › generative-ai
@google/generative-ai - npm
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
🌐
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 › @langchain › google-genai
@langchain/google-genai - npm
2 weeks ago - 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
🌐
Vercel Community
community.vercel.com › help
Issue with Deployment related to @google/genai versus @google/generative-ai - Help - Vercel Community
December 17, 2025 - I created my first app with Gemini. Successfully saved it to GitHub and connected to Vercel account. When I try to deploy it, I get an error: npm error code ETARGET npm error notarget No matching version found for @google/genai@^0.1.1. npm error notarget In most cases you or one of your dependencies are requesting npm error notarget a package version that doesn’t exist. npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-12-17T03_22_24_538Z-debug-0.log Error: Comm...
🌐
GitHub
github.com › mohitejaikumar › generative-ai-js
GitHub - mohitejaikumar/generative-ai-js: The official Node.js / Typescript library for the Google Gemini API · GitHub
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" ...
Author   mohitejaikumar
🌐
npm
npmjs.com › package › genai
genai - npm
March 20, 2023 - Universal Generative AI (GenAI) Settings for GenAI applications. Latest version: 0.0.18, last published: 3 years ago. Start using genai in your project by running `npm i genai`. There are 2 other projects in the npm registry using genai.
      » npm install genai
    
Published   Mar 20, 2023
Version   0.0.18
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Gemini Enterprise Agent Platform | Google Cloud Documentation
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 ...
🌐
Tessl
tessl.io › registry › tessl › npm-google--genai › 1.30.0 › files › docs › client.md
1.30.0 • npm-google--genai • tessl • Registry • Tessl
1 month ago - import { GoogleGenAI } from '@google/genai'; // Gemini Developer API (with API key) const client = new GoogleGenAI({ apiKey: 'YOUR_API_KEY' }); // Vertex AI (Node.js with Google Cloud authentication) const vertexClient = new GoogleGenAI({ vertexai: true, project: 'my-project-id', location: 'us-central1' }); // With custom HTTP options const customClient = new GoogleGenAI({ apiKey: 'YOUR_API_KEY', httpOptions: { timeout: 30000, headers: { 'Custom-Header': 'value' } } });
Find elsewhere
🌐
Google AI
discuss.ai.google.dev › gemini api
Confused about @google/generative-ai, @google/genai, and all hosted repos - Gemini API - Google AI Developers Forum
April 10, 2025 - This is is really hard for me to figure out because there are so many different repos names and different npm names and different python repo / pip names - and completely without any schema. I even tried to ask Gemini 2.5 pro and you made it so confusing that even gemini providing some misleading informations.
🌐
Langchain
js.langchain.com › docs › integrations › platforms › google
Google | 🦜️🔗 Langchain
// First install: npm install langchain zod @langchain/openai import { createAgent, tool } from "langchain"; import * as z from "zod"; const getWeather = tool( (input) => `It's always sunny in ${input.city}!`, { name: "get_weather", description: "Get the weather for a given city", schema: z.object({ city: z.string().describe("The city to get the weather for"), }), } ); const agent = createAgent({ model: "gpt-5.5", tools: [getWeather], }); console.log( await agent.invoke({ messages: [{ role: "user", content: "What's the weather in San Francisco?"
🌐
npm
npmjs.com › package › @google-ai › generativelanguage
@google-ai/generativelanguage - npm
January 29, 2026 - Start using @google-ai/generativelanguage in your project by running `npm i @google-ai/generativelanguage`. There are 36 other projects in the npm registry using @google-ai/generativelanguage.
      » npm install @google-ai/generativelanguage
    
Published   May 01, 2026
Version   3.7.1
🌐
npm
npmjs.com › package › @genkit-ai › google-genai
@genkit-ai/google-genai - npm
3 weeks ago - Latest version: 1.39.0, last published: 3 days ago. Start using @genkit-ai/google-genai in your project by running `npm i @genkit-ai/google-genai`. There are 8 other projects in the npm registry using ...
      » npm install @genkit-ai/google-genai
    
Published   Jun 26, 2026
Version   1.39.0
🌐
Google AI
discuss.ai.google.dev › gemini api
Google Gen AI SDK for JavaScript - Gemini API - Google AI Developers Forum
February 6, 2025 - Is it possible to know when the Google Gen AI SDK will be available for JavaScript? Any approximate ETA or other information. The documentation used to say Coming Soon and now I don’t see that sentence, and I would reall…
🌐
jsDelivr
jsdelivr.com › package › npm › @google › generative-ai
@google/generative-ai CDN by jsDelivr - A CDN for npm and GitHub
April 29, 2025 - A free, fast, and reliable CDN for @google/generative-ai. Google AI JavaScript SDK
Published   Dec 12, 2023
🌐
Google AI
discuss.ai.google.dev › gemini api
Is npm package a priority for Google engineers? - Gemini API - Google AI Developers Forum
March 18, 2025 - Hello, We use multiple gemini models for our production application and we specifically use the js/ts sdk. There are some feature improvements such as allowing for better schema support which is something we leverage heavily for structured output. For some of our more complex schemas we use OpenAi instead although we would prefer to use Gemini.