Skip to content
r.

js-genai

googleapis/js-genai · Public GitHub repository

TypeScript/JavaScript SDK for Gemini and Vertex AI.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

js-genai live demo screenshot
Captured from the live demo · 2026-11-23

About this project

Author-written excerpt from the project README.

The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini. The SDK supports both the Gemini Developer API and Gemini Enterprise Agent Platform.

Updates to Automatic Function Calling (AFC) in upcoming SDK version: We are changing AFC behavior in the next major version. Specifically, users will not be able to invoke AFC from direct calls to Models.generateContent or its stream variants. Instead, users should invoke AFC from Chats modules. Upcoming Change to Node.js Support: Starting from SDK version 3.0.0, Node.js version 22 or later is required. | Methods/fields to be removed | migration guide | | --- | --- | | LiveConnectConfig.generationconfig | Set fields on LiveConnectConfig directly | | prompt/text/image arguments in…

The Google Gen AI SDK is designed to work with Gemini 2.0+ features.

Requirements and intended audience

The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini. The SDK supports both the Gemini Developer API and Gemini Enterprise Agent Platform.

The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini. The SDK supports both the Gemini Developer API and Gemini Enterprise Agent Platform.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-02. Source: https://github.com/googleapis/js-genai/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-21. Saved release: v2.27.0 · 2026-10-02. These dates do not guarantee ongoing maintenance.

Technologies
TypeScript
Licence
Apache-2.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories