🌐
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`, ...
🌐
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
    
Published   Jun 24, 2026
Version   2.10.0
🌐
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' )
🌐
Google AI
ai.google.dev › gemini-api › docs
Gemini API | Google AI for Developers
1 week ago - 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. ... 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
    
Published   Dec 16, 2025
Version   0.8.6
🌐
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 - export GOOGLE_GENAI_USE_ENTERPRISE=true // Set project and location for Gemini Enterprise Agent Platform authentication export GOOGLE_CLOUD_PROJECT='your-project-id' export GOOGLE_CLOUD_LOCATION='us-central1' // or API key for express mode export GOOGLE_API_KEY='your-api-key' After configuring the environment variables, you can instantiate a client without passing any variables.
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' )
Find elsewhere
🌐
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(); GenerateContentConfig config = GenerateContentConfig.builder() .candidateCount(1) .stopSequences(List.of("x")) .maxOutputTokens(20) .temperature(1.0F) .build(); GenerateContentResponse response = client.models.generateContent( "gemini-3.5-flash", "Tell me a story about a magic backpack.", config); System.out.println(response.text()); ... from google import genai from google.genai import types client = genai.Client() unsafe_prompt = ( "I support Martians Soccer Club and I think Jupiterians Football Club sucks!
🌐
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 - Add the SDK to your module with go get google.golang.org/genai. ... client, err := genai.NewClient(ctx, &genai.ClientConfig{ APIKey: apiKey, Backend: genai.BackendGeminiAPI, })
Starred by 1.1K users
Forked by 152 users
Languages   Go
🌐
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%
🌐
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.
🌐
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).