diff options
Diffstat (limited to 'backend/ai.py')
-rw-r--r-- | backend/ai.py | 8 |
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) |