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
npm
npmjs.com › package › @google › genai
@google/genai - npm
1 week ago - Call generateContent with function calling enabled · Use the returned FunctionCall parameters to call your actual function · Send the result back to the model (with history, easier in ai.chat) as a FunctionResponse · import {GoogleGenAI, FunctionCallingConfigMode, FunctionDeclaration, Type} from '@google/genai'; const GEMINI_API_KEY = process.env.GEMINI_API_KEY; async function main() { const controlLightDeclaration: FunctionDeclaration = { name: 'controlLight', parametersJsonSchema: { type: 'object', properties:{ brightness: { type:'number', }, colorTemperature: { type:'string', }, }, requi
» npm install @google/genai
Published Jun 24, 2026
Version 2.10.0
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
npm
npmjs.com › package › @ai-sdk › google
@ai-sdk/google - npm
May 27, 2026 - import { google } from '@ai-sdk/google'; import { generateText } from 'ai'; const { text } = await generateText({ model: google('gemini-2.5-pro'), prompt: 'Write a vegetarian lasagna recipe for 4 people.', });
» npm install @ai-sdk/google
Published Jun 25, 2026
Version 4.0.0
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
GitHub
github.com › mohitejaikumar › generative-ai-js
GitHub - mohitejaikumar/generative-ai-js: The official Node.js / Typescript library for the Google Gemini API · GitHub
Check out this repository. git clone https://github.com/google/generative-ai-js · Obtain an API key to use with the Google AI SDKs. cd into the samples folder and run npm install.
Author mohitejaikumar
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
npm
npmjs.com › package › @xiangfa › generative-ai
@xiangfa/generative-ai - npm
Latest version: 0.25.1, last published: 9 months ago. Start using @xiangfa/generative-ai in your project by running `npm i @xiangfa/generative-ai`. There are no other projects in the npm registry using @xiangfa/generative-ai.
» npm install @xiangfa/generative-ai
deps.dev
deps.dev › npm › @google › generative-ai › 0.11.5
google/generative-ai | npm
May 29, 2024 - You need to enable JavaScript to run this app
Google AI
ai.google.dev › gemini api › gemini api libraries
Gemini API libraries | Google AI for Developers
April 28, 2026 - Note: If you're using one of our legacy libraries, we strongly recommend you migrate to the Google GenAI SDK. Review the legacy libraries section for more information. If you're using an AI coding assistant, install the Gemini API development skill to give your agent access to the latest documentation and best practices.
npm
npmjs.com › package › @fuyun › generative-ai
@fuyun/generative-ai - npm
Google AI JavaScript SDK. Latest version: 0.24.0, last published: 8 months ago. Start using @fuyun/generative-ai in your project by running `npm i @fuyun/generative-ai`. There are no other projects in the npm registry using @fuyun/generative-ai.
» npm install @fuyun/generative-ai
npm
npmjs.com › package › @revenium › google-genai
@revenium/google-genai - npm
February 19, 2026 - npm install @revenium/google-genai · Add to your existing .env file: GOOGLE_API_KEY=your_google_ai_api_key_here REVENIUM_METERING_API_KEY=your_revenium_api_key_here # Optional: For development/testing (defaults to https://api.revenium.ai) # ...
» npm install @revenium/google-genai
Published Feb 19, 2026
Version 0.2.3
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Gemini Enterprise Agent Platform | Google Cloud Documentation
import ( "context" "fmt" "io" "google.golang.org/genai" ) // generateWithText shows how to generate text using a text prompt. func generateWithText(w io.Writer) error { ctx := context.Background() client, err := genai.NewClient(ctx, &genai.ClientConfig{ HTTPOptions: genai.HTTPOptions{APIVersion: "v1"}, }) if err != nil { return fmt.Errorf("failed to create genai client: %w", err) } resp, err := client.Models.GenerateContent(ctx, "gemini-2.5-flash", genai.Text("How does AI work?"), nil, ) if err != nil { return fmt.Errorf("failed to generate content: %w", err) } respText := resp.Text() fmt.Fprintln(w, respText) // Example response: // That's a great question! Understanding how AI works can feel like ... // ... // **1. The Foundation: Data and Algorithms** // ... return nil } The Google Gen AI SDK for TypeScript and JavaScript is available on npm and GitHub: @google/genai on npm ·
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 ...
Google
docs.cloud.google.com › node.js › client libraries
Node.js client libraries | Google Cloud Documentation
The dist-tags follow the naming convention legacy-(version). For example, npm install @google-ai/generativelanguage@legacy-8 installs client libraries for versions compatible with Node.js 8.
npm
npmjs.com › package › @voltagent › google-ai
@voltagent/google-ai - npm
Dual API Support: Works seamlessly with both Google AI Studio's Gemini API (using an API key) and Google Cloud's Vertex AI platform. Model Agnostic (within Google): Accepts standard Google model identifier strings (e.g., 'gemini-1.5-pro', 'gemini-1.5-flash'). Core Functionality: Focuses on text generation, streaming, and structured object generation using the underlying Google SDK. npm install @voltagent/core @voltagent/google-ai zod
» npm install @voltagent/google-ai
Published Aug 07, 2025
Version 0.4.2
Npm
npm.io › package › @google › generative-ai
@google/generative-ai NPM | npm.io
With Gemini 2.0, we took the chance to create a single unified SDK for all developers who want to use Google's GenAI models (Gemini, Veo, Imagen, etc). As part of that process, we took all of the feedback from this SDK and what developers like about other SDKs in the ecosystem to create the Google Gen AI SDK.