🌐
GitHub
googleapis.github.io › python-genai
Google Gen AI SDK documentation
Google Gen AI Python SDK provides an interface for developers to integrate Google’s generative models into their Python applications. It supports the Gemini Developer API and Vertex AI APIs. ... Please run one of the following code blocks to create a client for different services (Gemini Developer API or Vertex AI). from google import genai # Only run this block for Gemini Developer API client = genai.Client(api_key='GEMINI_API_KEY')
🌐
Google AI
ai.google.dev › gemini api › gemini api libraries
Gemini API libraries | Google AI for Developers
April 28, 2026 - If you're using an AI coding assistant, install the Gemini API development skill to give your agent access to the latest documentation and best practices. If you're new to the Gemini API, follow our Get started guide to get started. The Google GenAI SDK is available for the Python, ...
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Gemini Enterprise Agent Platform | Google Cloud Documentation
4 weeks ago - To learn more, see the Python SDK reference. ... # Replace the `GOOGLE_CLOUD_PROJECT` and `GOOGLE_CLOUD_LOCATION` values # with appropriate values for your project. export GOOGLE_CLOUD_PROJECT=GOOGLE_CLOUD_PROJECT export GOOGLE_CLOUD_LOCATION=global export GOOGLE_GENAI_USE_ENTERPRISE=True
🌐
Google AI
ai.google.dev › gemini api › getting started with gemini api
Getting started with Gemini API | Google AI for Developers
2 weeks ago - The Interactions API is available through the Python and JavaScript SDKs, as well as through REST. To use the Gemini API, you need an API key. Create one for free to get started: ... Install the SDK and generate text with a single API call. ... from google import genai client = genai.Client() interaction = client.interactions.create( model="gemini-3.5-flash", input="Explain how AI works in a few words" ) print(interaction.output_text)
🌐
PyPI
pypi.org › project › google-generativeai
google-generativeai · PyPI
Google Generative AI High level API client library and tools.
      » pip install google-generativeai
    
Published   Dec 16, 2025
Version   0.8.6
🌐
GitHub
googleapis.github.io › python-genai › genai.html
Submodules - Google Gen AI SDK documentation
Usage: .. code-block:: python ... class genai.client.Client(*, enterprise=None, vertexai=None, api_key=None, credentials=None, project=None, location=None, debug_config=None, http_options=None)¶
🌐
Langchain
reference.langchain.com › python › langchain-google-genai
langchain_google_genai | LangChain Reference
Python API reference for langchain_google_genai. Part of the LangChain ecosystem.
🌐
Chatting With Models
chattingwithmodels.wordpress.com › 2025 › 04 › 06 › a-beginners-guide-to-the-google-gen-ai-sdk-for-python
A Beginner’s Guide to the Google Gen AI SDK for Python
April 6, 2025 - ✅ Unified Access: Use the same SDK for both Gemini Developer API and Vertex AI—no major code changes needed 🔁 🛠️ Core Features: ... 📦 Installation: pip install -U google-genai 🔐 Authentication: Use API key or Google Cloud ...
Find elsewhere
🌐
GitHub
github.com › google-gemini › generative-ai-python › blob › main › docs › api › google › generativeai.md
deprecated-generative-ai-python/docs/api/google/generativeai.md at main · google-gemini/deprecated-generative-ai-python
Google AI Python SDK · pip install google-generativeai · Use genai.GenerativeModel to access the API: import google.generativeai as genai import os genai.configure(api_key=os.environ['API_KEY']) model = genai.GenerativeModel(model_name='gemini-1.5-flash') response = model.generate_content('Teach me about how an LLM works') print(response.text) See the python quickstart for more details.
Author   google-gemini
🌐
GitHub
github.com › google-gemini › generative-ai-python
GitHub - google-gemini/deprecated-generative-ai-python: This SDK is now deprecated, use the new unified Google GenAI SDK. · GitHub
Please be advised that this repository is now considered legacy. For the latest features, performance improvements, and active development, we strongly recommend migrating to the official Google Generative AI SDK for Python.
Starred by 2.3K users
Forked by 519 users
Languages   Python
🌐
Google Cloud
cloud.google.com › ai and ml › generative ai
Generative AI | Google Cloud Documentation
Documentation and resources for building and implementing generative AI applications with Google Cloud tools and productss.
🌐
Google AI Studio
aistudio.google.com › welcome
Google AI Studio
1 week ago - GenAI SDKs · Official SDKs for Python, JavaScript, Go, Java, and C++ Start · Interactions API · Build stateful, multi-turn agents with managed tool execution and history Start · Tools · Extensible function calling and native tool support, including Search and Maps grounding Start ·
🌐
LangChain
python.langchain.com › docs › integrations › llms › google_ai
Google AI
from langchain.chat_models import init_chat_model model = init_chat_model( "google_genai:gemini-3.5-flash", max_retries=10, # Increase for unreliable networks (default: 6) timeout=120, # Seconds; increase for slow connections )
🌐
PyPI
pypi.org › project › google-ai-generativelanguage
google-ai-generativelanguage
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Google
developers.google.com › google workspace › google docs › python quickstart
Python quickstart | Google Docs | Google for Developers
April 20, 2026 - Create a Python command-line application that makes requests to the Google Docs API · Quickstarts explain how to set up and run an app that calls a Google Workspace API. This quickstart uses a simplified authentication approach that is appropriate ...
🌐
Firebase
firebase.google.com › docs › genkit › plugins › google-genai
Google Generative AI plugin | Genkit
The Google AI plugin provides a unified interface to connect with Google’s generative AI models through the Gemini Developer API using API key authentication. The @genkit-ai/google-genai package is a drop-in replacement for the previous @genkit-ai/googleai package.