import google.generativeai as genai import PIL.Image import os genai.configure(api_key=os.environ["GOOGLE_API_KEY"]) img = PIL.Image.open('path/to/image.png') model = genai.GenerativeModel(model_name="gemini-1.5-flash") response = model.generate_content(["What is in this photo?", img]) print(response.text) const { GoogleGenerativeAI } = require("@google/generative-ai"); const fs = require("fs"); c
![Google AI Gemini API | Gemma open models | Google for Developers | Google AI for Developers](https://cdn-ak-scissors.b.st-hatena.com/image/square/460b876dc21a9a4c6b971e3832ad555dd7f27825/height=288;version=1;width=512/https%3A%2F%2Fai.google.dev%2Fstatic%2Fsite-assets%2Fimages%2Fshare.png)