google-generativeai の代わりになるライブラリ

PyPI AI・LLM

同じ分類でいま一番使われているのは openai(週 8,889万 回)、4週間で一番伸びているのは mcp(+25.4%)です。

同じ分類のライブラリ 1行目が google-generativeai

比較ツールで開く →
パッケージ週間DL4週比スター依存最新版の公開
google-generativeai
Google Generative AI High level API client library and tools.
172万+9.7%2,332292025-12-16
openai
The official Python library for the openai API
8,889万+16.6%3.2万–2026-11-13
mcp
Model Context Protocol SDK
7,891万+25.4%2.5万272026-10-02
tiktoken
tiktoken is a fast BPE tokeniser for use with OpenAI's models
5,403万+13.2%2.0万62026-08-17
anthropic
The official Python library for the anthropic API
4,944万+20.1%4,076152026-11-10
google-genai
GenAI Python SDK
3,969万+12.9%4,075–2026-11-12
langchain-core
Building applications with LLMs through composability
3,684万+6.3%15.0万–2026-11-15
langchain
Building applications with LLMs through composability
3,595万-5.3%15.0万–2026-11-11
litellm
Library to easily interface with LLM API providers
2,363万+1.0%6.3万–2026-11-12
sentence-transformers
Embeddings, Retrieval, and Reranking
521万+1.4%1.9万–2026-11-11
ollama
The official Python client for Ollama.
292万-7.2%1.1万112026-09-29
pydantic-ai
AI Agent Framework, the Pydantic way
149万+15.3%2.1万–2026-11-12
dspy
The framework for programming—rather than prompting—language models.
144万+0.9%3.9万252026-11-10

「代わり」は同じ分類に入っているライブラリです。機能や書き方は同じではないので、移る前にそれぞれの公式ドキュメントで確かめてください。