GitHub
github.com › googleapis › python-genai
GitHub - googleapis/python-genai: Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications. · GitHub
1 month ago - Please run one of the following code blocks to create a client for different services (Gemini Developer API or Agent Platform). from google import genai # Only run this block for Gemini Developer API client = genai.Client(api_key='GEMINI_API_KEY')
Starred by 3.8K users
Forked by 929 users
Languages 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
The client by default uses the Gemini Developer API. It gets the API // key from the environment variable `GOOGLE_API_KEY`. Vertex AI API can be used by setting the // environment variables `GOOGLE_CLOUD_LOCATION` and `GOOGLE_CLOUD_PROJECT`, ...
Videos
13:33
Getting Started with Gemini AI and Python | Google GenAI Setup ...
11:03
Spring AI 1.1.0 is HERE! Google Gemini Integration Made EASY (No ...
31:14
Google's GENAI SDK Makes AI Setup SUPER SIMPLE - YouTube
12:07
Gemini API with Python - Getting Started Tutorial - YouTube
05:47
Google Gen AI SDK in Python made easy - New Unified API for Google ...
09:45
Google Gen AI SDK - Step-by-Step Hands-on Tutorial - YouTube
PyPI
pypi.org › project › google-genai
google-genai · PyPI
2 weeks ago - Please run one of the following code blocks to create a client for different services (Gemini Developer API or Agent Platform). from google import genai # Only run this block for Gemini Developer API client = genai.Client(api_key='GEMINI_API_KEY')
» pip install google-genai
npm
npmjs.com › package › @google › genai
google/genai
1 week ago - import { GoogleGenAI } from '@google/genai'; const ai = new GoogleGenAI({ enterprise: true, project: 'your_project', location: 'your_location', }); For NodeJS environments, you can create a client by configuring the necessary environment variables.
» npm install @google/genai
Published Jun 24, 2026
Version 2.10.0
GitHub
googleapis.github.io › python-genai
Google Gen AI SDK documentation
from google import genai # Only run this block for Vertex AI API client = genai.Client( vertexai=True, project='your-project-id', location='us-central1' )
PyPI
pypi.org › project › google-generativeai
google-generativeai · PyPI
Google Generative AI High level API client library and tools. ... With Gemini 2.0, we took the chance to create a single unified SDK for all developers who want to use Google's GenAI models (Gemini, Veo, Imagen, etc).
» pip install google-generativeai
GitHub
github.com › googleapis › java-genai
GitHub - googleapis/java-genai: Google Gen AI Java SDK provides an interface for developers to integrate Google's generative models into their Java applications. · GitHub
May 5, 2026 - Client client = Client.builder().apiKey("your-api-key").build(); import com.google.genai.Client; // Use Builder class for instantiation. Explicitly set the project and location, // and set `enterprise(true)` to use Gemini Enterprise Agent Platform backend.
Starred by 377 users
Forked by 115 users
Languages Java
GitHub
googleapis.github.io › python-genai › genai.html
Submodules - Google Gen AI SDK documentation
from google import genai client = genai.Client( enterprise=True, project='my-project-id', location='us-central1' )
Google AI
ai.google.dev › gemini api › gemini api libraries
Gemini API libraries | Google AI for Developers
April 28, 2026 - Download and get started with the Gemini API Libraries + SDKs
Google AI
ai.google.dev › gemini api › getting started with gemini api
Getting started with Gemini API | Google AI for Developers
2 weeks ago - Learn more about maintaining state in the multi-turn conversations guide, or explore stateless mode for client-side history management. Gemini models understand images, audio, video, and documents natively. Pass media alongside text in a single request. import base64 from google import genai client = genai.Client() # Load a local image with open("sample.jpg", "rb") as f: image_bytes = f.read() image_b64 = base64.b64encode(image_bytes).decode("utf-8") interaction = client.interactions.create( model="gemini-3.5-flash", input=[ {"type": "text", "text": "Compare this local image and this remote audio file."}, { "type": "image", "data": image_b64, "mime_type": "image/jpeg" }, { "type": "audio", "uri": "https://storage.googleapis.com/generativeai-downloads/data/sample.mp3", "mime_type": "audio/mp3" } ] ) print(interaction.output_text)
Google Cloud
cloud.google.com › ai › generative-ai
Generative AI | Google Cloud
1 week ago - Free-to-use, cloud-native and AI-powered data migration services.
Google AI
ai.google.dev › gemini api › migrate to the google genai sdk
Migrate to the Google GenAI SDK | Gemini API | Google AI for Developers
April 28, 2026 - The Google GenAI SDK is now in General Availability (GA) across all supported platforms. If you're using one of our legacy libraries, we strongly recommend you to migrate. This guide provides before-and-after examples of migrated code to help you get started. Note: The Go examples omit imports and other boilerplate code to improve readability. ... The old SDK implicitly handled the API client behind the scenes using a variety of ad hoc methods.
Google AI
ai.google.dev › gemini api › generating content
Generating content | Gemini API | Google AI for Developers
May 20, 2026 - Client client = new Client(); GenerateContentResponse response = client.models.generateContent( "gemini-3.5-flash", "Write a story about a magic backpack.", null); System.out.println(response.text()); ... from google import genai import PIL.Image client = genai.Client() organ = PIL.Image.open(media ...
GitHub
github.com › googleapis › python-genai › blob › main › codegen_instructions.md
python-genai/codegen_instructions.md at main · googleapis/python-genai
Always use client = genai.Client() to create a client object. Set GEMINI_API_KEY (or GOOGLE_API_KEY) environment variable, which will be picked up automatically.
Author googleapis
Weights & Biases
wandb.ai › byyoung3 › gemini-genai › reports › The-Google-GenAI-SDK-A-guide-with-a-Python-tutorial--VmlldzoxMzE2NDIwNA
The Google GenAI SDK: A guide with a Python tutorial
May 21, 2026 - Weights & Biases, developer tools for machine learning
GitHub
github.com › googleapis › js-genai
GitHub - googleapis/js-genai: TypeScript/JavaScript SDK for Gemini and Vertex AI. · GitHub
April 25, 2026 - This SDK (@google/genai) is Google Deepmind’s "vanilla" SDK for its generative AI offerings, and is where Google Deepmind adds new AI features.
Starred by 1.6K users
Forked by 251 users
Languages TypeScript 94.3% | JavaScript 5.1% | HTML 0.3% | Shell 0.2% | Starlark 0.1% | CSS 0.0%
Hackage
hackage.haskell.org › package › haskell-google-genai-client
haskell-google-genai-client: Auto-generated Gemini API Client for Haskell
June 4, 2025 - Unofficial low-level Haskell client for the Google Gemini API (also known as GenAI API or Generative Language API).
Google AI
ai.google.dev › gemini api › get started with gemini live api using the google genai sdk
Get started with Gemini Live API using the Google GenAI SDK | Gemini API | Google AI for Developers
1 month ago - import asyncio from google import genai client = genai.Client(api_key="YOUR_API_KEY") model = "gemini-3.1-flash-live-preview" config = {"response_modalities": ["AUDIO"]} async def main(): async with client.aio.live.connect(model=model, config=config) as session: print("Session started") # Send content...
Google
docs.cloud.google.com › ai and ml › generative ai
Generative AI | Google Cloud Documentation
Get free usage of 20+ popular products, including Compute Engine and AI APIs.