From 2780072a278fa5128cf961284e5c04312d5e6119 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 30 Jun 2025 20:55:53 +0800 Subject: initial commit --- backend/ai.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 backend/ai.py (limited to 'backend/ai.py') diff --git a/backend/ai.py b/backend/ai.py new file mode 100644 index 0000000..1e63b94 --- /dev/null +++ b/backend/ai.py @@ -0,0 +1,8 @@ +from google import genai + +client = genai.Client(api_key="AIzaSyA-mA7v4xlbEAz80uKf3Dywpbeh9ZfpLMs") + +response = client.models.generate_content( + model="gemini-2.0-flash", contents="Explain how AI works in a few words" +) +print(response.text) -- cgit v1.2.3