Requests are rejected due to invalid authentication parameters.
Why this happens
The client cannot verify credentials without a properly exported GOOGLE_API_KEY environment variable.
Answer 1: Configure project environment variables
import os
from google import genai
os.environ["GOOGLE_API_KEY"] = "your_key_here"
client = genai.Client()
