File size: 276 Bytes
9dbce78
 
f8fe675
3e2e033
f8fe675
43c1328
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import google.generativeai as genai
import os

genai.configure(api_key=os.environ["GOOGLE_API_KEY"])

model = genai.GenerativeModel('gemini-1.5-flash')
response = model.generate_content(
    text_input="the color of the car is ?", 
    image_input="car.jpg"
)
print(response)