Skip to content

Instantly share code, notes, and snippets.

@atodev
Created April 2, 2025 01:37
Show Gist options
  • Save atodev/28b9941e22d7c07d2d5042a5bb8d36d1 to your computer and use it in GitHub Desktop.
Save atodev/28b9941e22d7c07d2d5042a5bb8d36d1 to your computer and use it in GitHub Desktop.
[Gemini]
from google import genai
from google.genai import types
from IPython.display import HTML, Markdown, display
from dotenv import load_dotenv
import os
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
client = genai.Client(api_key=GOOGLE_API_KEY)
response = client.models.generate_content(
model="gemini-2.0-flash",
contents="Explain AI to me like I'm a kid.")
#print(response.text)
Markdown(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment