summaryrefslogtreecommitdiff
path: root/backend/ai.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-06-30 20:55:53 +0800
committeraltaf-creator <dev@altafcreator.com>2025-06-30 20:55:53 +0800
commit2780072a278fa5128cf961284e5c04312d5e6119 (patch)
treee971fb7a47d768de69b31feebc72993e49b229dc /backend/ai.py
initial commit
Diffstat (limited to 'backend/ai.py')
-rw-r--r--backend/ai.py8
1 files changed, 8 insertions, 0 deletions
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)