🌐
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/genai
If you are not redirected automatically, click here to go to the release version docs
Submodules
Find your Google Cloud project ID. ... The location to send API requests to (for example, us-central1). Can be obtained from environment variables. Applies to the Vertex AI API only. ... Config settings that control network behavior of the client. This is typically used when running test code. ... Http options to use for the client. These options will be applied to all requests made by the client. Example usage: client = genai...
🌐
Google
docs.cloud.google.com › gemini enterprise agent platform › google gen ai sdk
Google Gen AI SDK | Gemini Enterprise Agent Platform | Google Cloud Documentation
from google import genai # TODO(developer): Update below line API_KEY = "YOUR_API_KEY" client = genai.Client(vertexai=True, api_key=API_KEY) response = client.models.generate_content( model="gemini-3.5-flash", contents="Explain bubble sort to me.", ) print(response.text) # Example response: # Bubble Sort is a simple sorting algorithm that repeatedly steps through the list · The Google Gen AI SDK for Go is available on go.dev and GitHub:
🌐
Google AI
ai.google.dev › gemini api › gemini api libraries
Gemini API libraries | Google AI for Developers
April 28, 2026 - The Google GenAI SDK is available for the Python, JavaScript/TypeScript, Go and Java languages. You can install each language's library using package managers, or visit their GitHub repos for further engagement: ... <dependencies> <dependency> ...
🌐
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 - You would directly instantiate and interact with GenerativeModel objects. import google.generativeai as genai # Directly create and use model objects model = genai.GenerativeModel('gemini-3.5-flash') response = ...
🌐
GitHub
github.com › googleapis › js-genai
GitHub - googleapis/js-genai: TypeScript/JavaScript SDK for Gemini and Vertex AI. · GitHub
April 25, 2026 - Documentation: https://googleapis.github.io/js-genai/ The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini.
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%
🌐
npm
npmjs.com › package › @google › genai
google/genai
1 week ago - This SDK (@google/genai) is Google Deepmind’s "vanilla" SDK for its generative AI offerings, and is where Google Deepmind adds new AI features.
      » npm install @google/genai
    
Published   Jun 24, 2026
Version   2.10.0
🌐
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
4 weeks ago - To make a model more deterministic, lowering the temperature parameter reduces randomness, with values near 0 minimizing variability. Capabilities and parameter defaults for each model is shown in the Vertex AI docs and Gemini API docs respectively. Note that all API methods support Pydantic types and dictionaries, which you can access from google.genai.types.
Starred by 3.8K users
Forked by 929 users
Languages   Python
🌐
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 - The Google Gen AI Java SDK provides ... switch between the 2 backends without rewriting your code. import com.google.genai.Client; // Use Builder class for instantiation....
Starred by 377 users
Forked by 115 users
Languages   Java
🌐
GitHub
github.com › googleapis › go-genai
GitHub - googleapis/go-genai: Google Gen AI Go SDK provides an interface for developers to integrate Google's generative models into their Go applications. · GitHub
May 22, 2026 - The Google Gen AI Go SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. This SDK supports use cases like: ... For example, with just a few lines of code, ...
Starred by 1.1K users
Forked by 152 users
Languages   Go
Find elsewhere
🌐
Google AI
ai.google.dev › gemini-api › docs
Gemini API | Google AI for Developers
1 week ago - import { GoogleGenAI } from "@google/genai"; const ai = new GoogleGenAI({}); const interaction = await ai.interactions.create({ model: "gemini-3.5-flash", input: "Explain how AI works in a few words", }); console.log(interaction.output_text);
🌐
LiteLLM
docs.litellm.ai › agent sdks › google genai sdk with litellm
Google GenAI SDK with LiteLLM | liteLLM
Budget Controls: Set spending limits and track costs across all SDK usage · Logging & Observability: Track all requests with cost tracking, logging, and analytics ... model_list: - model_name: gemini-2.5-flash litellm_params: model: gemini/gemini-2.5-flash api_key: os.environ/GEMINI_API_KEY ... const { GoogleGenAI } = require("@google/genai"); const ai = new GoogleGenAI({ apiKey: "sk-1234", // LiteLLM virtual key (not a Google key) httpOptions: { baseUrl: "http://localhost:4000/gemini", // LiteLLM proxy URL }, }); async function main() { const response = await ai.models.generateContent({ model: "gemini-2.5-flash", contents: "Explain how AI works", }); console.log(response.text); } main();
🌐
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
🌐
Arize
arize.com › docs › phoenix › cookbook › agent-workflow-patterns › google-genai-sdk-manual-orchestration
Google GenAI SDK (manual orchestration) - Phoenix
Fetch the complete documentation index at: /llms.txt · Use this file to discover all available pages before exploring further. ... Google’s GenAI SDK is a framework designed to help you interact with Gemini models and models run through VertexAI. ...
🌐
DEV Community
dev.to › ranand12 › googles-unified-genai-sdk-a-hands-on-guide-2n2d
Google's Unified Gen AI SDK: A Hands-on Guide - DEV Community
March 11, 2025 - By default, the SDK uses a set of standard configurations. However, you can modify these to suit your needs: from google import genai from google.genai import types PROJECT_ID = userdata.get('PROJECT_ID') LOCATION = userdata.get('LOCATION') # Create a client instance using Vertex AI in Google Cloud client = genai.Client(vertexai=True, project=PROJECT_ID, location=LOCATION) response = client.models.generate_content( model='gemini-2.0-flash', contents='Create a short bedtime story for a 3 year old using unicorns and rainbows', config = types.GenerateContentConfig( max_output_tokens=200, temperature = 0.1) ) display(Markdown(response.text))
🌐
Google
docs.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
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 { GoogleGenAI, Modality } from '@google/genai'; const ai = new GoogleGenAI({ apiKey: "YOUR_API_KEY"}); const model = 'gemini-3.1-flash-live-preview'; const config = { responseModalities: [Modality.AUDIO] }; async function main() { const session = await ai.live.connect({ model: model, callbacks: { onopen: function () { console.debug('Opened'); }, onmessage: function (message) { console.debug(message); }, onerror: function (e) { console.debug('Error:', e.message); }, onclose: function (e) { console.debug('Close:', e.reason); }, }, config: config, }); console.debug("Session started"); // Send content...
🌐
Google Skills
skills.google › focuses › 86503
Getting Started with Google Generative AI Using the Gen AI SDK | Google Skills
March 24, 2026 - The Google Gen AI SDK provides a unified interface to Google's generative AI API services. This SDK simplifies the process of integrating generative AI capabilities into applications and services, enabling developers to leverage Google's advanced ...