Google GenAI Python SDK
Official Python SDK for Google's generative AI models including Gemini.
Model SDKs PyPI
Used in agent projects
111
0.9% of 12,697 public repos built with AI coding agents
Rank in model sdks
#7 of 15
by use in those projects
Downloads
34.1M
PyPI, last 7 days, google-genai
GitHub stars
4,013
last push Oct 10, 2026
How Google GenAI Python SDK is used
Google GenAI Python SDK is a dependency in 111 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.9%), #7 of 15 in model sdks. The most used alternative there is OpenAI. Projects that use it most often also use python-dotenv (77.5%), Pydantic (57.7%), Requests (57.7%).
Often used with Google GenAI Python SDK
| python-dotenv | 77.5% of Google GenAI Python SDK projects · 11.9× more than average |
|---|---|
| Pydantic | 57.7% of Google GenAI Python SDK projects · 11.3× more than average |
| Requests | 57.7% of Google GenAI Python SDK projects · 10.8× more than average |
| Uvicorn | 53.2% of Google GenAI Python SDK projects · 12.4× more than average |
| FastAPI | 51.4% of Google GenAI Python SDK projects · 12.1× more than average |
| NumPy | 44.1% of Google GenAI Python SDK projects · 11.5× more than average |
| OpenAI Python Library | 42.3% of Google GenAI Python SDK projects · 22.0× more than average |
| Pillow | 37.8% of Google GenAI Python SDK projects · 16.5× more than average |
By coding agent
| Claude Code | 1.4% of projects set up for it |
|---|---|
| GitHub Copilot | 1.4% of projects set up for it |
| Cursor | 1.5% of projects set up for it |
| Devin Desktop | 2.6% of projects set up for it |
Share of public repos configured for each agent that list Google GenAI Python SDK as a dependency.
Install
| Package | pip install google-genai |
|---|---|
| Packages counted | google-genai, google-generativeai, google.generativeai |
| Main stacks | Python (106), Next.js (4), Other (1) |
| Example projects | Josh-XT/AGiXT, owid/etl, XargonWan/Synthetic_Heart, towardsai/agentic-ai-engineering-course, kr8tiv-ai/Jarvis |
Alternatives to Google GenAI Python SDK
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
362 (2.9%) | 43.2M | 11.2K | Apache-2.0 |
| AI SDK npm Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more. |
328 (2.6%) | 29.8M | 27.2K | Apache-2.0 |
| Google Generative AI npm Official SDK for Google Gemini API to build AI-powered applications. |
258 (2.0%) | 25.3M | 1,686 | Apache-2.0 |
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
244 (1.9%) | 75.1M | 31.8K | — |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
211 (1.7%) | 46.5M | 2,136 | MIT |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
115 (0.9%) | 40.9M | 3,954 | MIT |
| Hugging Face Hub pypi Python client library for downloading and publishing models and datasets on Hugging Face. |
59 (0.5%) | 60M | 3,974 | Apache-2.0 |
| Transformers.js npm Run Hugging Face transformer models directly in browser without servers. |
34 (0.3%) | 3.9M | 16.3K | Apache-2.0 |