🧬Google Gen AI SDK
Also known as Google GenAI SDK, Gemini SDK, Gemini API SDK, google-genai, @google/genai
Google's code kit for Gemini. Your code calls the model with one function.
Think of it like
It is like one key that opens two rooms in the same house.
Example
Emma swaps an old Gemini package for google-genai. Now the same code runs with her test key at home and on Google Cloud at work.
Why it matters
One library covers both ways in to Gemini. You can move from a test key to a cloud project without changing your code.
Definition
Example code
python
from google import genai
client = genai.Client() # reads GEMINI_API_KEY
response = client.models.generate_content(
model="gemini-3.8-flash",
contents="Hello there",
)
print(response.text)