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:
Videos
31:14
Google's GENAI SDK Makes AI Setup SUPER SIMPLE - YouTube
05:47
Google Gen AI SDK in Python made easy - New Unified API for Google ...
09:45
Google Gen AI SDK - Step-by-Step Hands-on Tutorial - YouTube
07:50
Getting Started with Google Generative AI Using the Gen AI SDK ...
05:32
Google Just Released the ULTIMATE AI SDK (And It's Good) - YouTube
05:41
How to use Gemini Gen AI SDK using Typescript - YouTube
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.
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'; // ...
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
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 ...
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
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