import google.generativeai as genai
import os

API_KEY = "AIzaSyC5wIc9nrhtbVesHqodil6V6-WIxkJFSHA" 
genai.configure(api_key=API_KEY)

print("🔍 Recherche des modèles disponibles...")
try:
    for m in genai.list_models():
        if 'generateContent' in m.supported_generation_methods:
            print(f"👉 {m.name}")
except Exception as e:
    print(f"❌ Erreur : {e}")
