Code

Basic google GenAI example

Keeping this here just for future reference

from google import genai

client = genai.Client(
    api_key="YOUR_API_CODE"
)

response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="Multiplication table of 5 from 1 to 10"
)

print(response.text)

Leave a Reply