MerchFlow-AI / check_models_list.py
Gaurav vashistha
Final Release: Updated README and Sync
842ca78
raw
history blame contribute delete
390 Bytes
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("❌ API Key not found")
else:
genai.configure(api_key=api_key)
print("Listing available models...")
for m in genai.list_models():
if 'generateContent' in m.supported_generation_methods:
print(m.name)