from google import genai
client = genai.Client(api_key="YOUR_API_KEY")
High-speed interaction for Barnaby's response
response = client.models.generate_content(
model="gemini-3-flash-preview",
contents="Explain how a magnet works to a 5-year-old.",
config={
"thinking_level": "low" # Fastest response for a toy
}
)
print(response.text)
