# googleapis/python-genai

Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications.

Repository: https://github.com/googleapis/python-genai
Canonical: https://ross.abutalabs.com/products/python-genai
Homepage: https://googleapis.github.io/python-genai/
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T22:39:43+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 45
- inputs: {"age_days": 635, "days_push": 7, "days_rel": 8, "gap_med": 5, "n_releases_24m": 114}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3942, forks 999 (observed 2026-08-28T04:08:30.179253+00:00)

## What it is
The official Google Gen AI Python SDK for integrating Google's generative models (Gemini Developer API and Gemini Enterprise Agent Platform) into Python applications. It provides clients for text generation, chats, live streaming, tunings, and token counting.

## Use cases
- generate text with Gemini models from Python
- build chatbots using the Gemini API
- call Vertex AI / Gemini Enterprise Agent Platform from Python
- stream model responses in real time
- count tokens for Gemini prompts
- fine-tune or tune Gemini models via SDK

## When to choose
- you want the official, maintained client for Gemini or Vertex AI generative models in Python
- you need access to the latest Gemini features like live streaming, function calling, and tunings
- you are building Python applications or agents on Google's AI platforms

## When to avoid
- you primarily use OpenAI, Anthropic, or other non-Google model providers
- you need a language other than Python (use the equivalent SDK for your language)
- you depend on legacy google-generativeai APIs without migrating

## Facets
- artifact type: library
- maturity: active
- function: sdk, llm-inference, agent-framework, chatbot, machine-learning
- domain: large-language-models, artificial-intelligence, apis, developer-tools
- platform: python, cloud
- tags: gemini, google-genai, vertex-ai, generative-ai, api-client, ai-agents

## Member repositories
- googleapis/python-genai (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.179253+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:36.949608+00:00, confidence not recorded.
  - readme: https://github.com/googleapis/python-genai (fetched 2026-08-28T04:08:30.179253+00:00, sha 270f8bf31f64)
  - homepage: https://googleapis.github.io/python-genai/ (fetched 2026-08-29T09:18:19.068102+00:00, sha 20dab898938e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
