Getting started using Gemini AI model by Google
In this article I am going to demonstrate you how can we use Gemini AI model by Google step by step. I will demonstrate the example with text prompt first and then i will show you how you can use image in prompt and get the answers from the Gemini AI model. So lets get started. Prerequisites: Visual studio code Python Api Key of Gemini can be obtain from https://aistudio.google.com Open visual studio code and open the folder where you want to create the python application. Now go to view menu of vs code and click on Terminal menu, it will open new Power-Shell terminal. Now we will install some python packages for that use below commands. pip install google-generativeai pip install ipython Gemini Text Prompt Example: Now create file named "gemini_text.py" and add below code snippet to it. import os import google.generativeai as genai from IPython.display import Markdown os.environ['GOOGLE_API_KEY'] = " your google api key obtained