AIBLOG / google_api_key
LEEDONGGEUN's picture
Rename google_api to google_api_key
50164cb verified
raw
history blame contribute delete
243 Bytes
from google import genai
client = genai.Client(api_key="YAIzaSyB-BX2AF5lyV0TiA6I4dic3FxskbC6jJbM")
response = client.models.generate_content(
model="gemini-2.0-flash", contents="Explain how AI works in a few words"
)
print(response.text)