googleapis/js-genai
Official Google TypeScript/JavaScript SDK for building applications powered by Gemini AI models.

This repository provides an official SDK for interacting with Google’s Gemini large language models from TypeScript and JavaScript environments. The SDK supports both the Gemini Developer API for general application development and the Gemini Enterprise Agent Platform for more advanced agentic workflows. It wraps the Gemini 2.0+ API endpoints, handling authentication and providing typed interfaces for model interactions. Developers use this library to integrate Gemini capabilities into web, Node.js, or server-side applications.