pip install -q -U google-generativeai
import google.generativeai as genai
genai.configure(api_key = "your gemini api key")
model = genai.GenerativeModel('gemini-pro')
response = model.generate_content("write a story about ai")
print(response.text)
pip install -q -U google-generativeai
import google.generativeai as genai
genai.configure(api_key = "your gemini api key")
model = genai.GenerativeModel('gemini-pro')
response = model.generate_content("write a story about ai")
print(response.text)