🌐
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
1 month ago - 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:
🌐
npm
npmjs.com › package › @google › genai
google/genai
1 week ago - 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
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
The Google Gen AI SDK for JavaScript and TypeScript enables you to build your generative AI integration with the Gemini Developer API.
🌐
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.
🌐
Hugging Face
huggingface.co › blog › lynn-mikami › google-gen-ai-sdk
How to Use the Google Gen AI TypeScript/JavaScript SDK: A Comprehensive Guide
May 27, 2025 - Installing the SDK is straightforward using npm. Open your terminal and run the following command: ... This command will download and install the necessary package into your project. The quickest way to start interacting with the Gemini models is by using an API key obtained from Google AI Studio. Here’s a simple example of how to generate content: import {GoogleGenAI} from '@google/genai'; // Ensure your API key is set as an environment variable const GEMINI_API_KEY = process.env.GEMINI_API_KEY; const ai = new GoogleGenAI({apiKey: GEMINI_API_KEY}); async function main() { try { const respon
🌐
npm
npmjs.com › package › @google › genai › v › 0.3.1
Google Gen AI SDK for TypeScript and JavaScript
March 11, 2025 - 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
🌐
Medium
pierre-schwartz.medium.com › google-gen-ai-and-typescript-8047d23158ff
Google Gemini and TypeScript. Explore the Gen AI tools in a typical… | by Pierre Schwartz | Medium
October 18, 2025 - The Google Gen AI SDK for TypeScript has just been released in April 2025. Let’s use it ! The official doc will be your friend : https://googleapis.github.io/js-genai/main/index.html
Find elsewhere
🌐
GitHub
github.com › mohitejaikumar › generative-ai-js
GitHub - mohitejaikumar/generative-ai-js: The official Node.js / Typescript library for the Google Gemini API · GitHub
[!NOTE] A new Javascript/Typescript SDK, @google/genai (github), is currently available in a preview launch - designed to work with Gemini 2.0 features and support both the Gemini API and the Vertex API.
Author   mohitejaikumar
🌐
GitHub
github.com › smartground › google-genai-sdk-js
GitHub - smartground/google-genai-sdk-js: TypeScript/JavaScript SDK for Gemini and Vertex. [EXPERIMENTAL]
import { GoogleGenAI } from '@google/genai'; const ai = new GoogleGenAI({apiKey: 'GEMINI_API_KEY'}); [!CAUTION] API Key Security: Avoid exposing API keys in client-side code. Use server-side implementations in production environments.
Author   smartground
🌐
Learnbydo
learnbydo.ing › blog › geminisdk-node-typescript
Building with Gemini: Your First Node.js AI App with Native TypeScript
April 2, 2026 - Generate AI responses with the @google/genai library. Initialize a new Node.js project featuring native, out-of-the-box TypeScript support. If you haven't set it up yet, check out our quick guide: Zero-Config TypeScript with Node.js. Once your environment is ready, return here to dive into the next steps. Install the official Gemini SDK as dependency of your project:
🌐
npm
npmjs.com › package › @zdooon › google-genai
@zdooon/google-genai - npm
November 27, 2025 - 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
🌐
DEV Community
dev.to › asross311 › taming-the-interactions-api-in-the-googlegenai-sdk-561b
Taming the Interactions API in the @google/genai SDK - DEV Community
December 25, 2025 - The latest @google/genai SDK (v1.34.0 as of writing) surfaces this beta API, unlocking preview support for Deep Research tasks with background polling. There's just one problem: you can't use it safely or sanely in TypeScript.
🌐
LiteLLM
docs.litellm.ai › agent sdks › google genai sdk with litellm
Google GenAI SDK with LiteLLM | liteLLM
Use Google's official GenAI SDK (JavaScript/TypeScript and Python) with any LLM provider through LiteLLM Proxy.
🌐
GitHub
github.com › googleapis › js-genai › blob › main › codegen_instructions.md
js-genai/codegen_instructions.md at main · googleapis/js-genai
TypeScript/JavaScript SDK for Gemini and Vertex AI. - js-genai/codegen_instructions.md at main · googleapis/js-genai
Author   googleapis
🌐
oTTomator
thinktank.ottomator.ai › general
Google Gen AI SDK for TypeScript and JavaScript Image Generation - General - oTTomator Community
March 26, 2025 - So having a go with the new Gemini image model I am having to use node.js and its not my best skill. I have been using this @google/genai the documetation is limited and conflicting to the docs on the ai studio, so curio…
🌐
LangChain Forum
forum.langchain.com › oss product help
Upgrade Google Generative AI SDK integration from @google/generative-ai to @google/genai - LangChain - LangChain Forum
November 5, 2025 - According to Google’s documentation: ... library for JavaScript/TypeScript is @google/genai, provided at https://github.com/googleapis/js-genai. (GitHub) Google Cloud’s deprecation guide states that the “Generative AI module in the Vertex ...