import google.generativeai as genai

# 🔴 COLE AQUI A SUA CHAVE NOVA
MINHA_CHAVE = "AIzaSyDplOOzkJyi_r6vAlMH5ZbayxSW9S9dSdk"

genai.configure(api_key=MINHA_CHAVE)

print("--- A CONSULTAR MODELOS DISPONÍVEIS ---")
try:
    for m in genai.list_models():
        if 'generateContent' in m.supported_generation_methods:
            print(f"- {m.name}")
except Exception as e:
    print(f"Erro: {e}")
