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')
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 - If you also pass a python function as a tool, by default the SDK will perform automatic function calling until the remote calls exceed the maximum remote call for automatic function calling (default to 10 times). If you'd like to disable automatic function calling in ANY mode: from google.genai import types def get_current_weather(location: str) -> str: """Returns the current weather.
Starred by 3.8K users
Forked by 929 users
Languages Python
Videos
GitHub
googleapis.github.io › python-genai › genai.html
Submodules - Google Gen AI SDK documentation
import google.genai from google.genai import types import os if os.environ.get('GOOGLE_GENAI_USE_ENTERPRISE'): MODEL_NAME = 'gemini-2.0-flash-live-preview-04-09' else: MODEL_NAME = 'gemini-live-2.5-flash-preview'; client = genai.Client() async with client.aio.live.connect( model=MODEL_NAME, config={"response_modalities": ["TEXT"]} ) as session: await session.send_client_content( turns=types.Content( role='user', parts=[types.Part(text="Hello world!")])) async for msg in session.receive(): if msg.text: print(msg.text)
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%
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
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 ... you can seamlessly 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
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 Google Gen AI SDK for .NET is available on NuGet and GitHub: ... # 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
npm
npmjs.com › package › @google › genai
google/genai
1 week ago - 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.
» npm install @google/genai
Published Jun 24, 2026
Version 2.10.0
GitHub
github.com › googleapis › python-genai › blob › main › codegen_instructions.md
python-genai/codegen_instructions.md at main · googleapis/python-genai
Official Documentation: ai.google.dev/gemini-api/docs · Always use the Google GenAI SDK (google-genai), which is the unified standard library for all Gemini API requests (AI Studio/Gemini Developer API and Vertex AI) as of 2025.
Author googleapis
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 genai.NewClient function created a client, but generative model operations were typically called on a separate GenerativeModel instance obtained from this client. Other services might have been accessed via distinct packages or patterns. import ( "github.com/google/generative-ai-go/genai" "github.com/google/generative-ai-go/genai/fileman" // For files "google.golang.org/api/option" ) client, err := genai.NewClient(ctx, option.WithAPIKey("GEMINI_API_KEY")) fileClient, err := fileman.NewClient(ctx, option.WithAPIKey("GEMINI_API_KEY")) // Get a model instance, then call methods on it model := client.GenerativeModel("gemini-3.5-flash") resp, err := model.GenerateContent(...) cs := model.StartChat() // Call methods on separate client objects for other services uploadedFile, err := fileClient.UploadFile(...)
GitHub
github.com › mohitejaikumar › generative-ai-js
GitHub - mohitejaikumar/generative-ai-js: The official Node.js / Typescript library for the Google Gemini API · GitHub
import { GoogleGenerativeAI } from ...(result.response.text()); This repository contains sample Node and web apps demonstrating how the SDK can access and utilize the Gemini model for various use cases....
Author mohitejaikumar
GitHub
github.com › googleapis › dotnet-genai
GitHub - googleapis/dotnet-genai: Google Gen AI Dotnet SDK provides an interface for developers to integrate Google's generative models into their .NET applications. · GitHub
Parameter types are specified in the Google.GenAI.Types namespace. Enums are represented using structs for forward compatibility reasons. Enum values follow C# naming conventions (PascalCase). The SDK enum value contains an underlying string value that is sent to the API, which is usually UPPER_SNAKE_CASE. Please refer to the API documentation ...
Starred by 144 users
Forked by 42 users
Languages HTML 93.4% | C# 6.6%
GitHub
googleapis.github.io › dotnet-genai
| Google GenAI .NET SDK
Parameter types are specified in the Google.GenAI.Types namespace. Enums are represented using structs for forward compatibility reasons. Enum values follow C# naming conventions (PascalCase). The SDK enum value contains an underlying string value that is sent to the API, which is usually UPPER_SNAKE_CASE. Please refer to the API documentation ...
GitHub
googleapis.github.io › java-genai › javadoc
Overview (google-genai 1.61.0-SNAPSHOT API)
com.google.genai · com.google.genai.errors · com.google.genai.proto ·
GitHub
github.com › googleapis › python-genai › releases
Releases · googleapis/python-genai
Support ReinforcementTuning in GenAI SDK including ValidateReward API method. (e0854a6) ... A comment for field google_maps_widget_context_token in message GroundingMetadata is changed (74d81dd)
Author googleapis
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