Gemini is Google DeepMind's family of multimodal large language models, built to understand and generate text, images, audio, and video in a single model. It's currently the #1 most-referenced AI model tag in developer and product usage data, at roughly 29.2% share. Its momentum comes from being baked directly into Google's own products (the Gemini app, Search AI Overviews, Workspace) while also being openly available to developers through an API โ giving it both consumer scale and builder reach at once.
The Gemini API is called through Google's official Python SDK. This sends a prompt to the gemini-2.0-flash model and prints the generated text.
from google import genai
client = genai.Client(api_key="YOUR_API_KEY")
response = client.models.generate_content(
model="gemini-2.0-flash",
contents="Explain what a REST API is in two sentences."
)
print(response.text)
Get a free API key from Google AI Studio, install the SDK, then make your first call.
# 1. Get a free API key at aistudio.google.com/apikey
# 2. install the SDK
pip install google-genai
# 3. set your key and run a Python script that calls generate_content()
export GEMINI_API_KEY="your-key-here"