import google.generativeai as genai import os from dotenv import load_dotenv load_dotenv() api_key = os.getenv("GEMINI_API_KEY") if not api_key: print("No API key found") else: genai.configure(api_key=api_key) print("Listing models...") for m in genai.list_models(): if 'generateContent' in m.supported_generation_methods: print(m.name)