aiagent.club
中文
npm package

@google/genai

Updated 2026-09-12 View source ↗

#5 of 203 by Downloads / week among npm packages

18.0M Downloads / week

[![NPM Downloads](https://img.shields.io/npm/dw/%40google%2Fgenai)](https://www.npmjs.com/package/@google/genai) [![Node Current](https://img.shields.io/node/v/%40google%2Fgenai)](https://www.npmjs.com/package/@google/genai)

About

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.

Upcoming Breaking Change to Automatic Function Calling (AFC): We will introduce a breaking change to the Automatic Function Calling (AFC) feature 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.

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

API Key Security: Avoid exposing API keys in client-side code. Use…

Excerpted from www.npmjs.com/package/@google/genai

Latest metrics

Downloads / week 18.0M 2026-09-12