pythonimport google.generativeai as genai
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-2.5-pro-exp-01-05")
response = model.generate_content("Hello, Gemini!")
print(response.text)modelsVisit Site ↗
Gemini 2.5 Pro
Google's advanced reasoning model with long context window and strong multi-modal understanding.
Pricing
$1.25
Input ($/million tokens)
$10
Output ($/million tokens)